This case is a bit advanced, and would be very useful if it were possible…
I have a button, and the mouse. To press and release the mouse (a simple click), the button execute a function through the “notifier = function() end”, but this function is only executed once, for example write a specific note (or effect, any parameter) in the pattern editor.Is it possible to repeat this function until the mouse is released?
BUTTON = vb:button {
id = "BUTTON",
width = 80,
height = 22,
text = "write '7F' volume",
pressed = function () end, --<---- initiate repeat
released = function () end, --<---- stop repeat
}
The result would be to write the 7F value repeatedly while holding down the mouse.
I suppose to build the repetition there would be two steps (in pressed):
- Do not repeat for a few milliseconds (a wait).
- Repeat the write function from after the wait, and ends when the mouse is released.
I have all functions built to insert any parameter in the pattern editor (notes, instruments, volume, panning, delay, and all effects) in any type of track.
Attached is an image capture to get this idea:
For example, hold down the volume button (yellow) with the mouse, write the 7F value with repetition in selected position in pattern editor.This tool allows even jump between patterns, assigning a specific line break value.If the repetition with mouse were possible, it would be a beast, a great ally for the workflow.
Do you have any function to do this?(only as far as repetition is concerned)
Thanks!!!