I hereby claim:
- I am HugoDaniel on github.
- I am hugodaniel (https://keybase.io/hugodaniel) on keybase.
- I have a public key whose fingerprint is AFF1 4A1A 00D1 8A78 3222 F9EE 87F9 CDC0 092B D266
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #include <stdio.h> | |
| int main(void) { | |
| return 0; | |
| } |
| importScripts('aurora.js', 'mp3.js'); | |
| var waveform; | |
| /* takes one element of the buffer for every bin of length binSize */ | |
| function sample(buffer, binSize) { | |
| for(var i = 0; i < buffer.length; i += binSize) { | |
| waveform[i/binSize] = Math.max.apply(Math, buffer.subarray(i, i + binSize - 1)); | |
| } | |
| } |
| // this is a simple test |