User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - CC Toggle »
Welcome, Guest. Please Login or Register.
May 3rd, 2025, 4:04am


Home Home Help Help Search Search Members Members Login Login Register Register


   MIDI-OX User Forum
   MIDI-OX
   Mapping Questions
(Moderator: Jamie OConnell)
   CC Toggle
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: CC Toggle  (Read 1114 times)
jimosity
New Member
*



MIDI-OX Rules!

   


Posts: 1
CC Toggle
« on: Jan 22nd, 2022, 1:29pm »
Quote Quote Modify Modify

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.
IP Logged
Breath
Administrator
*****





   
WWW

Gender: male
Posts: 1030
Re: CC Toggle
« Reply #1 on: Jan 22nd, 2022, 6:09pm »
Quote Quote Modify Modify

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  
« Last Edit: Jan 22nd, 2022, 6:14pm by Breath » IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »


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