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.

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

Control points 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:

# LinFIR target curve
# Frequency (Hz)	Gain (dB)
20.00	0.00
200.00	-2.50
1000.00	-4.00
20000.00	-8.00

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

Import (📂)

  1. Click 📂 Import
  2. Select a .txt file in the file picker
  3. LinFIR parses the file and replaces the current control points
  4. The target curve preview updates immediately

If the file contains fewer than 2 valid points the import is silently ignored — the current points are preserved.

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

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)

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

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)


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


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. Measure on-axis response and apply correction
  3. 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
  • 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
  • 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. Import an existing curve from a text file, or export the current curve for reuse
  5. Preview interpolated curve in real-time
  6. Apply correction and measure results
  7. 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.