MIDIReadProc and 0x80
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.