# Likenry

> Match EQ: applies a stored third-octave correction curve (from tools/match_eq.py, which compares a reference and a source recording) with linear phase, so one mix can take on another's tonal balance. Apply amount scales the whole curve.

- Engine id: `org.sournd.eq.likenry`
- Category: EQ
- Licence: paid: £2.99 an effect or £4.99 a synth, once (owned for good, with updates), or included in the Everything plan (£14.99 a month)
- Version: 1.0.0
- Latency: 2303 samples
- Tail: 0.2 s
- Sidechain input: no
- Channels: mono or stereo
- Audio demo: https://sournd.com/static/preview/demos/likenry.mp3 (a drum loop, default settings)

## Parameters

The id is the C ABI parameter id and the JUCE parameter id (as a decimal string).

| Id | Key | Name | Min | Max | Default | Unit | Taper |
|---|---|---|---|---|---|---|---|
| 0 | `curve_1` | 20 Hz | -24 | 24 | 0 | dB | linear |
| 1 | `curve_2` | 25 Hz | -24 | 24 | 0 | dB | linear |
| 2 | `curve_3` | 31.5 Hz | -24 | 24 | 0 | dB | linear |
| 3 | `curve_4` | 40 Hz | -24 | 24 | 0 | dB | linear |
| 4 | `curve_5` | 50 Hz | -24 | 24 | 0 | dB | linear |
| 5 | `curve_6` | 63 Hz | -24 | 24 | 0 | dB | linear |
| 6 | `curve_7` | 80 Hz | -24 | 24 | 0 | dB | linear |
| 7 | `curve_8` | 100 Hz | -24 | 24 | 0 | dB | linear |
| 8 | `curve_9` | 125 Hz | -24 | 24 | 0 | dB | linear |
| 9 | `curve_10` | 160 Hz | -24 | 24 | 0 | dB | linear |
| 10 | `curve_11` | 200 Hz | -24 | 24 | 0 | dB | linear |
| 11 | `curve_12` | 250 Hz | -24 | 24 | 0 | dB | linear |
| 12 | `curve_13` | 315 Hz | -24 | 24 | 0 | dB | linear |
| 13 | `curve_14` | 400 Hz | -24 | 24 | 0 | dB | linear |
| 14 | `curve_15` | 500 Hz | -24 | 24 | 0 | dB | linear |
| 15 | `curve_16` | 630 Hz | -24 | 24 | 0 | dB | linear |
| 16 | `curve_17` | 800 Hz | -24 | 24 | 0 | dB | linear |
| 17 | `curve_18` | 1 kHz | -24 | 24 | 0 | dB | linear |
| 18 | `curve_19` | 1.25 kHz | -24 | 24 | 0 | dB | linear |
| 19 | `curve_20` | 1.6 kHz | -24 | 24 | 0 | dB | linear |
| 20 | `curve_21` | 2 kHz | -24 | 24 | 0 | dB | linear |
| 21 | `curve_22` | 2.5 kHz | -24 | 24 | 0 | dB | linear |
| 22 | `curve_23` | 3.15 kHz | -24 | 24 | 0 | dB | linear |
| 23 | `curve_24` | 4 kHz | -24 | 24 | 0 | dB | linear |
| 24 | `curve_25` | 5 kHz | -24 | 24 | 0 | dB | linear |
| 25 | `curve_26` | 6.3 kHz | -24 | 24 | 0 | dB | linear |
| 26 | `curve_27` | 8 kHz | -24 | 24 | 0 | dB | linear |
| 27 | `curve_28` | 10 kHz | -24 | 24 | 0 | dB | linear |
| 28 | `curve_29` | 12.5 kHz | -24 | 24 | 0 | dB | linear |
| 29 | `curve_30` | 16 kHz | -24 | 24 | 0 | dB | linear |
| 30 | `curve_31` | 20 kHz | -24 | 24 | 0 | dB | linear |
| 31 | `amount_pct` | Apply amount | 0 | 100 | 100 | % | linear |

