Skip to content

Instantly share code, notes, and snippets.

@nnirror
Created December 22, 2022 04:39
Show Gist options
  • Select an option

  • Save nnirror/68d2f5e51faf0931c3b9ce5acffd2bca to your computer and use it in GitHub Desktop.

Select an option

Save nnirror/68d2f5e51faf0931c3b9ce5acffd2bca to your computer and use it in GitHub Desktop.
nnirror 2022-12-21 set
// bass in, start video rotation
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('bass') .from([48,44]).note(80,n1,7);
$('steps') .from(8).steps();
$('bpm') .from([60]).bpm();
// + pad
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('bass') .from([48,44]).note(80,n1,7);
$('pad') .ramp(random(),random(),choose([4,8,12,16]))
.sort().gain(12).round()
.map(_.from([36,37,39,41,43,44,46,48,49,51,53,55,56,58,60,61,63,65,67,68,70,72])
.shuffle().reduce(8)
)
.note(_.from([70,80,90,100,110]).palindrome(),
_.from([125,250,500]).shuffle().reduce(random(1,3,1)),
1);
$('steps') .from(8).steps();
$('bpm') .from([60]).bpm();
// add melodic & verb lpf
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('melodic') .iter(random(1,4,1),()=>
{this.append(_.drunk(choose([4,8,12,16]),random()))}
) .scale(random(0,15,1),random(98,127,1))
.note(100,500,4);
$('bass') .from([48,44]).note(80,n1,7);
$('steps') .from(choose([8,9,12,16,32,64])).shuffle().steps();
$('bpm') .from([60]).bpm();
$('pad') .ramp(random(),random(),choose([8,12,16,32,64]))
.sort().gain(12).round()
.map(_.from([36,37,39,41,43,44,46,48,49,51,53,55,56,58,60,61,63,65,67,68,70,72])
.shuffle().gain(12)
)
.note(_.from([70,80,90,100,110]).palindrome(),
_.from([125,250,500]).shuffle().reduce(random(1,3,1)),
1);
// add space
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
).scale(0.3,1).slew(10,1,1).cc(80);
$('space') .iter(random(3,16,1),()=>
{this.append(_.drunk(choose([3,4,8,12,16,24,32,64]),random()))}
).scale(random(0,60,1),random(70,127,1)).prob(0.5).nonzero()
.note(100,125,3);
$('melodic') .iter(random(1,4,1),()=>
{this.append(_.drunk(choose([4,8,12,16]),random()))}
).scale(random(0,15,1),random(98,127,1))
.note(100,500,4);
$('steps') .from(choose([8,9,12,16,32])).shuffle().steps();
$('bpm') .from([60]).bpm();
$('pad') .ramp(random(),random(),choose([8,12,16,32,64]))
.sort().gain(12).round()
.map(_.from([36,37,39,41,43,44,46,48,49,51,53,55,56,58,60,61,63,65,67,68,70,72])
.shuffle().gain(12)
)
.note(_.from([70,80,90,100,110]).palindrome(),
_.from([125,250,500]).shuffle().reduce(random(1,3,1)),
1);
$('bass') .from([48,44,60,66]).note(80,n1,7);
// add drums
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('drums') .iter(random(1,2,1),()=>
{this.append(_.drunk(choose([4,8,12,16,32]),random()))}
) .scale(36,37)
.sometimes(0.5,()=>{this.dup(random(1,3,1))})
.note(100,125,2);
$('space') .iter(random(3,16,1),()=>
{this.append(_.drunk(choose([3,4,8]),random()))}
) .scale(random(0,60,1),random(70,127,1))
.note(100,125,3);
$('melodic') .iter(random(1,4,1),()=>
{this.append(_.drunk(choose([4,8,12,16]),random()))}
) .scale(random(0,15,1),random(98,127,1))
.note(100,500,4);
$('steps') .from(choose([8,9,12,16,64,128])).shuffle()
.sometimes(0.5,()=>{this.dup(random(1,3,1))}).steps();
$('bpm') .from([60,120,240,360,360,360,360,360,480,30,60,90]).sort().bpm();
$('pad') .ramp(random(),random(),choose([8,12,16,32,64]))
.sort().gain(12).round()
.map(_.from([36,37,39,41,43,44,46,48,49,51,53,55,56,58,60,61,63,65,67,68,70,72])
.shuffle().gain(7)
)
.note(_.from([70,80,90,100,110]).palindrome(),
_.from([125,250,500]).shuffle().reduce(random(1,3,1)),
1);
$('bass') .from([48,44,60,66,72,78])
.note(80,n1,7);
// increase drum notes/iters
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('drums') .iter(random(1,8,1),()=>
{this.append(_.drunk(choose([4,8,12,16,32]),random()))}
) .scale(36,random(46,51,1))
.sometimes(0.5,()=>{this.dup(random(1,3,1))})
.note(100,125,2);
$('space') .iter(random(3,16,1),()=>
{this.append(_.drunk(choose([3,4,8]),random()))}
) .scale(random(0,60,1),random(70,127,1))
.note(100,125,3);
$('melodic') .iter(random(1,4,1),()=>
{this.append(_.drunk(choose([4,8,12,16]),random()))}
) .scale(random(0,15,1),random(98,127,1))
.note(100,500,4);
$('steps') .from(choose([8,9,12,16,64,128]))
.shuffle().sometimes(0.5,()=>{this.dup(random(1,3,1))}).steps();
$('bpm') .from([60,120,240,360,360,360,360,360,480,30,60,90]).sort().bpm();
$('pad') .ramp(random(),random(),choose([8,12,16,32,64]))
.sort().gain(12).round()
.map(_.from([36,37,39,41,43,44,46,48,49,51,53,55,56,58,60,61,63,65,67,68,70,72])
.shuffle().gain(7)
)
.note(_.from([70,80,90,100,110]).palindrome(),
_.from([125,250,500]).shuffle().reduce(random(1,3,1)),
1);
$('bass') .from([48,44,60,66,72,78])
.note(80,n1,7);
// only kicks n-dup
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1))
.sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('drums') .from([36,36]).sometimes(0.5,()=>{this.dup(random(1,5,1))})
.note(100,125,2);
$('space') .iter(random(3,16,1),()=>
{this.append(_.drunk(choose([3,4,8]),random()))}
) .scale(random(0,20,1),random(0,20,1))
.note(100,125,3);
$('melodic') .drunk(choose([4,8,12,16]),random())
.scale(random(0,15,1),random(98,127,1))
.note(_.drunk(5,random()).gain(127),500,4);
$('steps') .from(choose([16,18,24,20,28,32,36])).sort().steps();
$('bpm') .from([180,135,90]).bpm();
$('bass') .from([72,74,75,77,78,82,85,60,65]).shuffle()
.sometimes(0.5,()=>{this.reverse()}).dup(random(0,8,1))
.note(_.drunk(5,random()).gain(60),n1,7);
$('pad') .from([60,63,65,67,70,72,75,77,79,84,85,89,91,94,96])
.shuffle().reduce(choose([4,6,8]))
.note(_.sine(1,32).scale(25,60),125,1);
// cut space, gilberto&wind- 90/60/45bpm n-step no hats
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('drums') .from([36,42,36,42,38,42,36,42])
.dup(choose([1,2,3]))
.note(100,125,2);
$('melodic') .iter(random(1,4,1),()=>
{this.append(_.drunk(choose([4,8,12,16]),random()))}
) .scale(random(0,15,1),random(0,32,1))
.note(100,500,4);
$('steps') .from(choose([9,16,24,32,36,48,64])).steps();
$('bpm') .from([90,60,45]).bpm();
$('pad') .from([60,63,65,67,70,72,75,77,79,84,85,89,91,94,96])
.shuffle().reduce(choose([4,6,8]))
.sometimes(0.5,()=>{this.offset(-12)})
.note(_.sine(1,32).scale(25,50),125,1);
$('bass') .from(48).dup(choose([1,3,7])).note(80,125,7);
// wonk 90/60/45 octave bass bpm n-step w/ hats
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1))
.sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('drums') .from([36,42,36,42,38,42,36,42]).dup(choose([1,2,3,5]))
.note(100,125,2);
$('melodic') .iter(random(1,4,1),()=>
{this.append(_.drunk(choose([4,8,12,16]),random()))}
)
.scale(random(0,15,1),random(0,32,1))
.note(100,500,4);
$('steps') .from(choose([9,16,24,32,36,48,64])).steps();
$('bpm') .from([90,60,45]).bpm();
$('bass') .from([48,60])
.dup(choose([1,3,7,15,31]))
.shuffle()
.note(_.drunk(8,random()).scale(30,60),n32,7);
$('pad') .from([60,63,65,67,70,72,75,77,79,84,85,89,91,94,96])
.shuffle().reduce(choose([4,6,8]))
.sometimes(0.5,()=>{this.offset(-12)})
.note(_.sine(1,32).scale(25,60),125,1);
// jam drum notes, add chime, cut pad
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1))
.sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('chime') .spiral(choose([6,9,12,18,36,42,72]),random(0,360))
.scale(56,127)
.note(20,125,5);
$('drums') .from([41,42,41,42,38,42,41,42])
.dup(random(1,31,1))
.jam(random(0.2,0.9),16)
.sticky(random(0.1,0.9))
.at(0,36)
.note(100,125,2);
$('melodic') .iter(random(1,4,1),()=>
{this.append(_.drunk(choose([4,8,12,16]),random()))}
) .scale(random(0,15,1),random(0,32,1))
.note(100,500,4);
$('steps') .from(choose([9,16,24,32,36,48,64,96])).steps();
$('bpm') .from([90,60,45]).bpm();
$('bass') .from([48,50,52,56,60,65,70])
.dup(choose([1,3,7,15,31,63,127]))
.reduce(choose([2,4,8,16,24,32,48,64]))
.shuffle()
.note(_.drunk(8,random()).scale(30,60),n32,7);
// cut drums, add pad, melodic ^8
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1))
.sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('chime') .spiral(choose([3,6,9,12]),random(0,360))
.scale(56,127)
.note(100,125,5);
$('melodic') .iter(random(1,8,1),()=>
{this.append(_.drunk(choose([4,8,12,16]),random()))}
)
.scale(random(36,80,1),random(36,80,1))
.note(100,500,4);
$('steps') .from(choose([9,16,24,32,36,48,64])).steps();
$('bpm') .from([90,60,45]).bpm();
$('bass') .from([48,50,52,56,60,65,70])
.dup(choose([1,3,7,15,31,63,127]))
.reduce(choose([2,4,8,16,24,32,48,64]))
.shuffle()
.note(_.drunk(8,random()).scale(25,60),n32,7);
$('pad') .from([60,63,65,67,70,72,75,77,79,84,85,89,91,94,96])
.shuffle().reduce(choose([4,6,8]))
.sometimes(0.5,()=>{this.offset(-12)})
.note(_.sine(1,32).scale(25,60),125,1);
// bpm pattern 180 fraction downslide
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('chime') .spiral(choose([3,6,9,12]),random(0,360))
.scale(56,127)
.note(100,125,5);
$('melodic') .iter(random(1,4,1),()=>
{this.append(_.drunk(choose([4,8,12,16]),random()))}
).scale(random(36,80,1),random(36,80,1))
.note(100,500,4);
$('steps') .from(choose([9,16,24,32,36,48,64])).steps();
$('bpm') .from([180,180,180,180,90,90,45,22.5]).bpm();
$('bass') .from([40,55,50,55]).note(_.drunk(8,random()).scale(50,100),n32,7);
$('pad') .from([58,56,68,70,80,82]).dup(random(0,1,1))
.note(_.sine(1,32).scale(25,80),125,1);
// add drums, 45bpm minimal kicks step 1/2/3dup'd, ascending pad riff
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('drums') .from([36,36,36,36])
.sometimes(0.5,()=>{this.replace(36,42)})
.dup(choose([1,2,3]))
.note(100,125,2);
$('chime') .drunk(64,0.1).scale(56,127)
.note(_.noise(16).gain(127).round(),125,5);
$('steps') .from(128).steps();
$('bpm') .from(45).bpm();
$('bass') .noise(choose([8,16,32])).scale(36,60)
.note(_.noise(16).gain(70).round(),n16,7);
$('pad') .from([63,65,67,68]).note(100,125,1);
// 90bpm full drums
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('drums') .from([36,42,36,42,38,42,36,42]).sometimes(0.5,()=>{this.replace(36,42)})
.sometimes(0.25,()=>{this.replace(38,42)}).dup(choose([2,3,4,6]))
.note(100,125,2);
$('chime') .drunk(4,0.1).scale(56,127).note(_.noise(4).gain(127).round(),125,5);
$('steps') .from(choose([32,64,128])).steps();
$('bpm') .from(90).bpm();
$('bass') .noise(choose([3,3,3,8,6,9,12,24,16,32]))
.scale(36,72)
.note(_.noise(16).gain(70).round(),n16,7);
$('pad') .from([63,65,67,68]).note(100,125,1);
// cut chime, 180bpm full drums 2xbass
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('drums') .from([36,42,36,42,38,42,36,42])
.dup(choose([2,3,4]))
.sometimes(0.5,()=>{this.replace(38,42)})
.note(100,125,2);
$('steps') .from(choose([32,64,96])).steps();
$('bpm') .from(180).bpm();
$('bass') .from([48,44]).sometimes(0.5,()=>{this.dup(choose([1,2]))})
.note(random(80,110,1),n16,7);
$('pad') .from([63,65,67,68]).note(100,125,1);
// add chime&foghorn, cut pad minimal drums w/ acid bass
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('drums') .from([36,36,36,36]).note(100,125,2);
$('chime') .drunk(random(4,16,1),0.1).scale(56,127)
.note(_.noise(16).gain(127).round(),125,5);
$('foghorn') .drunk(random(4,16,1),0.1)
.scale(0,127)
.note(_.noise(16).scale(60,127).round(),500,6);
$('steps') .from(choose([32,64,128])).steps();
$('bpm') .from([20,80]).bpm();
$('bass') .noise(choose([64])).scale(36,84)
.note(_.noise(16).gain(66).round(),n16,7);
// 4-on-the-floor w/ acid bass
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('chime') .drunk(random(4,16,1),0.1).scale(56,127)
.note(_.noise(16).gain(127).round(),125,5);
$('foghorn') .drunk(random(4,16,1),0.1).scale(0,127)
.note(_.noise(16).scale(60,127).round(),500,6);
$('steps') .from(choose([256])).steps();
$('bpm') .from(20).bpm();
$('bass') .noise(choose([128])).scale(24,96)
.note(_.noise(16).gain(70).round(),choose([n16,n32,n64,n8]),7);
$('drums') .from([36,36,36,36]).dup(7).note(100,125,2);
// add pad, 20bpm 64step techno
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('chime') .drunk(random(4,16,1),0.1).scale(56,127)
.note(_.noise(16).gain(127).round(),125,5);
$('foghorn') .drunk(random(4,16,1),0.1).scale(0,127)
.note(_.noise(16).scale(60,127).round(),500,6);
$('steps') .from(choose([256])).steps();
$('bpm') .from(20).bpm();
$('bass') .noise(choose([128]))
.scale(24,96)
.note(_.noise(16).gain(70).round(),choose([n16,n32,n64,n8]),7);
$('drums') .from([38,42,36,42,38,42,36,42]).dup(7)
.note(_.sine(1,64).scale(10,110),125,2);
$('pad') .from([65,62,67,58,72,77])
.shuffle().reduce(2).dup(1)
.note(random(30,60),n16,1);
// cut drums, ambient
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('steps') .from(choose([256])).steps();
$('bpm') .from([20,40,40,80,80,80,80]).bpm();
$('chime') .drunk(random(4,16,1),0.1).scale(56,127)
.note(_.noise(16).gain(127).round(),125,5);
$('foghorn') .drunk(random(4,16,1),0.1).scale(0,127)
.note(_.noise(16).scale(60,127).round(),500,6);
$('chords') .from([60,72,84,72]).shuffle().dup(3)
.note(_.from(80),2000,8);
$('melodic') .iter(random(4,32,1),()=>
{this.append(_.drunk(choose([4,8,12,16]),random()))}
) .scale(random(0,15,1),random(98,127,1))
.note(_.drunk(32,random()).scale(40,100),125,4);
$('pad') .from([65,62,67,58]).shuffle().reduce(2).dup(1)
.note(random(30,60),n16,1);
// cut chime, ambient
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('steps') .from(choose([256])).steps();
$('bpm') .from([20,40,40,80,80,80,80]).bpm();
$('foghorn') .drunk(random(4,16,1),0.1).scale(0,127)
.note(_.noise(16).scale(60,127).round(),500,6);
$('chords') .from([60,60,72,72])
.shuffle().dup(3)
.note(_.from(80),2000,8);
$('bass') .from([48,44]).note(100,n1,7);
$('pad') .from([65,62,67,58])
.offset(12).shuffle().reduce(2).dup(1)
.note(random(30,60),n16,1);
// mouse x/y control synth jam
// mouse x controls #notes per voice mouse y controls #steps/256
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('bpm') .iter(100,()=>
{this.append(_.from((i+1)*5).dup(i).offset(10))}
).bpm();
$('chords') .noise(32).map(_.from([60,65,70,74,79])
.offset(5)).reduce(Math.round(mousex*63))
.note(_.noise(32).scale(40,70),n1,8);
$('steps') .from(mousey*256).steps();
$('chime') .noise(4).scale(56,127).prob(0.5).nonzero()
.note(_.noise(32).scale(40,70),n1,5);
// add drums
// mouse x controls #notes per voice mouse y controls #steps/256
// regenerate / clear hooks for locked video loops
$('kaleid_y') .sine(3,20).scale(0,0.001).cc(69);
$('kaleid_x') .sine(1,512).scale(0,0.001).cc(70);
$('rotate_x') .drunk(random(1,128,1),0.001).cc(71);
$('rotate_amt') .noise(random(1,5,1)).sort()
.sometimes(0.5,()=>{this.reverse()})
.slew(100,1,1).cc(73);
$('verb_lpf') .iter(random(1,8,1),()=>
{this.append(_.spiral(choose([4,8,12,16]),random(0,360)))}
) .scale(0.3,1).slew(10,1,1).cc(80);
$('bpm') .iter(100,()=>
{this.append(_.from((i+1)*5).dup(i).offset(10))}
).bpm();
$('drums') .noise(4,128,1)
.scale(36,random(47,51,1))
.reduce(Math.round(mousex*63))
.note(_.noise(32).scale(40,90),n1,2);
$('bass') .noise(random(16,96,1))
.prob(random()).nonzero()
.scale(24,85)
.reduce(Math.round(mousex*63))
.note(_.noise(32).scale(40,70),n1,7);
$('chords') .noise(32)
.map(_.from([60,65,70,74,79]).offset(5))
.reduce(Math.round(mousex*63))
.note(_.noise(32).scale(40,70),n1,8);
$('steps') .from(mousey*256).steps();
$('chime') .noise(4)
.scale(56,127)
.prob(0.5).nonzero()
.note(_.noise(32).scale(40,70),n1,5);
// to: the viewer
$('๐ŸŽ…').sample('hohoho.wav').gain(0.5).size(n1).play();
$('bpm').from(100).bpm();
// merry solstice!
// love, nnirror >|<
$('๐ŸŽ…').iter(random(4,8,1),()=>{
this.add(_.sample('hohoho.wav')
.ichunk(_.ramp(random(0,0.5),random(0.6,1),random(8,256,1)))
.fadein(0.1).fadeout(0.1)
)}).audio().gain(0.5).size(n1).play();
$('bpm').from(100).bpm();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment