Author |
Topic: Mapping Program Change to NoteOn gives NoteOff (Read 802 times) |
|
rkwb
Member
 
 MIDI-OX Rules!
Posts: 30
|
 |
Mapping Program Change to NoteOn gives NoteOff
« on: Sep 17th, 2004, 8:18am » |
Quote Modify
|
Hi Jamie ! Still (or again) working on my old topic "total recall" for a live band, I tried to map an incoming Program Change to NoteOn, which is what would help me to achieve what I want in Cubase. So I set up a Translation Map in MIDIOX: MOXMAP Version 5 [Map] 1,ProgChg,*,*,*,*,N,0,*,NoteOn,*,*,*,* [Options] WaitForFullNRPN=0 MapNRPNDataIncr=0 SendFullNRPN=0 ReverseDataEntry=0 However, when I monitor input and output I can see that the resulting output is NoteOff Input: TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT 75267909 2 -- 192 2 --- 1 --- PC: Electric Grand Piano Output: TIMESTAMP IN PORT STATUS DATA1 DATA2 CHAN NOTE EVENT 75267909 2 2 144 2 0 1 D -1 Note Off What am I doing wrong as I can tbelieve that this would be an undiscovered bug Thanks and best regards RKW
|
|
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: Mapping Program Change to NoteOn gives NoteOff
« Reply #1 on: Sep 17th, 2004, 3:15pm » |
Quote Modify
|
When you issue a Note ON, you also have to specify a velocity. It also happens that a velocity of 0 equals a Note OFF, so you'll want to prevent that (although I suspect you'll want Note OFFs at some point?). Program change is a 2 byte message, while Note ON is a 3 byte message, so all your mappings will have 0 velocity (and thus be Note OFFs). To fix this, specify a velocity: MOXMAP Version 5 [Map] 1,ProgChg,*,*,*,*,N,0,*,NoteOn,*,*,100,100 This will map Program Change into a Note On. The Pitch will be the patch number and velocity will be 100.
|
« Last Edit: Sep 17th, 2004, 3:16pm by Jamie OConnell » |
IP Logged |
--Jamie Music is its own reward.
|
|
|
rkwb
Member
 
 MIDI-OX Rules!
Posts: 30
|
 |
Re: Mapping Program Change to NoteOn gives NoteOff
« Reply #2 on: Sep 17th, 2004, 4:29pm » |
Quote Modify
|
YAPADAPADOOOOOOOOO !!!!!!!!!!!!!!!!!!!!!!! That was the final little thing !!!!!!!! I'm now able to remotely control Cubase to load the complete setup for any song of our five piece band with a any MIDI controller within a second !!!!! Thanks a lot ! RKW
|
« Last Edit: Sep 17th, 2004, 4:30pm by rkwb » |
IP Logged |
|
|
|
|