MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Mapping Questions >> SysEx message being sent twice
(Message started by: gregorydarmohray on Oct 2nd, 2005, 1:44am)

Title: SysEx message being sent twice
Post by gregorydarmohray on Oct 2nd, 2005, 1:44am
I'm mapping a NoteOn 36 message to a SysEx message.  That works fine.   However, when I release the note and get a NoteOff 36, my mapping is ignore and instead the Outout Monitor shows the same NoteOn SysEx message being sent a second time.

I'm trying to use some Bass Pedals so that a NoteOn c2 message starts a drum fill from part a to b, and releasing the pedal, generates a NoteOff c2 which should turn off the drum fill.  The maps look something like:

* NoteOn 36 36 * *, SysEx F0 43 7e 00 18 7f F7
* NoteOff 36 36 * *, SysEx F0 43 7e 00 18 00 F7

My Clavinova CVP-98 wants the 7f at the end to turn on the drum fill and a 00 at the end to turn it off.

Why is MIDI-OX sending the SysEx associated with the NoteOn twice?   Why can't I send send the SysEx associated with my NoteOff message?

Thanks in advance for your help.

Title: Re: SysEx message being sent twice
Post by Peter L Jones on Oct 2nd, 2005, 4:12am
NoteOff is a redundant MIDI message and commonly replaced with NoteOn velocity 0.  This allows "running status" to be used, saving the amount of data transferred.  Windows expands out running status but won't translate from a NoteOn velocity 0 to a NoteOff.

Try checking the note velocity.

Title: Re: SysEx message being sent twice
Post by Jamie OConnell on Oct 2nd, 2005, 3:21pm
To expand on what Peter said, do NOT map NOTE ON using:

* NoteOn 36 36 * *, SysEx F0 43 7e 00 18 7f F7

Instead, only map velocities of 1 -127, as velocity 0 is another way of saying NOTE OFF:

* NoteOn 36 36 1 127, SysEx F0 43 7e 00 18 7f F7

Add a 2nd Note off mapping (for velocity 0):

* NoteOn 36 36 0  0, SysEx F0 43 7e 00 18 00 F7
* NoteOff 36 36 * *, SysEx F0 43 7e 00 18 00 F7





MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.