[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] first trig lost (CoinGate ore me?)
Hi, a question:
I can hear (and see -- polled, posted) the first trigger in the first
example (one synth), but not in the second (two synths).
Thanks in advance for any clue.
Later:
Just found out that commenting out the CoinGate makes it work! But why?
Also:
What exactly is determining the pulse width of the CoinGate?
Time position versus control block size?
Curious
Stephan
s.boot;
(
s.makeBundle (nil, {
// one def
SynthDef("trig-coin-test", { | freq = 0.6, prob = 1.0, out = 0 |
var trig;
trig = Impulse.ar(freq);
trig = CoinGate.ar(prob, trig);
trig.poll(trig);
Out.ar(out, trig);
}).send(s);
// the same in two defs
SynthDef("trig", { | freq = 0.6, out = 123 |
var trig;
trig = Impulse.ar(freq);
Out.ar(out, trig);
}).send(s);
SynthDef("coin-test", { | in = 123, prob = 1.0, out = 0 |
var trig;
trig = In.ar(in, 1);
trig = CoinGate.ar(prob, trig);
trig.poll(trig);
Out.ar(out, trig);
}).send(s);
})
)
// one synth good
y = Synth("trig-coin-test");
y.free;
(
// two synths bad (first trig lost)
s.makeBundle(nil, {
z = Synth("coin-test");
y = Synth("trig");
});
)
[y, z].do { |each| each.free };
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/