Hi Samuel,

This is exactly what we need!
Many thanks for this feature and the help!

BR, Peter

Am 26.10.2013 21:11, schrieb Samuel Mimram:
> s = playlist("~/Music")
> s = mksafe(s)
>
> duration = interactive.float("duration", 1.)
>
> rs = rms.stereo(duration=duration,s)
> r = fst(rs)
> s = snd(rs)
>
> def rms_left(_) = "#{fst(r())}" end
> def rms_right(_) = "#{snd(r())}" end
> server.register("rms_left",rms_left)
> server.register("rms_right",rms_right)
>
> output.pulseaudio(id="pa",s)
>
> You can get/set the duration with "var.get duration" / "var.set
> duration" and get rms with "rms_left" and "rms_right".


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to