|
||
Title: CC Toggle Post by jimosity on Jan 22nd, 2022, 1:29pm I'm trying to remap a midi controller that only sends Note On/Note Off values to be a latching toggle CC. I'm not finding any search results that seem to give me any indication how to do this. I've got it currently mapped for: Channel10 NoteOn 47 47 -1 -1 velocity to Channel1 Ctrl 17 17 127 127 to turn on the CC17 I've tried setting it to -1 -1 on the velocity to turn it off and then it just acts like a momentary press. I can't seem to figure out how to make it a latching toggle. |
||
Title: Re: CC Toggle Post by Breath on Jan 22nd, 2022, 6:09pm If your controller sends out a Note On then Note Off to toggle the CC to ON and the a second Note On and Note Off to turn the CC OFF then MidiOx can't help you except if you write a script. It would require that MidiOx remember the state (is it off or is it on) of the CC so it knows which way to switch the CC. But if the controller puts out Midi Note On to turn it on and Note off to turn it off then you can make 2 lines in the Data Map to do it. So for your Note On channel 10 key 47 with any velocity ... .. to CC channel 1 Type 17 value 127 Line one Turn ON 'When Input Matches..' Channel = 10 Event Type = NoteOn Min and Max Note number = 47 (both the same so you only select one key) Velocity Min = 1 and Max = 127 (Note On with velocity 0 is a special case) 'Set Output to..' Channel = 1 Event Type = Ctrl Ctrl# Min and Max = 17 Amount Min and Max = 127 For the Note Off message channel 10 key 47 with any velocity ... .. to CC channel 1 Type 17 value 0 Line two Turn OFF 'When Input Matches..' Channel = 10 Event Type = NoteOff Min and Max Note number = 47 Velocity Min and Max = -1 (any Off velocity) 'Set Output to..' Channel = 1 Event Type = Ctrl Ctrl# Min and Max = 17 Amount Min and Max = 0 Of course there are two 'Midi Note Off' types. There is the one above or Note On with a velocity of 0 (very common for Yamaha). For that, line 2 Input should start with ... 'When Input Matches..' Channel = 10 Event Type = NoteOn Min and Max Note number = 47 Velocity Min and Max = 0 All the best Royce |
||
MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1! YaBB © 2000-2003. All Rights Reserved. |