Last active
November 21, 2016 18:54
-
-
Save notepadwebdev/bef8b8650cb8b148c4a3e83c0ba8564a to your computer and use it in GitHub Desktop.
This file contains 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
// Load the audio file for the loop | |
this.drumloop = new Pizzicato.Sound({ | |
source: 'file', | |
options: { | |
path: '/assets/audio/drum-break-99bpm.wav', | |
loop: true | |
} | |
}); | |
// Create the Low Pass Filter effect | |
this.LPF = new Pizzicato.Effects.LowPassFilter(); | |
// Create the Stereo Panner | |
this.panner = new Pizzicato.Effects.StereoPanner(); | |
// Add the effects to the loop | |
this.drumloop.addEffect(this.LPF); | |
this.drumloop.addEffect(this.panner); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment