Created
December 9, 2020 16:25
-
-
Save Sciss/e9dd91851f2502c75f7e95d1e7059dad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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