Hi,
I am looking for a quick way to print in the post window the amplitude numerical values coming from the Bus out used on the Server, for instance the Bus 0, for debugging.
I would like to have precise values without knowing the mul values of the Ugens used,
it could be useful to have the numbers visualized with the GUI meter, called with the command: s.meter;
I tried different solutions but I have to specify the signal to analyze.
(
{
var sig;
var ampSig;
sig = SinOsc.ar()*0.2;
ampSig = Lag.kr(Amplitude.kr(sig, releaseTime: 1.0));
ampSig.ampdb.round.poll(1, \amp).postln;
Out.ar(0, sig);
}.play;
)
that also works but I would like to find a quick way to “poll” the Server Out without knowing in advance the Ugens to be analized with their respective gains, just as it does s.meter; command
For Out, the signal will go onto a bus where it can be gotten. If it’s a control bus, theBus.get( ... action function ...) or theBus.getSynchronous. If it’s an audio bus, you’d need to add a synth to In.ar that bus, and SendReply to the language.
“… the UGens…” – you don’t have access to UGens inside a synth, from outside the synth. So this idea will just not work, period.
This would with with the JIT library. But in SuperCollider itself, it makes little sense You’re trying to create a SynthDef, and using a Synth inside it. You probably need to review the Client/Server help files, and tutorials.