[Sc-devel] Bug in MIDI sysex on Intel?
Scott Wilson
sdwilson at wesleyan.edu
Thu May 31 22:15:39 PDT 2007
As there were no objections I committed this.
S.
On 30 May 2007, at 22:48, Scott Wilson wrote:
> I started poking around in prSendSysex to try and solve this.
> MIDIObjectFindByUniqueID and MIDISendSysex both return no error.
>
> However pk->complete seems to be initialised to true, which IIUC
> means that nothing ever gets sent. Setting it to false seems to
> make it work, so my assumption is that this is done automatically
> on PPC, but not Intel.
>
> Any reason not to commit this? I can't see how it would break PPC.
>
> S.
>
> On 27 May 2007, at 19:19, Scott Wilson wrote:
>
>> Connecting a cable from a MIDI out port to a MIDI in port and
>> executing the following code, it seems that the sysex message is
>> not sent out. Everything else is posted, and makes the MIDIOut LED
>> flicker, but sysex fails. This seems to be a problem only with
>> Intel mac machines (tried three different MIDI interfaces and two
>> machines), as the same build seems to work with sysex on PPC.
>>
>> Anyone have any idea what might cause this?
>>
>> S.
>>
>>
>>
>> MIDIClient.init;
>>
>> m = MIDIOut(0, MIDIClient.destinations.at(0).uid);
>>
>>
>> MIDIIn.connect;
>> MIDIIn.sysex = { arg uid, packet; [uid,packet].postln };
>> MIDIIn.sysrt = { arg src, chan, val; [src, chan, val].postln; };
>> MIDIIn.smpte = { arg src, chan, val; [src, chan, val].postln; };
>> MIDIIn.noteOn = { arg src, chan, num, vel; [chan,num,vel /
>> 127].postln; };
>>
>> m.sysex(MIDIClient.destinations.at(0).uid, Int8Array[ 16rf0, 0, 0,
>> 27, 11, 0,16rf7])
>> m.noteOn(16, 60, 60);
>> m.smpte (24,16)
>> m.midiClock
>> m.start
>> m.continue
>> m.stop
>> _______________________________________________
>> Sc-devel mailing list
>> Sc-devel at create.ucsb.edu
>> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
>
> _______________________________________________
> Sc-devel mailing list
> Sc-devel at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-devel/attachments/20070531/a88d32af/attachment.htm
More information about the Sc-devel
mailing list