Skip to contentSkip to conversation

multiple instances of snd-virmidi?

DISCUSSION [email protected] 2 participants 2 messages Jun 4, 2003

lore
Share & tools
lore
#0 lore raw

Is there some way I can load snd-virmidi into the kernel multiple times?

This would help me get around a deficiency in Pd. Pd uses OSS to open the MIDI devices, and only opens each one once. So it only talks to port 1 on my mtpav, for example. It treats a virmidi device the same way. But I figure if I could load multiple virmidi drivers I could hack around this. Sad but true.

(jfm3)

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com.

#1 lore raw
Quoted 1 line · [email protected] wrote:

Is there some way I can load snd-virmidi into the kernel multiple times?

Yes. This would be something like this in the modules.conf:

options snd cards_limit=3

alias snd-card-0 snd-whatever
alias snd-slot-0 snd-card-0
options snd-whatever index=0 ...

alias snd-card-1 snd-virmidi
alias snd-card-2 snd-virmidi
alias snd-slot-1 snd-card-1
alias snd-slot-2 snd-card-2
options snd-virmidi index=1,2 enable=1,1 midi_devs=2,2

Quoted 4 lines

This would help me get around a deficiency in Pd. Pd uses OSS to open the MIDI devices, and only opens each one once. So it only talks to port 1 on my mtpav, for example. It treats a virmidi device the same way. But I figure if I could load multiple virmidi drivers I could hack around this.

With the above settings, you'd have
/dev/midi1 -> card 1, device 0
/dev/amidi1 -> card 1, device 1
/dev/midi2 -> card 2, device 0
/dev/amidi2 -> card 2, device 1

HTH
Clemens

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com.