Is it possible to map a cc (knob) to notes using this tool? Id like to control the scenes in Glitch 2 with a knob rather than keys…could be fun…
Sure, here is how I would do it
First, check if message is actually a control change. You can make this more specific - which channel, MIDI port etc.
Next, convert message into a “note_on”, and apply second MIDI byte (CC value) to the first one (note pitch)
Finally, output message.
return {
{
actions = {
{
call_function = "message_type = \"note_on\"\nvalue1 = value2",
},
{
output_message = 1,
},
},
conditions = {
{
message_type = {
equal_to = "controller_change",
},
},
},
}
}
Copy the text above and select xRules > Add > Paste from clipboard