shithub: leaf

Download patch

ref: 0a94befb8e1a04a9ebda2d1b1960d3c4ed50e1f0
parent: 90488e6e75171c337eb6b0511f5b1efa24889fe8
author: Jeff Snyder <jeff@snyderphonics.com>
date: Tue Dec 18 19:55:34 EST 2018

more fixes

--- a/LEAF/Src/leaf-808.c
+++ b/LEAF/Src/leaf-808.c
@@ -135,9 +135,10 @@
     sample = tSVF_tick(&hihat->bandpassOsc, sample);
     
     float myGain = tEnvelope_tick(&hihat->envGain);
-    sample *= myGain*myGain;//square the output
+    sample *= (myGain*myGain);//square the output gain envelope
     sample = tHighpass_tick(&hihat->highpass, sample);
     sample += ((0.5f * tEnvelope_tick(&hihat->envStick)) * tSVF_tick(&hihat->bandpassStick, tNoise_tick(&hihat->stick)));
+
     return sample;
 }