Created
September 23, 2018 16:29
-
-
Save daniel-bytes/0efa986fa8354ceef03b841efc7c0fbb to your computer and use it in GitHub Desktop.
Gendy Tutorial
This file contains 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
// Copied from https://composerprogrammer.com/teaching/supercollider/sctutorial/1.1%20Getting%20Started.html | |
({ | |
var n = 11; //try changing me to 34, or 3, and then re-running... | |
Resonz.ar( | |
Mix.fill(n,{ | |
var freq=rrand(50,560.3); | |
var numcps= rrand(2,20); | |
Pan2.ar(Gendy1.ar(6.rand,6.rand,1.0.rand,1.0.rand,freq ,freq, 1.0.rand, 1.0.rand, numcps, SinOsc.kr(exprand(0.02,0.2), 0, numcps/2, numcps/2), 0.5/(n.sqrt)), 1.0.rand2) | |
}), | |
MouseX.kr(100,2000), | |
MouseY.kr(0.01,1.0) | |
); | |
}.play) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment