I would like to write a MIDI machine that clips out very short notes (noise from my guitar that gets past the Noise Gate functionality, eg: when I lift my finger off a string/fret).
How do I go about this?
I am comfortable with programming and can learn Lua. I noticed that the API is minimal and does not expose a clock (so that I can read and store time in order to reason about note duration).
Here is a Lengthfilter script I have allready made, you can alter it for your needs.
Inside is a trick to calculate ms_per_frame, inside the framehandler the length of a sounding note is known. these 2 things are combined to get a delayed start. Ofcourse
the start delay is quantised per ms_per_frame
Download the lua script to the “MIDIMachines” folder inside MG data dir
(folder location: see via our preferences / midi guitar data folder )
well, the collection of prewritten scripts is here, in “MIDI Machines” on this forum.
Writing your own midi machines is not for everyone: if you like to program or like to start with it you can install the demo script and start hacking it:
About the midi machine scripts and how to install them: