MichaelPilyavskiy / ReaScripts

Scripts for REAPER written by MichaelPilyavskiy (mpl)
128 stars 46 forks source link

Update mpl_Toggle soft pseudo bypass focused FX.lua #19

Closed X-Raym closed 3 years ago

X-Raym commented 3 years ago

Time based counter incrementation variable

MichaelPilyavskiy commented 3 years ago

Hi. 32Hz is not really "standart" value, because it depends on how CPU hungry project is. Maybe it is better to play around os.clock?

X-Raym commented 3 years ago

@MichaelPilyavskiy Hi !

In fact 33 is more accurate I think but 32 is better cause it give nice numbers when division.

Anyway, my single line of code addition has the advantage of being as simple to use/mod than original function, as it in the end it just output a step value parameter, just like the original script. So original behavior isn't changed at all by my script. It may be less precise than an os.clock approach but I'm not sure it need to be that precised.

MichaelPilyavskiy commented 3 years ago

Ok thanks for the contribution!