using env~ to compute input for vu meters seems cpu intensive. i have an app using 11 stereo audio paths (7 rows mixed to one of 4 audio outputs), and i have created a pair of vu meters for each. each vu input looks like this:
[env~ 8192 4096]
|
[- 100]
|
[vu]
i have set the arguments for env~ to a larger sampling window, which helps somewhat, but this is still chewing up a lot of cpu.
i am on a windows 7 machine, and with the env~ objects in place, cpu use (according to windows task manager) ranges from 40-60%. if i simply remove the env~ objects and change nothing else in my program, cpu usage is ~10-15%.
any suggestions for a less cpu intensive way to display some sense of audio level? it does not have to be really precise, but i would like for it to be fairly responsive.
thank you!