Hi everyone,
I would like to cotrol the output level of my patch.
I've try to use the VU (in the "put" menu) but I don't understand how it works....
Is there a way to get my audio in this VU?
Thanks
A simple way to make a VU meter?
Hi everyone,
I would like to cotrol the output level of my patch.
I've try to use the VU (in the "put" menu) but I don't understand how it works....
Is there a way to get my audio in this VU?
Thanks
go to help->browser
answer is you need a *~, something to give it a value and a dac~
pd redefining mathematics |expr fact(0)|==0
The [vu] only accepts messages, so you need use [env~] to get the rms dB level, then rescale it. [env~] uses 100 dB to represent full scale, but [vu] uses 0 dB.
Accurate peak metering is pretty bitchy, and I'm not aware of an external that does it well, but you can at least use [edge~] to detect if it's clipping.
[expr~ abs($v1)>1]
|
[edge~]
|
[bng] <-- will bang when out of -1 to 1 range
oh i thought he just wanted a volume control
interestingly there isn't even a help patch for edge~
pd redefining mathematics |expr fact(0)|==0
I made one a while back.
Ok thanks I've made one but I think I didn't rescale the output of the env~ correctly...
Here's my patch. Is it OK?
so what about my quick idea?
but as mmb stated that's not accurate because of env~
pd redefining mathematics |expr fact(0)|==0
I've done this before without too much headache, and I don't see any problem with it.
(If you have more than output) connect all of your outputs to a [+~] object, connect this to a [env~] object, then to a [- 100] object, then to a number atom, finally send the output of the number atom to your VU meter.
Pd-extended 0.41.4, MacBook 2.0ghz Core Duo, 2GB RAM, OS X 10.6
I just took a look at that thing, your code should work (and you don't need a [+~] obj). To make it look pretty, switch the [- 100] and number objects, then do a send from the number atom to the VU meter so that you don't see a patch cord going into the meter.
Pd-extended 0.41.4, MacBook 2.0ghz Core Duo, 2GB RAM, OS X 10.6
Oops! Looks like something went wrong!