ZVK / stretcher

A time stretching UI using soundtouch-js built for Berklee PULSE.

Home Page:http://zackzukowski.com/TAP-audio-player

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stretcher

A time stretching web app using soundtouch-js and wavesurfer-js.

WaveSurfer Documentation:

this.states = [playing, paused, finished] this.backend.source.buffer.extract()

SoundTouch Basics:

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

Browser Requirements

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.

About

A time stretching UI using soundtouch-js built for Berklee PULSE.

http://zackzukowski.com/TAP-audio-player


Languages

Language:JavaScript 78.4%Language:Jupyter Notebook 15.2%Language:HTML 5.8%Language:CSS 0.7%