diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-06 22:45:25 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-06 22:45:25 +0200 |
| commit | 26b80e09cd64d5bb5b40bc7872aff397d9cc80ea (patch) | |
| tree | b98217f3e7694f7e896a9bca21bc0506676f794d /app/client/audio | |
| parent | 954c81596701e4948a7e9cc3133f601b067ba31c (diff) | |
play frames
Diffstat (limited to 'app/client/audio')
| -rw-r--r-- | app/client/audio/pix2wav.js | 10 | ||||
| -rw-r--r-- | app/client/audio/wav2pix.js | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/app/client/audio/pix2wav.js b/app/client/audio/pix2wav.js index beccc56..73dce85 100644 --- a/app/client/audio/pix2wav.js +++ b/app/client/audio/pix2wav.js @@ -9,7 +9,7 @@ import spectrum from './lib/spectrum' const _r = 8 const _i = 8 -function play(frame) { +export function play(frame) { // const { canvas, imageData } = draw.raw_spectrum(fft, 0, 256, 0, 256, 1, 1) // console.log(_r, _i) // const { canvas, imageData } = draw.raw_spectrum(player.fft, 0, 256, 0, 256, _r, _i) @@ -21,8 +21,8 @@ function play(frame) { const _p = new Tone.Player(buf) _p.connect(output) _p.start(Tone.now()) - redraw(new_fft) -} -function redraw(new_fft){ - const { canvas, imageData } = draw.raw_spectrum(new_fft, 0, 256, 0, 256, _r, _i) + // redraw(new_fft) } +// function redraw(new_fft){ +// const { canvas, imageData } = draw.raw_spectrum(new_fft, 0, 256, 0, 256, _r, _i) +// } diff --git a/app/client/audio/wav2pix.js b/app/client/audio/wav2pix.js index 1a84e16..e561bae 100644 --- a/app/client/audio/wav2pix.js +++ b/app/client/audio/wav2pix.js @@ -126,4 +126,3 @@ function render(pcm, sr, count, zip){ } return { fft, canvas, imageData } } - |
