DEM AudioLinFIR Documentation
LinFIR

Target Curves


On this page

Target curves define the desired frequency response for FIR correction and Auto EQ optimization. LinFIR provides built-in curves (Flat, Harman) and supports fully customizable user-defined curves. A curve is drawn by its control points, and filters can be added to it: a high-pass or a low-pass that follows a driver's natural roll-off, peaks and shelves (see Filters).

Target Curve Configuration Target Curve Configuration

Target curves are used by:

  • FIR Correction filters (per-driver and global)
  • Auto EQ (per-driver and global IIR optimization)

Each filter type has its own independent target curve configuration.


Accessing Target Curve Configuration

Target curve windows are accessed from configuration buttons in the corresponding filter windows:

Per-Driver:

  • FIR Correction: Driver → FIR Correction → Magnitude Correction section → Configure button
  • Auto EQ: Driver → IIR Filters → Auto EQ tab → Target Curve section → Configure button

Global:

  • Global FIR Correction: Global FIR → Magnitude Correction section → Configure button
  • Global Auto EQ: Global IIR → Auto EQ tab → Target Curve section → Configure button

Built-in Target Curves


Import / Export

A target, its control points and its filters, can be saved to and loaded from plain-text files using the 📂 Import and 💾 Export buttons, located just below the Initialize from buttons in the toolbar.

File Format

A simple two-column text file, then the filters, if any, on lines of their own:

# LinFIR target curve
# Frequency (Hz)	Gain (dB)
20.00	0.00
200.00	-2.50
1000.00	-4.00
20000.00	-8.00
# Filters added to the curve of the points
#filter type=butterworth pass=high freq=45 order=2
#filter type=peak freq=2500 gain=-2.5 q=1.4

Rules:

  • One point per line: frequency<sep>gain
  • Separator: tab, space or comma (mixed is fine)
  • Lines starting with # are ignored (comments)
  • Empty lines are ignored
  • Decimal separator: . (a , is also accepted and converted automatically)
  • Frequency must be strictly positive; gain can be any finite value
  • At least 2 valid points are required for a successful import
  • On import, points are sorted by ascending frequency automatically
  • A filter takes a line starting with #filter, then key=value words: its type (butterworth, linkwitz-riley, bessel, peak, low-shelf, high-shelf, asym-low-shelf or asym-high-shelf), then what that type uses: pass (high or low), freq and order for a high- or low-pass; freq, gain and q for a peak or a shelf; freq, q, freq2 and q2 for an asymmetric shelf. enabled=no marks a filter switched off
  • The filters' lines start with #: another program, or an older version of LinFIR, reads the points and skips them

Import (📂)

  1. Click 📂 Import
  2. Select a .txt file in the file picker
  3. LinFIR parses the file and replaces the current control points, and the filters too when the file has #filter lines: a file of points alone, such as a house curve from another program, keeps the target's filters. A file of filters alone gets the two points of the flat curve
  4. The target curve preview updates immediately

If the file contains fewer than 2 valid points (and not filters alone), a message says so and the current target is kept.

Export (💾)

  1. Click 💾 Export
  2. Choose a destination and file name (.txt extension is added automatically if omitted)
  3. The file is written with a commented header and tab-separated columns, then the filters on #filter lines

Exported files can be shared between different target curve windows or projects, and edited with any text editor or spreadsheet application.


Flat Curve

Description: 0 dB gain across all frequencies (20 Hz to 20 kHz)

Use Cases:

  • Anechoic measurements requiring no psychoacoustic compensation
  • Verification/troubleshooting (no tonal bias)
  • Starting point for custom curves

Initialization:

  • Click Flat button
  • Creates 2 control points: (20 Hz, 0 dB) and (20 kHz, 0 dB); the filters are kept

Harman Target Curve

Description: Psychoacoustically optimized frequency response based on Harman research

Curve Shape:

  • +6 dB at 20 Hz: Enhanced deep bass presence
  • +5 dB at 50 Hz: Bass warmth
  • 0 dB at 200 Hz: Neutral lower midrange
  • -0.5 dB at 1 kHz: Slight midrange dip (reference frequency)
  • -5 dB at 20 kHz: Treble roll-off (reduces harshness)

Use Cases:

  • In-room listening: Compensates for typical room gain and psychoacoustic preferences
  • Room calibration: Starting point for subjective tuning

Initialization:

  • Click Harman button
  • Creates 5 control points with Harman curve shape; the filters are kept

