ScalaCollider
ScalaCollider copied to clipboard
Examples for Buffer sine1-3
In GitLab by @Sciss on Jun 6, 2020, 12:31
E.g. translated from SC:
val b = Buffer.alloc(s, 512, 1)
b.sine1((1 to 4).map(_.reciprocal), normalize = true, wavetable = true, clear = true)
val x = play { Osc.ar(b.id, 200) * 0.2 }
In GitLab by @Sciss on Jun 6, 2020, 12:38
b.sine2(Seq((1, 1.0f), (3, 0.5f)), true, true, true) // fundamental at 1.0 amplitude, second overtone (third partial) at 0.5 or -6 dB