A time stretching web app using soundtouch-js and wavesurfer-js.
this.states = [playing, paused, finished] this.backend.source.buffer.extract()
The following code exposes soundtouch objects to the browser window:
window.soundtouch = {
'RateTransposer': RateTransposer,
'Stretch': Stretch,
'SimpleFilter': SimpleFilter,
'SoundTouch': SoundTouch,
'WebAudioBufferSource': WebAudioBufferSource,
'getWebAudioNode': getWebAudioNode
};
Here are the required argument types each of these constructors will take:
- RateTransposer createBuffer=bool
- Stretch createBuffers=bool, sampleRate=int
- SimpleFilter sourceSound=obj, pipe=obj
- SoundTouch sampleRate=int
- WebAudioBufferSource buffer=obj
- getWebAudioNode context=obj, filter=obj
MP3 Support: Chrome >= 3.0 Safari >= 3.1 Safari Mobile >= 3.2 Opera >= 10.50 Firefox >= 3.5 A note from: Mozilla's Browser Compatibility Table
[5]To avoid patent issues, support for MP3 is not built directly into Firefox. Instead it relies on support from the OS. Firefox supports this format on the following platforms: Windows Vista+ since Firefox 22.0, Android since Firefox 20.0, Firefox OS since Firefox 15.0, Linux since Firefox 26.0 (relies on GStreamer codecs) and OS X 10.7 since Firefox 35.0.