Created
August 27, 2014 06:17
-
-
Save campaul/e5d03ef766e6e3024a6a to your computer and use it in GitHub Desktop.
Calculate the Pivot Frequency of a Tilt Equalizer
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
from math import pi, sqrt | |
# Part labels based on the schematic from | |
# http://www.edn.com/design/analog/4368935/Implement-an-audio-frequency-tilt-equalizer-filter | |
RF = float(input('RF: ')) | |
P1 = float(input('P1: ')) | |
C = float(input('C: ')) | |
R = float(input('R: ')) | |
pivot = sqrt(P1 + 2 * RF) / (2 * pi * C * sqrt(RF - R) * sqrt(P1 * (R + RF) + 2 * R * RF)) | |
print('Pivot Frequency: %s Hz' % int(pivot)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment