Skip to content

Instantly share code, notes, and snippets.

@nnirror
Created December 21, 2023 20:01
Show Gist options
  • Save nnirror/8a285727010b9cfd6196be7c677875f2 to your computer and use it in GitHub Desktop.
Save nnirror/8a285727010b9cfd6196be7c677875f2 to your computer and use it in GitHub Desktop.
nnirror 2023-12-21 set
// set bpm
$('bpm')
.bpm(80).keep()
.once();
// sleigh bells
$('sleigh_bells')
.seq('jingle jingle2 jingle jingle2 jingle jingle2 jingle jingle2')
//.slices(8,()=>{this.pitch(_.ramp(rf(0,2),rf(0,2))).comb(ms(20),0.99)})
.play();
// pad
$('pad')
.noise(8)
.scale(70, 127)
.chord(_.noise(ri(3, 8))
.scale(ri(-12, 0), ri(0, 12)))
.key('c major')
.note(_.noise(16)
.scale(0, 10), _.noise(16)
.scale(100, 2000));
// qmvoix
$('qmvoix')
.sample('quizmois2').times(0.5).reverb(2,0.96)
.play(0.5).once();
// glitch_mois
$('qlitch_mois')
.iter(32, () => {
this.sup(_.randsamp('quizmois')
//.range(rf(),rf()).log(rf())
.truncate(choose([n64, n32, n16]))
.dup(choose([0, 1, 3, 7])), _.ramp(0, 1, 32)
.shuffle()
.data[0])
})
.full().times(0.2)
.play();
// mod bpm 160/80/40 dup 15 (opt shuffle)
// electro quizmois
$('qmstank')
.seq('h/q h/q h/q h/q s/clap h/q h/q h/q quizmois2 h/q h/q h/q s/clap h/q h/q s/clap')
.mix(0.5, () => {
this.rotate(1)
})
.sup(_.seq('k/q _ _ _ _ k/q _ _ _ _ _ _ _ _ _ _',()=>{this.tanh(10)}).times(0.7))
.truncate(n1)
//.mix(0.5,()=>{this.slices(16,()=>{this.comb(ms(ri(1,50)))}).rechunk(16)})
.full()
.play();
// irage mods
$('irage_ccmax')
.ramp(rf(), rf())
.echo(ri(3, 11))
.scale(0.2, 1)
.size(32)
.cc(70);
$('irage_ccmin')
.ramp(rf(), rf())
.echo(ri(3, 11))
.scale(1, 0.2)
.size(32)
.cc(71);
$('irage_regen').turing(64).cc(73);
$('irage_feed').noise(16).cc(72);
$('irage_size').noise(16).scale(0.1,0.5).cc(74);
$('bpm')
.bpm(30)
.once();
// fuck w santa
$('hohoho')
.sample('hohoho').play();
// spectral snowflakes, 30bpm
$('a')
.noise(16)
.scale(20, 2000)
.set('f') // f = freq
.reduce(0)
.noise(16)
.set('l') // l = location
.reduce(0)
.noise(16)
.scale(1, 2)
.set('a') // a = amplitude (height in spectrum)
.reduce(0)
.noise(16)
.map([n8, n12, n16, n24, n32, n36])
.set('d') // d = duration
.reduce(0)
.silence(n1)
.iter(16, () => {
this.sup(_.sine(_.ramp(f[i], f[i] * a[i], d[i]), d[i]), l[i])
.sup(_.sine(_.ramp(f[i] * (a[i] + 1) / 2, f[i] * (a[i] + 1) / 2, d[i]), d[i]), l[i])
.sup(_.sine(_.ramp(f[i] * a[i], f[i], d[i]), d[i]), l[i])
})
.mix(0.5, () => {
this.tune('c', 0.01)
})
.lpf(1000, 1)
.full()
.play();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment