[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] [linux][quarks] VoicerMIDISocket problem



On Dec 1, 2008, at 5:21 PM, krgn wrote:

Set[ 1310720, 0, 1, 8585216, 8519681, 917504 ]

[ 0, 1, 917504, 1310720, 8519681, 8585216 ]

so, although in a different order, these are of the same size and contain the same uid's

OK, that's good.

not sure if the 'System-Timer' is the correct one. Should this be set to the port sc will receive midi froM?

Yes -- right now the MIDI socket is listening to "system timer" -- if that's not where the messages are coming from, the socket will never hear about them.

The earlier error trace indicates that the messages are coming from src 8585216, which is index 5 in the MIDI client sources array. So, try using [5, 0] for the channel when creating the socket.

k = VoicerMIDISocket([5, 0], v);

(Actually the port index, the first number in the channel array [5, 0], comes from MIDIPort.sources. When manually initializing MIDIPort, you can give a list of indices to move to the front of MIDIPort's sources -- MIDIPort.init([5]) would set up MIDIPort.sources so that 8585216 is first, then 0, 1, 917504 etc. Basically this lets you decide which should be the default MIDI source.)

hjh


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman