[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] SC_CoreMIDI questions
On Saturday, Nov 29, 2003, at 05:42 US/Eastern, stefan kersten wrote:
is the pitchbend range [-8192;8192[ or [0;16384]?
[0;16384] - divide by 16384 to make it compatible with ControlSpec.
MIDIOut has a field uid (destination), which is passed to the sendmidi
primitive. i don't fully understand the purpose of this
parameter. does the destination id represent the inport of another
client in CoreMIDI?
It's a port number assigned by the OS. If you have a multiport interface, each midi cable gets a different uid. You can get the destinations by:
MIDIClient.destinations.do({ |midi| [midi.device, midi.name, midi.uid].postln });
MIDIClient.sources.do... // for sources
in initMIDI on osx, gNumMIDIOutPorts is set to numIn; is this a bug or
a feature i just don't understand?
I'm not familiar with the c++ sources, but InitMIDI should have the outports available to it.
*prInit { arg inports, outports;
_InitMIDI
^this.primitiveFailed
}
Sounds like a bug to me.
____________________________________
H. James Harkins /// dewdrop_world
http://www.duke.edu/~jharkins
"If attacked by a lion, thrust your arm down his throat.
This takes some practice." -- Cyril Connolly