Skip to content

Instantly share code, notes, and snippets.

@Sciss
Created March 4, 2013 16:13
Show Gist options
  • Save Sciss/5083362 to your computer and use it in GitHub Desktop.
Save Sciss/5083362 to your computer and use it in GitHub Desktop.
val b = Buffer.alloc(s, numFrames = 3)
b.setn(Vector(0.2f,0.5f,1.2f))
val x = gui {
val durs = Dbufrd(b.id, Dseries(0,1,inf))
val lvl = Dseq(Seq(1,0),inf)
val sig = DemandEnvGen.ar(levels = lvl, durs = durs, shapes = stepShape.id)
val trig = sig absdif Delay1.ar(sig)
trig // .poll(trig, "bang")
}
x.waveform(duration=2.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment