Dear developers and users,
In the following three code blocks,
(
// Code 1:
{
var pitches = ([0, 2, 4, 5, 7, 9, 11, 12] + 60);
pitches.do { |pitch|
var synth;
s.makeBundle(0.2, {
synth = Synth(\default, [\freq, pitch.midicps])
});
0.3.wait;
synth.release
}
}.fork
)
(
// Code 2:
{
var pitches = ([0, 2, 4, 5, 7, 9, 11, 12] + 60);
pitches.do { |pitch|
var synth;
s.makeBundle(0.2 // 0.2 should be 0.1 to eliminate errors.
,
{
synth = Synth(\default, [\freq, pitch.midicps])
});
0.3.wait;
synth.release
}
}.fork(TempoClock(2))
)
(
// Code 3:
{
var pitches = ([0, 2, 4, 5, 7, 9, 11, 12] + 60);
pitches.do { |pitch|
var synth;
s.makeBundle(0.2, {
synth = Synth(\default, [\freq, pitch.midicps])
});
0.3.wait;
synth.release
}
}.fork(TempoClock(0.25))
)
the second one (Code 2) returns the following errors:
-> a Routine
FAILURE IN SERVER /n_set Node 5480 not found
FAILURE IN SERVER /n_set Node 5481 not found
FAILURE IN SERVER /n_set Node 5482 not found
FAILURE IN SERVER /n_set Node 5483 not found
FAILURE IN SERVER /n_set Node 5484 not found
FAILURE IN SERVER /n_set Node 5485 not found
FAILURE IN SERVER /n_set Node 5486 not found
FAILURE IN SERVER /n_set Node 5487 not found
To avoid these errors, the latency should be reduced to 0.1. Why does this happen? How can I avoid this kind of error?
I know it is simpler to use Pbind for this example. I am comparing the variation of a simple example with ascending major scale examples, including Pbind examples.
Thank you in advance for your help!
Best,