[CM] Set MIDI Output Device (CM)
Rick Taube
taube@uiuc.edu
Tue, 13 Mar 2007 13:34:56 -0500
to connect to devices using portmidi first call (pm:getDeviceInfo) to
get the list of valid input/output devices.
then pass the appropriate ids to the :input and :output keywords in
portmidi-open. for example to open portmidi with input from 3 and
output to 5 you would do:
(defparameter *pm* (portmidi-open :input 3 :output 5))
note that portmidi's device list is static, that is if you add more
devices after you've opened portmidi these devices will not be
reflected in the list returned by (pm:getdeviceinfo)
On Mar 9, 2007, at 1:05 AM, Esben Stien wrote:
> Trying to use MIDI with portmidi with CM.
>
> It does seem to setup the device and I can see it as an ALSA MIDI
> device.
>
> The command:
>
> (pm:GetDefaultOutputDeviceID)
> 0
>
> ..returns 0 as the default output device and this is, I guess, where
> it sends the midi event when I do:
>
> (new midi)
>
> How can I set the output MIDI port to device 9?. I've tried:
>
> (setq *portmidi-default-output* 9)
>
> , but (pm:GetDefaultOutputDeviceID) still returns 0.
>
> --
> Esben Stien is b0ef@e s a
> http://www. s t n m
> irc://irc. b - i . e/%23contact
> sip:b0ef@ e e
> jid:b0ef@ n n
>
> _______________________________________________
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist