Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save danielmkarlsson/31f90607b882eb7b4fe2a2525c4ed3e9 to your computer and use it in GitHub Desktop.

Select an option

Save danielmkarlsson/31f90607b882eb7b4fe2a2525c4ed3e9 to your computer and use it in GitHub Desktop.
Pseg example
(
Pdef(0,
Pseed(45,
Pbind(*[
type: \cln,
snd: \fmx,
seg: Pdup(24, Pexprand(39, 299)),
dur: Pseg(Pexprand(1/22, 1/10), Pkey(\seg), \exp, inf),
hr1: Pseg(Pexprand(1.0, 4.0), Pkey(\seg), \exp, inf),
hr2: Pseg(Pexprand(1.0, 4.0), Pkey(\seg), \exp, inf),
hr3: Pseg(Pexprand(1.0, 4.0), Pkey(\seg), \exp, inf),
hr4: Pseg(Pexprand(1.0, 4.0), Pkey(\seg), \exp, inf),
mi1: Pseg(Pwhite(0.0001, 1.0), Pkey(\seg), \exp, inf),
mi2: Pseg(Pexprand(1.0, 4.0), Pkey(\seg), \exp, inf),
mi3: Pseg(Pexprand(1.0, 4.0), Pkey(\seg), \exp, inf),
mi4: Pseg(Pexprand(1.0, 4.0), Pkey(\seg), \exp, inf),
en1: Pseg(Pexprand(0.001, 1.0), Pkey(\seg), \exp, inf),
en2: Pseg(Pexprand(0.001, 1.0), Pkey(\seg), \exp, inf),
en3: Pseg(Pexprand(0.001, 1.0), Pkey(\seg), \exp, inf),
en4: Pseg(Pexprand(0.001, 1.0), Pkey(\seg), \exp, inf),
cu1: Pseg(Pwhite(0.0, 1.0), Pkey(\seg), \exp, inf),
cu2: Pseg(Pwhite(0.0, 1.0), Pkey(\seg), \exp, inf),
cu3: Pseg(Pwhite(0.0, 1.0), Pkey(\seg), \exp, inf),
cu4: Pseg(Pwhite(0.0, 1.0), Pkey(\seg), \exp, inf),
lpf: (20000 - Pseg(Pwhite(200, 20000), Pkey(\seg), \exp, inf)).trace,
amp: Pseg(Pexprand(0.3, 0.6), Pkey(\seg), \exp, inf),
pan: Pseg(Pwhite(0.0, 1.0), Pkey(\seg), \exp, inf),
cav: 1,
cai: Pseg(Pwhite(0.1, 1.0), Pkey(\seg), \lin, inf),
freq: Pseg(Pexprand(100, 400), Pkey(\seg), \exp, inf),
sustain: Pseg(Pexprand(0.2, 20.0), Pkey(\seg), \exp, inf),
stretch: Pseg(Pexprand(0.5, 1.0), Pkey(\seg), \exp, inf),
])
)
).play;
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment