From Gun.io
Currently works in Chrome through the 'webkitAudioContext' object.
Firefox only has their own useless nonstandard sound API thing that makes Flash look good.
- npm install -g coffee-script
- coffee --compile chrome-waveform.coffee
For local testing, remember to run Chrome locally with --allow-file-access-from-files.
- OSX: open /Applications/Google\ Chrome.app --args --allow-file-access-from-files
- See waveform.html
Waveform :: ({file, canvas, onStatus, onReady}) -> {
playback :: { moveCursor :: (Num) -> () }
view :: {
play :: -> ()
playAt :: (Num) -> ()
getTime :: -> Num
pause :: -> ()
isPaused :: -> Bool
}
}