diff options
Diffstat (limited to 'app/client/audio/lib/draw.js')
| -rw-r--r-- | app/client/audio/lib/draw.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/client/audio/lib/draw.js b/app/client/audio/lib/draw.js index f5ba3ac..e523b6a 100644 --- a/app/client/audio/lib/draw.js +++ b/app/client/audio/lib/draw.js @@ -1,7 +1,7 @@ const scratch = document.createElement('canvas') const scratchCtx = scratch.getContext('2d-lodpi') -function spectrum(spec, x0, y0, ww, hh){ +export function spectrum(spec, x0, y0, ww, hh){ const data = spec.data const fft_size = spec.fft_size const half_fft_size = spec.fft_size / 2 @@ -56,7 +56,7 @@ function spectrum(spec, x0, y0, ww, hh){ ctx.restore() } -function raw_spectrum(spec, x0, y0, ww, hh, def_min_r, def_min_i){ +export function raw_spectrum(spec, x0, y0, ww, hh, def_min_r, def_min_i){ const data = spec.data const fft_size = spec.fft_size const half_fft_size = spec.fft_size / 2 |
