shithub: leaf

Download patch

ref: 8a0dfaf68311f16171763c606c1a65f6d47cfbbd
parent: 9dffd7c97f0263f5207db0a08dd4ab2d6af5b21d
author: Jeff Snyder <jeff@snyderphonics.com>
date: Wed Dec 19 17:15:50 EST 2018

Revert "more fixes"

This reverts commit 0a94befb8e1a04a9ebda2d1b1960d3c4ed50e1f0.

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