[sdiy] Midi problems
Paul Maddox
Paul.Maddox at Wavesynth.com
Thu Apr 4 00:37:30 CEST 2002
Tim,
> So like, how is poly supposed to work?
not to hard to work out..
assuming you're useing running status..
pressing a chord would be
0x90 0x60 0x7f 0x63 ox7e 0x68 0x7f
This is note on and I think C minor, so its not so bad..
simple trick, if the MSB is set, REMEMBER the byte (call it running_status)
if you get ANY other byte with the MSB set, forget the running_status byte
as the data that follows is for some other channel.
I use a counter.. so for example, after getting a note ON command thats on
MY channel, I set a counter to one...
if the counter is one, then the next byte must be note data I then set it to
TWO, next byte that arrives should be velocity I then set it back to 1.
If a Note on for another channel (or any byte with MSB set that I dont care
about) arrives then set the counter to 0
and you're off...
watch out for CLOCK data though :-) it can arrive at ANY point.. so if you
dont plan on useing it make sure you have a filter setup, so if midi clock
arrives it simply gets ignored and nothing is done with it (dont change the
counter value either!)
> PS I'm beginning to think midi SUCKS!
it doesnt suck...
Its just awkward to use :-)
Paul
______________________________________________
"I've seen the light at the end of the tunnel, And its blue!'
Wavesynth home page;-
Http://www.wavesynth.com
Modulus synthesizers home page;-
Http://www.modulus.wavesynth.com
PPG Synthesizer pages;-
Http://www.PPG.wavesynth.com
More information about the Synth-diy
mailing list