From 25fec83f6f7db468721a38adb2c84a0c0a2121f1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 6 Mar 2018 13:28:12 +0100 Subject: displaying waveform and spectrogram --- client/lib/output.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 client/lib/output.js (limited to 'client/lib/output.js') diff --git a/client/lib/output.js b/client/lib/output.js new file mode 100644 index 0000000..53901b3 --- /dev/null +++ b/client/lib/output.js @@ -0,0 +1,8 @@ +import Tone from 'tone' + +// const compressor = new Tone.Compressor(-30, 3).toMaster() + +const compressor = new Tone.Compressor(-30, 3).toMaster() +const gain = new Tone.Gain(1).connect(compressor) + +export default gain -- cgit v1.2.3-70-g09d2