diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-06 01:27:02 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-06 01:27:02 +0200 |
| commit | 2538fbd5471a61d51742281df0e019a2dd4ea24e (patch) | |
| tree | 89f877a86205412b7bf044cd8034ee6c350f204c /app/client/audio/lib/draw.js | |
| parent | d3fcd1212f7214b12b04a83d03dfb129c5fbb0a4 (diff) | |
consolidate
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 |
