billthefarmer / mididriver

Android midi driver using Sonivox EAS library
176 stars 52 forks source link

send program change & channel pressure events #2

Closed vanferry closed 10 years ago

vanferry commented 10 years ago

Since Program Change and Channel Pressure events are 2 bytes, so I only send 2 bytes buffer for boolean write(byte buffer[]), then it work well.

" boolean write(byte buffer[]) Writes midi data to the Sonivox synthesizer. The length of the array should be the exact length of the message or messages. It seems to ignore three byte program change messages, for example. Returns true on success, false on failure. "

billthefarmer commented 10 years ago

Ok, fine I will remove that comment.