From: Peter R. <pet...@gm...> - 2013-10-27 18:24:30
|
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". |