@carltesta, Ive not looked at this explicitly , but just some thoughts
so you want to view the metro as something that gives you a ‘timeline’,of an interval you specified when you created it (e.g. 100ms , 1s , whatever) , so this gives you a ‘resolution’
so basically you should independently count(*) to decide when to send the note off
(for a simple case that might be as easy as 1, but for a complex sequencer you might track individual notes on/off)
(*) count in a sequencer = position in the sequence.
Im not sure if parameters are going to cover ‘complex types’ , like a table which is a set of values.
but no worries, Lua has complete file io that you can use see here
note: file io is not to be done in a high priority thread, but i guess for matron this is a non-issue since SC is doing all the DSP, but still be careful of writing large files.