Hello,
I am trying to understand why the following code produces sound.
The way I see it (obviously wrong) is that index
starts silent waiting for a signal from LocalOut
, then used inside Shaper
where - since it still waits for LocalOut
- does not read the buffer (so outputs nothing), and finally LocalOut
sends this silent sig
back to LocalIn
.
Shouldn’t this code produce nothing/silence? What am I missing?
(
~wt = Signal.sineFill(8193, [1], [0]);
b = Buffer.loadCollection(s, ~wt.asWavetableNoWrap);
)
(
x = {
var sig, index;
index = LocalIn.ar(2);
sig = Shaper.ar(b, index);
LocalOut.ar(sig);
sig * 0.1;
}.play;
)
x.release(2);