Okay, continuing onward...
How would I do meters?
I'd also like to control elements from midi... is there a way to do that? I considered having dummy values in a jsfx, but I still need to figure out how to read them
I assume the gui framework has a clock somewhere to poll the mouse and keyboard, correct? Maybe it could poll midi and output levels at the same time?
Okay, right after writing this I stumbled into onupdate(). I tried this for meters:
Code:
ctl:onupdate(ctl:val(reaper.Track_GetPeakInfo(track,1)))
not doing anything yet...
another try, seems closer:
Code:
ctl.onupdate = function(self) self:val(getMeter(track,1)) end --getMeter calls getPeakInfo
oh my, this IS working :0