Ok, this starts from me seeing Protman’s “Set Octave to” -autogenerator - which basically is:
for oct=0,9 do
renoise.tool():add_keybinding {
name = "Pattern Editor:Impulse:Set Note to Octave " .. oct,
invoke = function() Octave(oct) end
}
end
I get the concept. do a for oct 0 - 9 and get a total of 10 “Set Note to Octave” keybinds.
So I tried to do this:
for met=0,16 do
renoise.tool():add_keybinding {
name = "Global:Impulse Set:Metronome to " .. met,
invoke = function() met_tick2(met) end
}
end
.
That made the 17 keybinds, but while Protman’s octave(oct) does seem to somehow discuss what’s going on with the keyboard, or respond to the keybinding number being called, I couldn’t, for the life of me, figure out how to get mine to do what the number received by the keybinding would want to do.
I’m really fascinated by this capability to set the metronome tick amount, it’s really quite awesome. I know I can just sit down and do 17 functions and 17 shortcuts by hand and it’ll work, but this could be a load of fun to get done “like this”, faster, because then by setting
renoise.song().transport.metronome_beats_per_bar
quickly, it’ll be a easy to set one for
renoise.song().transport.metronome_lines_per_beat
Since the number is observable, I can see how one would eventually be able to halve and double the metronome speeds with shortcuts