WebAssembly Music 0.0.38 is out, providing some mastering tools such as a Multi-Band compressor and Stereo enhancer ( Mid-Side processor ). See a demo video here: https://youtu.be/7WQd4_v6xYU To instantiate a multi-band compressor you write this line of AssemblyScript directly in the browser editor: `const compressor = new TriBandStereoCompressor(0.2, 25,150,1500,20000);` where the parameters are the buffer size in seconds, followed by the frequency bands. The buffer size decides both attack and initial release, but you can adjust the release for each band and channel individually by calling the `setReleaseSampleCount` method of the compressor of the channel/band: ``` compressor.compressorLow.leftCompressor.setRelaseSampleCount((0.2 * SAMPLERATE) as usize); compressor.compressorLow.rightCompressor.setRelaseSampleCount((0.2 * SAMPLERATE) as usize); ``` in the audio processing callback you also set the actual thresholds of the compressor like this: ``` compressor.process(left, right, 0.8, 0.7, 1.0, 1.0, 1.0, 1.0); left = compressor.stereosignal.left; right = compressor.stereosignal.right; ``` The Mid-side processor is just amplifying the difference between the left and right channel.. You initialize it like this: `const midsideprocessor = new MidSideProcessor(1.7);`` and in the audio processing callback: ``` midsideprocessor.process(left,right); left = midsideprocessor.signal.left; right = midsideprocessor.signal.right; ``` You can check out the full sourcecode of the music titled "Much" by following the link below. The middle source editor contains the AssemblyScript for the synth: https://petersalomonsen.com/webassemblymusic/livecodev2/0.0.38/?pngurl=https://ipfs.web4.near.page/ipfs/bafkreib5ldkwp3fa4gftkhmusszcw4hko3s6y4bgim7puoobohfuwbdmtm?filename=much.png