반응형

Bumpkit: A library for the Web Audio API

Bumpkit is a still-in-progress DAW-inspired library for the Web Audio API. It lets you create mixers, sampler instruments, and more.

bumpkit

 

Basics

Create a mixer with two tracks

var mixer = bumpkit.createMixer().addTrack().addTrack();

Create a new Sampler instrument and load an audio buffer

var sampler = bumpkit.createSampler().connect(mixer.tracks[0]);

bumpkit.loadBuffer('/audio/clap.mp3', function(buffer) {
  sampler.buffer(buffer);
});


 

 

 

 

반응형

+ Recent posts