Any suggestions for this?
I am using ~pvu for two things:
- to generate a visual audio meter on screen.
- to detect when signal goes above a threshold
Vanilla workaround to replace ~pvu
Any suggestions for this?
I am using ~pvu for two things:
@nuromantix Hello there.......
You are going to need to generate a list [x y( where x is the meter level and y is the peak level (open the help file for the [vu] object and look in [pd source]. Or apply vu levels to the left inlet and peak values to the right.
You will have to make your own abstraction to calculate those values from the audio signal, Peak is easy, as it is just the highest value. For vu you will need to calculate the average (rms) power value for the signal in a timeframe of your choosing (response time for the meter)........ and then convert to db (10xlog10)......but this can be done for you easily using [env~]..... see below....
Unless someone has already made the abstraction and will kindly post it!
David.
Oops! Looks like something went wrong!