Forgive me for the incorrect way of expressing myself. Let me explain the context. I’m preparing a set for live coding with some preset configurations. I have three documents in a setup folder: Setup.scd, snippets.scd and synhtdefs.scd. It’s an approach from theseanco (S Cotterill) · GitHub that I liked a lot to start with. I’m creating my own synths and snippets to add to the documents
synthdef.scd and snippets.scd to suit my taste and needs. As I said before I have problems to manage the audios in the ProxySpace environment, on the one hand, on the other hand this function has no more code than the one I published in my last post. This function is part of a synthdef that I found out there to make a drone sound that included two instances of car and mod that I excluded to simplify the function and because I wanted to start with a simpler texture. So, the code and the bug that the code returns is as follows:
(“Setup/Setup.scd”).loadRelative;
(
~mix.ar;
(
~verb = {
XFade2.ar(
LPF.ar(
GVerb.ar(
~mix.ar(1), 80,8, maxroomsize:1000),
8500
),
~mix, \pan.kr(0,0.5),\rel.kr(0.15)
)
};
~verb.play;
)
)
(
~f.play; ~f.awake_(false);
~f = {arg f1Freq=0.1,nFreq=440, m1Ratio=1,amp=0.1, dur=55, ampM=0.84 , pan=0;var sig, car1, mod1, env, index;index = LFNoise1.kr(0.2).range(2, 12);env = EnvGen.kr(Env.new([0, 0.70, 0.70, 0], [dur0.333, dur0.333, dur0.333]), doneAction:2);mod1 = SinOsc.ar([nFreq * m1Ratio, nFreq+0.7 * m1Ratio], mul:nFreq * m1Ratio * index) * ampM;
car1 = SinOsc.ar(f1Freq + mod1); sig = car1 env * amp;sig = Pan2.ar(sig, pan);}
)
~seq = Tdef(\seq, {
~f.spawn()
})
y me devuelve:
→ NodeProxy.audio(localhost, 2)
WARNING: Synth output should be a flat array.
[ [ an OutputProxy, an OutputProxy ], [ an OutputProxy, an OutputProxy ] ]
Flattened to: [ an OutputProxy, an OutputProxy, an OutputProxy, an OutputProxy ]
See NodeProxy helpfile:routing
NodeProxy.audio(localhost, 2): wrapped channels from 4 to 2 channels
→ a Function
Un saludo!!