Skip to content

Instantly share code, notes, and snippets.

@iani
Created October 2, 2015 09:04
Show Gist options
  • Select an option

  • Save iani/7c909d2d372e0d5448f3 to your computer and use it in GitHub Desktop.

Select an option

Save iani/7c909d2d372e0d5448f3 to your computer and use it in GitHub Desktop.
Session 1 of Computer Music Class - first steps in SuperCollider (2015-10-02)
().play;
(degree: 15).play;
(degree: 15, dur: 0.1).play;
(degree: 15, dur: 10.1).play;
//:
(
{
(0..14) do: { | note |
(degree: note, dur: 0.2).play;
0.2.wait;
}
}.fork
)
//:
(
{
(0..14) do: { | note |
(degree: [note, note + 4.rand + 1], dur: 0.2).play;
0.2.wait;
}
}.fork
)
//:
Pbind (\dur, 0.2, \degree, Pseq ((0..14))).play;
//:
Pbind (\dur, 0.1, \degree, Pseq ([(0..14).scramble, (0..14)].flop, 4)).play;
//:
[(0..14).scramble, 10 ! 15].flop
//:
(1..5).scramble
//:
a = { WhiteNoise.ar (0.1)}.play;
//:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment