Hi Jay, While the MIDI format doesn't care about matching ONs and OFFs, there's a good chance that the player tidies up (by sending an "all notes off" message to the hardware) once it's done playing a file. So this could end up working in some platforms, but not in others...
I guess we won't know until we try. Cheers, Alex On Thu, Apr 22, 2010 at 6:16 PM, Jay Hardesty <[email protected]>wrote: > >Second byte contains pitch and velocity > CORRECTION: meant second and third bytes contain pitch and velocity > > > >The real question is : Do you know if midi players allow a note to > >be started in one file and ended in another? This would allow > >key-down and key-up events to come in real time from the keyboard. I > >would make this work if the answer is yes. > > > >Thanks > > - Dan > > > As far as I know a MIDI player does not care where (or from which > file) a MIDI ON, or subsequent MIDI OFF message comes from. > Each is just a pair of bytes arriving from wherever. > > (That is, the first byte MIDI ON event is 144 for channel 1, 145 for > channel 2. etc. up to 159 for channel 16. Second byte contains pitch > and velocity. MIDI OFF events have first byte set to 128 for channel 1 > up to 143 for channel 16 etc) > _______________________________________________ > lively-kernel mailing list > [email protected] > http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel >
_______________________________________________ lively-kernel mailing list [email protected] http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
