Skip to content

Instantly share code, notes, and snippets.

@Sciss
Created December 9, 2020 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sciss/e9dd91851f2502c75f7e95d1e7059dad to your computer and use it in GitHub Desktop.
Save Sciss/e9dd91851f2502c75f7e95d1e7059dad to your computer and use it in GitHub Desktop.
val OVR = 6
val F = OVR * 8
val SR = 48000.0
val mod1 = LFSaw(111.1 / (SR * OVR)).linLin(-1, 1, 10, 40)
val mod2 = LFSaw( 11.1 / (SR * OVR)).linLin(-1, 1, 190, 720)
val mod3 = LFSaw( 22.2 / (SR * OVR)).linLin(-1, 1, 11, 42)
val h = TrigHold(Metro(mod3 * F), (ArithmSeq(4, 1) % mod1) * F, Metro(mod2 * F))
val r = Resample(h, factor = 1.0/OVR) * 0.8
val l = LeakDC(r).drop(300)
//Plot1D(l, 400)
AudioFileOut("out", l.take((SR * 40).toInt))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment