I’m heavily using tuplets in midi and would like to have a lua script where - given an already selected note in a region - I can enter the following values through a GUI
n (e.g. 13)
p (e.g. 7)
q (e.g. 4)
based on which the script then will add a sequence of notes (copies of the already existing one) forming a n-tuplet lasting p / q.
Simplest thing is to just get the most recent nightly build from ardour.org. In internal edit mode, select a note (or multiple notes), and then press “s” repeatedly to split it into ever smaller tuples, and shift-S to reverse that. Select a set of notes of the same pitch and press “j” to join them back into a single note.
If you want to see how it is done in C++:
that won’t translate precisely to Lua, but if you still need a custom script, maybe someone else can make some suggestions.