## Use it in JUCE

CMake ([quick start](/docs/juce/index.md)):

```cmake
juce_add_module(path/to/sournd_engine)
target_include_directories(MyPlugin PRIVATE path/to/include)
target_link_libraries(MyPlugin PRIVATE sournd_engine path/to/libsournd_cabi.a)
```

C++:

```cpp
#include <sournd_engine/sournd_engine.h>

sournd::SourndEngine engine { "org.sournd.eq.likenry" };
juce::AudioProcessorValueTreeState parameters { *this, nullptr, "Parameters",
    sournd::SourndEngineParameters::createLayout (engine) };
sournd::SourndEngineParameters bridge { engine, parameters };

// prepareToPlay
engine.prepare ({ sampleRate, (juce::uint32) maximumBlock, 2 });
bridge.prepare (sampleRate);
setLatencySamples ((int) engine.latency());

// processBlock
bridge.apply ((uint32_t) buffer.getNumSamples());
juce::dsp::AudioBlock<float> block { buffer };
engine.process (juce::dsp::ProcessContextReplacing<float> { block });

// get/setStateInformation: hold getCallbackLock() around saveState / loadState,
// so state work never overlaps processBlock (full example: /docs/juce/)
```

Plain C:

```c
sournd_engine *e = NULL;
if (sournd_engine_create("org.sournd.eq.likenry", &e) == SOURND_OK) {
    sournd_engine_prepare(e, 48000.0, 512);
    sournd_engine_set_param(e, 0, 0); /* 20 Hz */
    sournd_engine_process(e, in, out, 2, frames);
    sournd_engine_destroy(e);
}
```

## How it is made

Original sOURnd design blending general techniques: long-term third-octave spectrum comparison (in the companion tool), log-frequency interpolation of the correction, frequency-sampling FIR design and uniformly partitioned FFT convolution with a crossfaded background redesign.

## Ask your AI

Paste this into your coding assistant:

```text
Add the sournd engine org.sournd.eq.likenry to my JUCE plugin. Follow https://sournd.com/docs/juce/index.md
and the engine reference at https://sournd.com/engines/likenry/index.md. Expose every parameter through APVTS.
```

## Related engines

Other [EQ engines](https://sournd.com/engines/category/eq/index.md):

- [Lancetine](https://sournd.com/engines/lancetine/index.md): Free. Surgical parametric EQ: 24 dB/oct low and high cuts (off at their extremes), low and high shelves and three fully parametric bells.
- [Leanwise](https://sournd.com/engines/leanwise/index.md): Free. Broad musical tone EQ: a tilt around a movable pivot, wide weight and air shelves, and an optional gentle saturation for density.
- [Fournel](https://sournd.com/engines/fournel/index.md): Paid. Passive-style program EQ: boost and attenuate the lows at the same frequency for a deep, tight bottom with a dip above it, a broad-to-sharp high boost, a separate high attenuation shelf, and a gentle output stage that thickens as it is driven.
- [Glazen](https://sournd.com/engines/glazen/index.md): Paid. Linear-phase parametric EQ: 24 dB/oct low and high cuts, low and high shelves and three bells with no phase shift between frequencies, so boosts and cuts keep transients and parallel paths aligned. Adds a fixed latency the host compensates.
- [Glintfoil](https://sournd.com/engines/glintfoil/index.md): Paid. Harmonic exciter: adds new overtones above a chosen frequency rather than boosting what is there. Harmonics sets the drive, colour leans the new overtones odd (bright, edgy) or even (sweet, open), and amount blends them in.
- [Gridelle](https://sournd.com/engines/gridelle/index.md): Paid. Thirty-one-band third-octave graphic EQ, 20 Hz to 20 kHz, +-12 dB per band, constant-Q, for room and system voicing and precise tonal balance.