Customization:

  • Adjust bass tilt by modifying low-frequency points
  • Adjust treble slope by changing high-frequency points
  • Add intermediate points for detailed shaping

💡 FIR correction uses the curve's shape, not its level: the correction references both the response and the target to their own average level within the configured frequency range, so the Harman curve's absolute values (+6 dB, -5 dB…) only matter relative to each other. At 100% Strength the response follows the full curve - bass tilt and treble roll-off included - whatever its amplitude; no other parameter needs sizing to it.


Custom Target Curves

Create fully custom target curves with unlimited control points.

Control Points

Each control point defines a (frequency, gain) pair:

Frequency:

  • Range: 1 Hz to 21,000 Hz
  • Log-scale distribution recommended (e.g., 20, 50, 100, 200, 500, 1k, 2k, 5k, 10k, 20k Hz)

Gain:

  • Range: -20 dB to +20 dB
  • Positive values = boost, negative = cut

Minimum Points: 2 (required for interpolation)

The list keeps the points in increasing frequency. Hovering a row rings its point on the graph, and hovering a point on the graph highlights its row.


Editing Points on the Graph

  • Move: drag a point. It follows the pointer in frequency and gain (rounded to 1 Hz and 0.1 dB); the graph stays put during the drag.
  • Add: click on the curve, away from the points. The new point lands on the curve, so the curve doesn't change until you drag it.
  • Remove: right-click a point (not below 2 points).
  • Zoom and pan: scroll to zoom, drag the graph away from the points to pan, double-click to show the whole curve again.

While a point is being dragged, the curve follows at once; the filters are redesigned when the drag pauses or ends.


Editing Points in the List

  • Drag or type the frequency and gain of a point.
  • + Add Point adds a point in the widest gap between two points (on a log frequency scale), on the curve.
  • ❌ removes a point (not below 2 points).

Curve Interpolation

LinFIR automatically interpolates between control points to create a smooth curve:

Interpolation Process:

  1. Generate 5,000 log-spaced frequencies across the full range
  2. Log interpolation between user control points onto these 5,000 frequencies
  3. Linear interpolation from 5,000 points to target frequencies (filter FFT bins)

Result: Smooth, natural curve without artifacts even with few control points

Preview: Real-time graph shows interpolated curve (blue line) and control points (red dots)


Filters

The Filters card, under the control points, adds filters to the curve of the points: their response, as the IIR filters compute it at the project's sample rate, is added to that curve. They are the IIR window's filters, all-passes aside since those leave the level as it is: Butterworth, Linkwitz-Riley and Bessel high- and low-passes of the order chosen, PEQs, shelves and asymmetric shelves.

