Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save notepadwebdev/bef8b8650cb8b148c4a3e83c0ba8564a to your computer and use it in GitHub Desktop.
Save notepadwebdev/bef8b8650cb8b148c4a3e83c0ba8564a to your computer and use it in GitHub Desktop.
// 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