SamplePlayer, SampleLoader, Sequencer and Keyboard
Firefox Audio API example
Created by Almer Thie (code.almeros.com,
@almeros) with the experimental
Firefox Audio Data API.
If you want to try it yourself, get a yourself a copy of FireFox 4 (or higher). Check my blog for more information about this demo.
Sample to use:
Press to start the sequencer. It contains a sequence with 'note' events but also 'note stop' events. You can change the BPM of the sequencer:
Apart from the sequencer you can play your keyboard (q = C-4, w = D-4 etc. + = octave up, - = octave down) to play some nice tune! You can press multiple keys and hold keys to sustain them.
Add some and/or and tweak the volume a little: