From 2538fbd5471a61d51742281df0e019a2dd4ea24e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 6 Jun 2018 01:27:02 +0200 Subject: consolidate --- app/client/audio/lib/draw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/client/audio/lib/draw.js') 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 -- cgit v1.2.3-70-g09d2