Hi, I’m wondering if the LUA scriptage of Renoise allows for midimapping (script)shortcuts to midiCC?
Ok, it seems that it’s actually quite easy. The same metho das add_keybinding works for add_midi_mapping:
renoise.tool():add_midi_mapping{
name = "Global:Tools:Sample Now x[Trigger]",
invoke = function() sample_and_to_sample_editor()
renoise.app().window.active_upper_frame = 1
renoise.app().window.upper_frame_is_visible=true
end
}
renoise.tool():add_midi_mapping{
name = "Global:Tools:Start Play x[Toggle]",
invoke = function() set_start_and_play()
end }
renoise.tool():add_midi_mapping{
name = "Global:Tools:Record Quantize On/Off x[Toggle]",
invoke = function()
if renoise.song().transport.record_quantize_enabled==true then
renoise.song().transport.record_quantize_enabled=false
else
renoise.song().transport.record_quantize_enabled=true
end
end
}
renoise.tool():add_midi_mapping{
name = "Global:Tools:Record and Follow On/Off x[Toggle]",
invoke = function() recfollow()
renoise.app().window.active_middle_frame=1
end}
renoise.tool():add_midi_mapping{
name = "Global:Tools:Metronome On/Off x[Toggle]",
invoke = function()
if renoise.song().transport.metronome_enabled==true then
renoise.song().transport.metronome_enabled=false
else renoise.song().transport.metronome_enabled=true
end
end
}
renoise.tool():add_midi_mapping{
name = "Global:Tools:Stop Playback x[Toggle]",
invoke = function() panic()
end
}
I had slightly less success with buttons, and have thus far not been able to tie a +1/-1 type thing to midisliders, but at least i’ve got 6 out of 8 pads mapped out now, and it’s awesome
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.