• 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
MIDIReadProc and 0x80
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MIDIReadProc and 0x80


  • Subject: MIDIReadProc and 0x80
  • From: Craig Bakalian <email@hidden>
  • Date: Wed, 25 Sep 2002 07:27:39 -0400

Hi,
Where did my note offs go? I just got my fancy evolution keyboard
with a usb interface. I am making sounds come out of my mac, yet where
did my note offs go? In the MIDIReadProc I have a java debug println
that looks like this:

for(int j = start; j < len; j++){
int commandByte = data.getUByteAt(j);
int command = commandByte & 0xF0;
if(command != 240){ // get rid of active sensing
System.out.println(command);
}
}

This for statement is getting the bytes of MIDIData. On my command
prompt output I get this:

144
57
77
144
57
0

for one midi keyboard key press. The 144 is for note on, the 57 is
the note number, the 77 is the key velocity. Then when I lift my
finger the next trio of bytes is displayed which is 144 (why is this a
note on?), the 57 is the note number, and the 0 (the audacity!) is the
key velocity. Is this how MIDIReadProc stops a notes sound, or is this
my new lovely evolution key board?

Craig Bakalian
_______________________________________________
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: MIDIReadProc and 0x80
      • From: Bill Stewart <email@hidden>
    • Re: MIDIReadProc and 0x80
      • From: Philippe Wicker <email@hidden>
    • Re: MIDIReadProc and 0x80
      • From: Marc Poirier <email@hidden>
  • Prev by Date: cant load resources in AudioUnits
  • Next by Date: Re: MIDIReadProc and 0x80
  • Previous by thread: Re: cant load resources in AudioUnits
  • Next by thread: Re: MIDIReadProc and 0x80
  • Index(es):
    • Date
    • Thread