Re: MIDIReadProc and 0x80
Re: MIDIReadProc and 0x80
- Subject: Re: MIDIReadProc and 0x80
- From: Bill Stewart <email@hidden>
- Date: Wed, 25 Sep 2002 18:18:39 -0700
In fact, this is the most common way to specify a note-off, because it can
use running status in the transport layer
Bill
on 25/9/02 4:27 AM, Craig Bakalian wrote:
>
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.
--
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
__________________________________________________________________________
_______________________________________________
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.