Bass and Treble Amplifier Controls
Copy this iframe to your website:
1 | |
Description
This MicroSim draws the frequency response of a classic amplifier tone control: how much the amplifier boosts or cuts a sine wave at each frequency. The horizontal axis is frequency from 20 Hz to 20 kHz on a logarithmic scale, and the vertical axis is gain in decibels (dB) from -15 dB to +15 dB. It draws a curve only; no sound is played.
The Bass slider sets how much the frequencies below a 500 Hz corner are boosted or cut, and the Treble slider does the same above a 2 kHz corner. Both sliders run from 0 to 100 and start at 50, which is flat (0 dB). The dB value printed next to each slider is the full boost or cut that slider requests, from -12 dB to +12 dB. Move the mouse over the plot to move the gold marker and read the gain at any frequency. The marker keeps its last position when the mouse leaves the plot. The dotted lines mark the two corner frequencies.
The same idea appears in every graphic equalizer and every "bass" and "treble" knob. This simulation supports the equalization material in Chapter 15: Signal Processing Applications and AI Integration and the decibel filter specifications in Chapter 9: Filter Design Fundamentals.
What Are Bass and Treble?
Bass is the low-frequency part of a sound (here, roughly 20 Hz to 500 Hz): the thump of a kick drum or the lowest notes of a bass guitar. Treble is the high-frequency part (here, roughly 2 kHz to 20 kHz): the shimmer of cymbals or the crispness of a voice. Turning a knob tells the amplifier to boost or cut one end of the spectrum while leaving the middle nearly unchanged.
Mathematical Model
Let \(b\) and \(t\) be the bass and treble slider values (0 to 100). The plotted gain is the sum of a low shelf and a high shelf:
Each fraction goes smoothly from 1 on one side of its corner to 0 on the other side, and equals exactly \(1/2\) at the corner. So a shelf reaches half of its full gain at 500 Hz (bass) or 2 kHz (treble). The shelf shape has the same form as the squared magnitude of a second-order Butterworth filter, but it is applied to the gain in dB. The model is a smooth, illustrative approximation of a tone-control circuit, not a circuit simulation, and it shows magnitude only (there is no phase plot).
The Logarithmic Frequency Axis
Equal distances on the axis are equal frequency ratios. From 100 Hz to 200 Hz is one octave, the same width as 1 kHz to 2 kHz. The corners at 500 Hz and 2 kHz are \(\log_2(2000/500) = 2\) octaves apart, and the whole audible range, 20 Hz to 20 kHz, is a 1000:1 ratio of about 10 octaves. A linear axis would squeeze every bass note into the left-hand sliver of the plot.
Decibels
Gain in decibels is \(G_\text{dB} = 20\log_{10}(A_\text{out}/A_\text{in})\) for amplitudes.
| Gain | Amplitude factor | Power factor |
|---|---|---|
| +12 dB | 3.98 (about 4) | 15.8 |
| +6 dB | 2.00 | 3.98 |
| 0 dB | 1 (unchanged) | 1 |
| -6 dB | 0.50 | 0.25 |
| -12 dB | 0.25 | 0.063 |
Because the scale is logarithmic, equal slider steps add equal dB, and equal dB steps multiply the amplitude by equal factors. As a rule of thumb the ear needs about +10 dB for a sound to seem twice as loud.
Lesson Plan
Learning Objectives
After using this MicroSim, students will be able to:
- Predict the boost or cut in dB at the low and high ends of the response from the Bass and Treble slider positions, using \(12(\text{slider}-50)/50\) dB.
- Interpret a logarithmic frequency axis by counting octaves between two frequencies on the plot.
- Convert a gain in dB read from the plot into an amplitude ratio, for example +12 dB to about 4 times and -12 dB to about 0.25 times.
- Explain why the gain at a shelf corner is half of the full shelf gain.
- Analyze how the two shelves overlap near 1 kHz, so that the bass control also changes the middle of the spectrum.
Target Audience
Undergraduate students in an introductory signal processing or audio engineering course. Plan 15 to 20 minutes.
Prerequisites
- Frequency in hertz and the idea of a frequency spectrum
- Logarithms and powers of ten
- A first look at the decibel scale
Activities
Activity 1: Flat reference (3 min). Set Bass = 50 and Treble = 50. The curve lies on the 0 dB line. Move the mouse across the plot: the read-out shows 0.0 dB at every frequency, so every tone passes unchanged.
Activity 2: Find the shelf (5 min). Set Bass = 100 and Treble = 50. The slider label reads +12.0 dB.
- Read the gain at 100 Hz: about +12.0 dB, the full shelf.
- Read the gain at the 500 Hz corner: about +6.0 dB, half of the full shelf.
- Read the gain at 1 kHz: about +0.7 dB, and at 2 kHz: about 0.0 dB.
Activity 3: Smile and frown (5 min). Set Bass = 100 and Treble = 100. The curve is a "smile": +12 dB at both ends. Read the gain at 1 kHz: it is +1.4 dB, not 0 dB, because each shelf still adds a little there. Now set both sliders to 0. The curve is a "frown" with -12 dB at both ends and -1.4 dB at 1 kHz.
Activity 4: A tilt through 1 kHz (5 min). Set Bass = 75 and Treble = 25. The labels read +6.0 dB and -6.0 dB. The curve falls from +6 dB at low frequencies to -6 dB at high frequencies and crosses 0 dB at exactly 1 kHz. Try Bass = 60 and Treble = 40: the crossing stays at 1 kHz. Whenever the two slider values add up to 100 the crossing is at 1 kHz, because 1 kHz is one octave above 500 Hz and one octave below 2 kHz.
Assessment
- With Bass = 50 and Treble = 50, what is the gain at 3 kHz? (Answer: 0 dB. The response is flat, so every frequency passes unchanged.)
- With Bass = 100 and Treble = 50, by what factor is the amplitude of a 100 Hz tone multiplied? (Answer: the gain at 100 Hz is about +12.0 dB, and \(10^{12/20} \approx 4\), so the amplitude is about four times larger.)
- With Bass = 100 and Treble = 50, why is the gain at 500 Hz about +6 dB and not +12 dB? (Answer: 500 Hz is the shelf corner, where the shelf factor is \(1/(1+1) = 1/2\), so the gain is half of 12 dB.)
- With Bass = 50 and Treble = 0, what is the gain at 10 kHz, and what amplitude factor is that? (Answer: about -12 dB, which is a factor of about 0.25, so the tone is a quarter of its original amplitude.)
- With Bass = 75 and Treble = 25, at what frequency does the curve cross 0 dB, and why? (Answer: 1 kHz. There the bass boost and the treble cut are both 1/17 of their full values, so they are equal and opposite.)
Common Misconceptions
"+6 dB makes the sound twice as loud." A change of 6 dB doubles the amplitude (a factor of 2.00), and it quadruples the power. Sound seems twice as loud after about +10 dB. Compare Bass = 75 (+6 dB, amplitude times 2) with Bass = 100 (+12 dB, amplitude times 4): each additional 6 dB doubles the amplitude again.
"The bass control only changes the bass." The shelves are smooth, so they overlap. Set Bass = 100 and Treble = 100 and probe 1 kHz: the gain is +1.4 dB even though 1 kHz is far from both corners. Real tone controls interact in the same way, which is why equalizer settings are judged by the whole curve.
Real-World Applications
- Audio engineering: mixing and mastering use shelving equalization to shape the tonal balance of a recording.
- Telecommunications: a telephone line passes roughly 300 Hz to 3.4 kHz and cuts the rest to save bandwidth.
- Hearing aids: they boost the frequencies where the wearer's hearing is weakest.
- Room acoustics: equalization compensates for room resonances and loudspeaker response.
References
- Equalization (audio) - Wikipedia - shelving and peaking filters and how equalizers shape the spectrum
- Tone control circuit - Wikipedia - the bass and treble circuits that this curve approximates
- Decibel - Wikipedia - definition of the dB for amplitude and power ratios
- Frequency response - Wikipedia - gain versus frequency for a linear system
- Octave (electronics) - Wikipedia - frequency ratios and the logarithmic axis
- The Scientist and Engineer's Guide to Digital Signal Processing - Steven W. Smith - free online textbook with chapters on filters and frequency response
Development Notes
The original sketch was generated from the prompt below. The directory name base-and-treble is a historical
spelling and is kept so that existing links keep working.
Prompt history
Use the microsim generator skill to create simulation of the frequency response of an old classic amplifier with base and treble knobs.
- The title is "Frequency Response"
- Instead of knobs, use two sliders at the bottom of the canvas, one for base and one for treble.
- The sliders should start out in the middle (default).
- The vertical axis has a label of "Gain (dB)" (-15dB to +15dB).
- The horizontal axis has the label of "Frequency Hz - Logarithmic Scale" (20 to 20K)