« Return to Thread: Sysex correction +

More MIDI, why not an automatic connect to everything method?

by ronald kuivila :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread

Hi all,

Any objections to the following?

+MIDIIn {

*connectAll {
if (MIDIClient.initialized.not) {
MIDIClient.list;
MIDIClient.init( MIDIClient.sources.size, MIDIClient.destinations.size);
MIDIClient.sources.size.do({ arg i; 
MIDIIn.connect(i, MIDIClient.sources.at(i));
});
}
}


}


RJK


_______________________________________________
sc-dev mailing list
sc-dev@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-dev

 « Return to Thread: Sysex correction +

LightInTheBox - Buy quality products at wholesale price!