+ Add Filter, at the bottom of the card as + Add Point is at the bottom of its own, adds a Butterworth high-pass of order 2 at 40 Hz first, then a low-pass of order 2 at 20 kHz (or just below Nyquist), then a PEQ. Each filter takes two lines: its toggle, its type and, for a high- or low-pass, its side, with ❌ to remove it; then its frequency and what its type uses (an asymmetric shelf's second frequency and Q on a third line). Both cards grow with their lists, and the column scrolls when they no longer fit in the window.

With filters, the graph draws two curves: the target, and the curve of the points alone, lighter. The points lie on the lighter one: drag them there, and click on it to add one.

Following a driver's roll-off

A driver stops playing below its passband, and above it. With a flat target, the correction and the Auto EQ read that roll-off as a dip to fill, down to the start of their frequency range. A high-pass in the target, set on the roll-off, makes them keep it and correct only the deviations from it, such as the bump of a sealed box whose Q is high or a ripple near the knee. The range can then start low without boosting where the driver no longer plays.

  • Sealed box: a Butterworth high-pass of order 2 at its -3 dB frequency.
  • Vented box: a Butterworth high-pass of order 4 at its -3 dB frequency.
  • Tweeter: a low-pass where its treble falls off.

Set it by eye: while the target window is in front, the frequency graph shows the target the response is brought to, in green for a correction and in blue for the Auto EQ, so bring its roll-off onto the measured one. A high-pass set lower than the natural roll-off is a Linkwitz transform: the response is extended to it, and the overlay shows the boost it asks for.

On the side of a driver that a FIR crossover filter handles, a filter of the target adds to the crossover's slope: there, let the correction run a little past the crossover and the crossover filter set the slope (see Frequency Range). With IIR crossover filters calculated before the correction (Calculation Order), a pass in the target equal to the acoustic slope wanted makes the correction complete that slope instead of flattening it.

Crossovers with the Auto EQ

A high- or low-pass placed inside the driver's passband is a crossover: the driver plays on where the target falls, and no peak or shelf can make that slope. Auto EQ then puts the pass itself in its IIR filters, as the target has it, and fits its peaks and shelves around it, for instance to make up for the driver's own roll-off near the crossover. A pass the driver already follows stays out. See The target's high- and low-passes.

A crossover in a correction's target

In a FIR correction's target, a high- or low-pass set inside the driver's passband is a crossover. The correction brings the driver to the rest of the target, and the pass applies over the whole spectrum, outside the correction's frequency range as well as within it, and in full whatever the Strength. The level is taken where the passes pass (above -3 dB), so their stopbands, which go down to -120 dB, never lift the rest of the response. How deep the stopband actually goes depends on the FIR's length and its window. The frequency graphs treat it like the other crossovers: the phase and the group delay are cut where the driver no longer plays.

Target filters and locked IIR filters

A target's filters only change what the correction or the Auto EQ aims at. They are not in the driver's chain, and nothing is played through them. An IIR filter is in the chain: the driver plays through it, and its settings decide what the correction sees.

  • Locking an IIR filter (🔒) only keeps it when the filters are cleared or generated again.
  • 🎯 Applied / ➖ Ignored decide whether the Auto EQ designs its filters on the response through a locked filter or without it, and the Calculation Order decides the same for the FIR corrections, for all the IIR filters at once.

To keep a roll-off, put it in the target. An IIR high-pass taken into account (🎯, or the IIR filters before the correction) makes the response fall further, and the correction tries to fill that as well; ignored (➖, or the correction before the IIR filters), it leaves the natural roll-off, which a flat target asks to fill all the same. The two work together: a protective IIR high-pass (a subsonic filter), locked, in the driver's chain, and a high-pass in the target for the roll-off the speaker should keep.


Phase targets

By default, a phase correction brings its driver's phase to 0°: linear phase. A phase target gives it another phase to reach instead, a rotation chosen on purpose and the same for every driver that plays with the others.

Phase Target Configuration Phase Target Configuration

The system's and a correction's own

The system has one phase target, which every phase correction follows, the drivers' and the global one, unless it is decoupled. It is flat by default, and then each correction brings its driver to linear phase, as without a target. In the Phase card of a correction window, Target (Phase) says which target it follows: The system's, or Its own, which decouples it from the others (an active cardioid's drivers, whose phases must differ, for instance). Configure opens the target it follows.

Shaping a phase target

The phase target window is the target curve window in degrees: control points, and filters whose phases add to the curve of the points. The filters are the passes (Butterworth, Linkwitz-Riley and Bessel, of the order chosen) and the all-passes (first and second order).

Every filter's phase ends at 0° at the top of the band and turns below its frequency, so the treble, where the impulse's peak takes its shape, always keeps its 0°. That is why a pass has no side here: its low- and high-pass forms differ only by a constant (90° per order), and the low-pass form would leave that constant on the whole band above it, the corrected impulse made odd (a quarter turn at order 1) or inverted. A pass therefore takes its high-pass form, from +90° per order at 0 Hz down to 0°, and an all-pass is raised by its whole turn, from +180° (first order) or +360° (second order) at 0 Hz down to 0°.

  • A crossover: a Linkwitz-Riley at its frequency gives the phase its two drivers sum to. An LR4 starts at +360° at 0 Hz, a whole turn, which to the correction is no turn at all. An LR2 (or LR6) starts at +180°: the driver below it then plays inverted, as behind an LR2 crossover. An odd order leaves a quarter turn on the driver below: keep those out of a crossover.
  • Several crossovers: a filter each. Their phases add, as the crossovers' do.
  • All-passes: a rotation of their own, to keep or to add.

With linear-phase FIR crossover filters (Causality 0) making the slopes, every driver that follows the same phase target has that phase where it plays, so they sum flat with that phase, and as much of the crossovers' rotation is kept as you chose. A Linkwitz-Riley of lower order in the target turns less: more correction, which needs more taps.

What the correction does with it

The correction cancels the driver's measured phase as it always has (its delay, its polarity), then adds the target's. The target is never fitted to the measurement: 0° stays "no rotation", a whole turn added to the target changes nothing, and where the driver plays the corrected phase is the target's. Outside the phase correction's frequency range, and where the driver is more than 20 dB down, the correction holds what it does at the edges, and doesn't follow the target's turns there.

The measured phases beside it

Beside the target, the window draws the phase of each driver that follows it, as its correction sees it (its phase correction on): its delay and mean taken out, at the whole turn nearest the target. The gap between the two is what the correction will close. Choose the target so that the gap stays small where the driver plays: the phase correction then needs fewer taps.

Out of reach

A FIR delays or advances a frequency by half its length at most, from its centre: ±15.6 ms for 1500 taps at 48 kHz. A phase that turns fast asks a long group delay: a second-order all-pass asks 4Q/ω₀ at its frequency, 42 ms for Q 3.16 at 48 Hz. Where the gap between the target and a driver's phase turns faster than its phase FIR can follow, the correction misses the target, there and around it, since a FIR cut short spreads its error over its frequency resolution. In practice it misses before the delay reaches its half length: its window fades its ends.

The window shades, in the driver's colour, the bands where its phase FIR misses the target by more than 15° (two drivers that far apart at their crossover still sum within 0.1 dB). Hover a band to read by how much, the group delay the correction asks around it, and how far its phase FIR reaches. A band does not depend on the whole turn the driver's phase is drawn at: it is what the FIR gives, against what the target asks.

To bring a band within reach:

  • a target closer to the driver's phase there: a lower Q, a lower order, a crossover where the driver turns anyway;
  • a longer phase correction (Taps (Phase), at most the FIR's length);
  • a Kaiser β (Phase) closer to 0, whose window fades the FIR's ends less.

The bands are worked out from the start frequency set, before the phase guard raises it: they say what the target asks of the FIR, whatever the guard keeps of it.

Import and export

As for target curves: the points (Hz, degrees), then the filters on #filter lines.


Target Curve Preview Graph

The right panel shows a real-time preview of the target curve.

Elements:

  • Blue line: Final interpolated target curve (used by correction algorithms)
  • Red dots: User-defined control points

Axes:

  • X-axis: Frequency (Hz, logarithmic scale)
  • Y-axis: Gain (dB, linear scale)

Auto-scaling: Y-axis automatically adjusts to fit data range, 60 dB deep at most: a steep pass is cut there rather than followed down to -120 dB.


Workflow Recommendations

Creating a Custom Curve from Scratch

  1. Click Flat to start with a neutral baseline
  2. Add control points at key frequencies:
    • 20 Hz: Deep bass level
    • 50-100 Hz: Bass warmth
    • 200-500 Hz: Lower midrange body
    • 1 kHz: Reference point (usually 0 dB or slightly negative)
    • 2-5 kHz: Presence region
    • 10 kHz: Air/sparkle
    • 20 kHz: Extreme treble roll-off
  3. Adjust gains to shape desired response
  4. Preview in graph and test with measurements

Modifying Harman Curve

  1. Click Harman to load default curve
  2. Adjust existing points:
    • Reduce 20-50 Hz gains for less bass
    • Increase 20 kHz gain for more treble extension
    • Add points at 2-5 kHz for presence adjustment
  3. Use as starting point for room-specific tuning

Room Calibration Workflow

  1. Measure in-room response without any FIR or IIR EQ
  2. Start with Harman curve (accounts for typical room gain)
  3. Apply correction and re-measure
  4. Fine-tune target curve:
    • Reduce bass points if room has excessive low-frequency gain
    • Adjust treble roll-off based on room absorption
    • Add notches at problematic room modes (if using Auto EQ)
  5. Iterate until subjectively satisfying

Loudspeaker Design Workflow

  1. Use Flat curve for anechoic FIR correction (individual drivers)
  2. At the system's ends, add a high-pass filter on the woofer's natural roll-off and a low-pass on the tweeter's (see Filters)
  3. Measure on-axis response and apply correction
  4. Verify off-axis response maintains reasonable shape

Best Practices

Control Point Placement

  • Use logarithmic spacing: Match human auditory perception (e.g., 20, 50, 100, 200, 500 Hz...)
  • Avoid excessive points: 5-10 points typically sufficient for smooth curves
  • Anchor bass and treble: Always define endpoints (20 Hz, 20 kHz)
  • Reference at 1 kHz: Many conventions use 1 kHz as 0 dB reference

Curve Shape Considerations

  • Avoid steep transitions: Can cause ringing in FIR filters and excessive Q in Auto EQ
  • Match measurement reliability: Don't define detailed curve below measurement noise floor
  • Account for driver capabilities: Don't demand excessive bass from small drivers; a high-pass filter of the target follows their roll-off (see Filters)
  • Psychoacoustic balance: Consider Fletcher-Munson curves at typical listening levels

FIR Correction: Curve Amplitude and Headroom

FIR correction references the response and the target to their own average level within the configured frequency range: only the curve's shape counts, its absolute level is normalized away. Correction is symmetric - parts of the curve above that average are boosted, parts below are cut - and Strength sets how far the response goes toward the target (100% = full curve within f_min to f_max).

What to watch with large-amplitude curves:

  • Boost and headroom: a strong bass tilt (e.g., Harman's +6 dB at 20 Hz) is applied as boost relative to the average level. Check the filter's local gain in the FIR display mode (press F) and lower Strength or Correction Gain if it gets excessive.
  • Low-frequency resolution: bass shaping needs enough taps (Filter Length); with too few, the low end falls short of the target even at 100% Strength.
  • Frequency range: limiting the range (e.g., 200 Hz - 20 kHz) leaves everything outside it uncorrected, so only the part of the curve inside the range is applied.

Legacy tuning: with Use legacy FIR correction tuning enabled (Settings → General → Filter Processing), the old Max. Attenuation model applies and still only cuts: set Max. Attenuation ≥ the curve's amplitude (max - min) within f_min to f_max, e.g., ≥ 11 dB for the full Harman curve, otherwise part of the curve (typically the treble roll-off) is not applied.

💡 Tip: Auto EQ uses IIR filters: Strength, Filter Length and Max. Attenuation do not apply to it.

Testing and Validation

  1. Preview before applying: Check interpolated curve makes sense
  2. Apply to measurement: Use with FIR correction or Auto EQ
  3. Measure result: Verify corrected response matches target
  4. Iterate: Refine target based on measurements and listening tests

Limits

How the curve is drawn between your points: see Target Curve Interpolation.

Frequency Range

  • Minimum: 1 Hz (typically clamp to 20 Hz in practice)
  • Maximum: 21,000 Hz (or Nyquist frequency, whichever is lower)
  • Interpolation: Extends user points across full range

Gain Limits

  • Range: -20 dB to +20 dB per control point
  • No hard limit on curve: Interpolation can produce values outside this range between points
  • Practical limit: Avoid extreme gains to prevent filter artifacts

Common Use Cases

Studio Monitoring

Target: Custom curve with gentle tilt (or modified Harman)

  • Modern practice uses in-room curves rather than flat anechoic response
  • Gentle treble roll-off (-1 to -3 dB at 20 kHz) reduces listening fatigue
  • Slight bass lift (+1 to +3 dB below 100 Hz) compensates for room interaction
  • Purely flat curves are rarely used in practice—can sound harsh and fatiguing
  • Start with Harman and adjust to taste for extended listening sessions

Home Theater

Target: Harman curve (or modified)

  • Preferred tonal balance for movies and music
  • Accounts for room gain
  • Adjust bass/treble tilt to taste

Hi-Fi Listening

Target: Custom curve based on Harman

  • Start with Harman, adjust to preference
  • Reduce bass if room is overly boomy
  • Adjust treble based on speaker and room brightness

Car Audio

Target: Custom curve (elevated bass and treble)

  • Compensate for road noise (boost bass and treble)
  • Account for small cabin gain
  • Highly subjective—tune by ear

Headphone Compensation

Target: Diffuse-field or Harman headphone curve

  • Compensate for headphone frequency response
  • Simulate speaker-like tonality


Summary

Target curves define the desired frequency response for correction algorithms:

  • Built-in curves: Flat (0 dB) and Harman (psychoacoustic optimized)
  • Custom curves: Unlimited control points with automatic interpolation
  • Filters: high- and low-passes, PEQs and shelves added to the curve of the points, to follow a driver's roll-off instead of filling it
  • Independent configuration: Each FIR correction and Auto EQ has its own target
  • Real-time preview: Interactive graph shows interpolated curve

Workflow:

  1. Open target curve window from filter configuration (Configure button)
  2. Initialize from Flat or Harman, or create custom
  3. Add/edit control points (frequency, gain)
  4. Add filters: a high-pass or a low-pass on a driver's natural roll-off
  5. Import an existing curve from a text file, or export the current curve for reuse
  6. Preview interpolated curve in real-time
  7. Apply correction and measure results
  8. Iterate based on measurements and listening tests

Use target curves to shape your system's tonal balance, compensate for room effects, and achieve your desired sound signature.