Skip to content

Instantly share code, notes, and snippets.

@nnirror
Created July 11, 2022 21:51
Show Gist options
  • Select an option

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

Select an option

Save nnirror/cf36d7c758f26b951efd4d046691414a to your computer and use it in GitHub Desktop.
// download/install facet & create a "drums" directory inside the "samples" directory
// then run this until you have however many samples you want
_.noise(random(40,2000,1))
.scale(-1,1)
.times(_.sine(random(1,32),random(10,250,1)).scale(-1,1).audio())
.echo(10)
.scale(-1,1)
.sometimes(0.25,()=>{this.log(random(1,60))})
.sometimes(0.25,()=>{this.pow(random(1,60))})
.iter(16,()=>{this.allpass().delay(random(1,20000))
.scale(-1,1).audio()})
.ichunk(_.ramp(random(),random(),random(32,512)))
.lpf(1000)
.speed(random(0,0.15))
.saveAs('drums/'+Date.now())
.on();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment