Meshuggah
2017-01-25 07:50:35
Hello, I was wondering how to achieve this. I need to translate a note on/off button to a CC message which toggles between 0 and 127. Thank you.
Meshuggah
2017-01-25 07:50:35
Hello, I was wondering how to achieve this. I need to translate a note on/off button to a CC message which toggles between 0 and 127. Thank you.
Stef
2017-01-26 13:38:58
Is the note ON/OFF button a momentary switch? If so, select triggering on any velocity (midi note on).
Next, you can apply these rules:
ga=ga^1
if ga==1 then xx=127
if ga==0 then xx=0
And select xx as a value for the CC output.
Smiles
2017-01-29 01:14:42
comment
Smiles
2017-02-06 00:53:56
comment
florian
2017-03-16 22:26:47
I think Stef’s answer is correct. Here’s a more verbose/optimized version:
Incoming:
MIDI Note On , any velocity
Rules:
ga=ga^127
Outgoing:
MIDI Controller value: ga
If that doesn’t work, please post your project file as an attachment, and a log of the Log Window when you’re pressing the button a couple of times.
Steve
2017-03-24 23:09:11
Hi,
Maybe I can help.
I’m not sure why it is not working and cannot really figure out what you are saying. I created a project file that should work for you and attached it here. The only things you should change are note number in the incoming message that you want to use and the cc # on the outgoing message
current incoming note is 19 hex which is 25 decimal.
current outgoing cc is 3C hex which is 60 decimal
If this doesn’t work, perhaps you can clarify better and post your project file with a log file.
I commented in the rules for additional help – I used raw midi as message type instead of note on note off
I did this so I could use a single translator instead of two
Attachments:
Steve
2017-03-24 23:23:15
comment
Note that I assumed that you want to trigger note on when you push button and note off when you release. If you want toggle, let me know and I can change it accordingly
Toggle meaning first note on push = 127 release – no change second push 0 release no change.
shanebieda
2017-03-24 23:33:06
comment
Yes, toggle
Steve
2017-03-24 23:36:12
Here is the toggle version. Note there is an Init timer that sets ga which is the global variable that I use to determine last known state for the toggle. If you are already using that you will have to change to the global variable you want to use in both the init time and the translator rules.
Attachments:
shanebieda
2017-03-24 23:38:49
comment
I would seriously just pay someone to do all this for me. Would you be interested?
Steve
2017-03-24 23:39:52
comment
Yes, send email to bome@sniz.biz