Created
December 15, 2013 15:27
-
-
Save grejppi/7974304 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOWPASS: | |
cutoff = 2.1 + (4000.0 * wub * wub) | |
resonance = 0.3 * wub | |
HIGHPASS: | |
cutoff = 0.1 + 2000.0 - (1000.0 * wub) | |
resonance = 0.5 * wub * wub | |
where wub is one of these: | |
wub = fabs(cos(tick / (length / 8))) | |
wub = (tick + (beat * (length / 4))) / length | |
wub = 1.0 - (tick + (beat * (length / 4))) / length | |
wub = fabs(sin(tick / (length/16))) | |
wub = 1.0 | |
(updated on every sample) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment