Skip to content

Instantly share code, notes, and snippets.

@campaul
Created August 27, 2014 06:17
Show Gist options
  • Save campaul/e5d03ef766e6e3024a6a to your computer and use it in GitHub Desktop.
Save campaul/e5d03ef766e6e3024a6a to your computer and use it in GitHub Desktop.
Calculate the Pivot Frequency of a Tilt Equalizer
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