Failures When Evaluating the Example Codes in DWGPluckedStiff Help Document


#1

Hi,

The following code is the complete copy of the example codes in DWGPluckedStiff help document in the SC-10.0-beta2 release.

//Define pluck synthdef
(
SynthDef(\help_dwgpluckedstiff, { |out=0, freq=440, amp=0.5, gate=1, c3=20, pan=0,fB = 80|
    var env = Env.new([0,1, 1, 0],[0.001,0.006, 0.0005],[5,-5, -8]);
    var inp = amp * LFClipNoise.ar(2000) * EnvGen.ar(env,gate);
    var son = DWGPluckedStiff.ar(freq, amp, gate,0.1,1,c3,inp,fB);
    DetectSilence.ar(son, 0.001, doneAction:2);
    Out.ar(out, Pan2.ar(son * 0.1, pan));
}).add;
)

//Use it.
(
a = Scale.new(
    #[0, 1, 3, 5, 7, 8, 10],
    12,
    Tuning.new([0, 0.75, 2, 3.5, 4, 5, 6, 7, 8, 9, 10, 11]),
    "Custom"
);

Pbind(
    \instrument, \help_dwgpluckedstiff,
    \scale ,a,
    \delta , Pseq([1,0.5,0.5,0.5,0.5,0.5,0.5,1,0.5,0.5,1,1]*0.25,inf),
    \dur , 2,
    \degree, Pseq([1,8,8,8,8,8,8,-6,Prand([9,10,11],1),1,7,8]-8, inf),
    \amp , Pwhite(0.2,0.8),
    \c3 , Pseq([Pseq([1400],24),Pseq([300],24)],inf),
    \pan , Pwhite(-1,1),
    \fB , Pseq([0,80,400],inf),
).play;
)

When evaluating the second block of the codes, irregular failure messages appear in post window as follows:

-> an EventStreamPlayer
FAILURE IN SERVER /n_set Node 1700 not found
FAILURE IN SERVER /n_set Node 1808 not found
FAILURE IN SERVER /n_set Node 1844 not found
FAILURE IN SERVER /n_set Node 1856 not found
FAILURE IN SERVER /n_set Node 1997 not found
FAILURE IN SERVER /n_set Node 2084 not found
FAILURE IN SERVER /n_set Node 2096 not found
FAILURE IN SERVER /n_set Node 2127 not found
FAILURE IN SERVER /n_set Node 2228 not found
FAILURE IN SERVER /n_set Node 2240 not found
FAILURE IN SERVER /n_set Node 2274 not found
FAILURE IN SERVER /n_set Node 2288 not found
FAILURE IN SERVER /n_set Node 2336 not found
FAILURE IN SERVER /n_set Node 2420 not found

What could I do not to see the messages?


#2

Would substituting the argument ‘gate’ with 1 and erasing ‘gate=1’ in the argument list be a proper solution?

(
SynthDef(\help_dwgpluckedstiff, { |out=0, freq=440, amp=0.5, c3=20, pan=0,fB = 80|
    var env = Env.new([0,1, 1, 0],[0.001,0.006, 0.0005],[5,-5, -8]);
    var inp = amp * LFClipNoise.ar(2000) * EnvGen.ar(env);
    var son = DWGPluckedStiff.ar(freq, amp, 1,0.1,1,c3,inp,fB);
    DetectSilence.ar(son, 0.001, doneAction:2);
    Out.ar(out, Pan2.ar(son * 0.1, pan));
}).add;
)

#3

Yes that would work. You’re always run the risk of having problems if you have a synth that has a gate as an argument and a ‘detectsilence’ ugen.


#4

Should I create a PR?