• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stuck notes in Rax and Synthtest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stuck notes in Rax and Synthtest


  • Subject: Re: Stuck notes in Rax and Synthtest
  • From: Robert Grant <email@hidden>
  • Date: Tue, 6 May 2003 13:41:18 -0400

Hi Angus,

I wouldn't put it past Rax to cock up some of the MIDI message handling. I've just taken a look and this is the loop for passing messages to the music device:

for ( j = 0; j < list->numPackets; ++j) {
Byte* msg = inPacket->data;
do {
if ((msg[0] & 0xF) == m_channel) {
MusicDeviceMIDIEvent(unit, msg[0],
msg[1], msg[2], 0);
if (msg[0] >> 4 == 0x09 && msg[2] > 0) noteOn = TRUE;
}
} while(msg = NextMIDIEvent(inPacket, msg));

inPacket = MIDIPacketNext(inPacket);
}

This is probably very wrong but this code is called in the MIDIReadProc thread.

Robert.


On Tuesday, May 6, 2003, at 11:22 AM, Angus F. Hewlett wrote:

Hi all,

Am seeing a problem in these AU hosts relating to my MIDI handling routines.

In Rax and Synthtest, we are seeing frequent, easily-reproducible stuck
notes when played from a MIDI keyboard. The MIDI data handling routines in
my code look to be OK, so I'm wondering if it might be threading related.
Are there any special precautions I need to take in the MIDI routines for a
MusicDevice?

Regards,
Angus.
=======================================================
Angus F. Hewlett, Technical Director
FXpansion Audio UK Ltd - http://www.fxpansion.com
=======================================================
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Stuck notes in Rax and Synthtest
      • From: "Angus F. Hewlett" <email@hidden>
References: 
 >Stuck notes in Rax and Synthtest (From: "Angus F. Hewlett" <email@hidden>)

  • Prev by Date: Re: AU host properties
  • Next by Date: Re: Stuck notes in Rax and Synthtest
  • Previous by thread: Stuck notes in Rax and Synthtest
  • Next by thread: Re: Stuck notes in Rax and Synthtest
  • Index(es):
    • Date
    • Thread