View Single Post
Old 05-22-2019, 09:03 PM   #483
woodslanding
Human being with feelings
 
woodslanding's Avatar
 
Join Date: Mar 2007
Location: Denver, CO
Posts: 633
Default

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
__________________
eric moon
Very Stable Genius
https://gogolab.com/

Last edited by woodslanding; 05-22-2019 at 10:13 PM.
woodslanding is offline   Reply With Quote