# Hulvar

> Bass amp: an even, compressed clean tone with a growling drive channel blended in underneath, so the lows stay solid while the mids bark. Five-band tone shaping and an optional speaker voice for going direct.

- Engine id: `org.sournd.distortion.hulvar`
- Category: Distortion
- 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: 15 samples
- Tail: 0.3 s
- Sidechain input: no
- Channels: mono or stereo
- Audio demo: https://sournd.com/static/preview/demos/hulvar.mp3 (a bass line, 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 | `comp` | Compressor | 0 | 100 | 30 | % | linear |
| 1 | `gain` | Gain | 0 | 100 | 40 | % | linear |
| 2 | `blend` | Blend | 0 | 100 | 50 | % | linear |
| 3 | `bass_db` | Bass | -12 | 12 | 0 | dB | linear |
| 4 | `low_mid_db` | Low mid | -12 | 12 | 0 | dB | linear |
| 5 | `mid_db` | Mid | -12 | 12 | 0 | dB | linear |
| 6 | `high_mid_db` | High mid | -12 | 12 | 0 | dB | linear |
| 7 | `treble_db` | Treble | -12 | 12 | 0 | dB | linear |
| 8 | `cabinet` | Cabinet | 0 | 100 | 0 | % | linear |
| 9 | `mix` | Mix | 0 | 100 | 100 | % | linear |
| 10 | `output_db` | Output | -24 | 12 | 0 | dB | 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.distortion.hulvar" };
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.distortion.hulvar", &e) == SOURND_OK) {
    sournd_engine_prepare(e, 48000.0, 512);
    sournd_engine_set_param(e, 0, 30); /* Compressor */
    sournd_engine_process(e, in, out, 2, frames);
    sournd_engine_destroy(e);
}
```

## How it is made

Original sOURnd design blending general techniques: a feed-forward peak compressor with level-dependent makeup, a clean full-range path in parallel with a high-passed, biased two-stage tanh drive path, a five-band shelf-and-peak tone stack and a generic closed-back speaker curve, all inside 2x windowed-sinc oversampling.

## Ask your AI

Paste this into your coding assistant:

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

## Related engines

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

- [Brimm](https://sournd.com/engines/brimm/index.md): Free. Clipper: shaves peaks at a ceiling you set, with a hard, soft or knee corner, oversampled for clean highs. Push the drive for loudness and bite, or keep it low to catch stray transients.
- [Calora](https://sournd.com/engines/calora/index.md): Free. Warm magnetic-style saturation: highs round off first, lows thicken, loud passages ease back gently.
- [Soft clip](https://sournd.com/engines/soft-clip/index.md): Free. Level-compensated tanh saturation.
- [Grittance](https://sournd.com/engines/grittance/index.md): Free. Lo-fi crusher: lower the sample rate and bit depth, fold the wave, and loosen the clock with jitter.
- [Asphalto](https://sournd.com/engines/asphalto/index.md): Paid. Lower-gain, darker bass fuzz: heavy body and a thick low-mid, with the top end grit mostly rolled away.
- [Fizzmelt](https://sournd.com/engines/fizzmelt/index.md): Paid. Bright, fizzing bass fuzz with a deeper low cut so the sub stays out of the mess.
- [Kilnglow](https://sournd.com/engines/kilnglow/index.md): Paid. Valve-style asymmetric drive rich in even harmonics; the bias sags with playing level for a touch-sensitive bloom.
- [Lithic](https://sournd.com/engines/lithic/index.md): Paid. Plays amp and pedal captures and cabinet impulse responses you load: a neural capture, an IR, or both. Empty slots pass audio through clean.
- [Monstrous Mandarin](https://sournd.com/engines/monstrous-mandarin/index.md): Paid. Thick valve-amp drive that saturates early and sits heavy in the low mids, with a dark-to-cutting tone sweep and a speaker-and-mic voice you can pull back to feed your own cab.
- [Patinor](https://sournd.com/engines/patinor/index.md): Paid. Lo-fi character: makes anything sound played back from a worn record or tape, with drifting pitch, flutter, crackle and dust pops, hiss, a narrow bandwidth, gentle age saturation and optional bit and sample-rate crush. The surface noise rides under the playing and fades out with it.
- [Scary Satsuma](https://sournd.com/engines/scary-satsuma/index.md): Paid. Tight, biting valve-amp drive that keeps getting heavier all the way up the gain, with a broad upper-mid push and a speaker-and-mic voice you can pull back to feed your own cab.
- [Thornet](https://sournd.com/engines/thornet/index.md): Paid. Thick, saturated fuzz with an octave-up blend, a gate for tight stops and a scoop-to-bright tone stack.
