Created
July 11, 2022 21:51
-
-
Save nnirror/cf36d7c758f26b951efd4d046691414a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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