# Asphalto

> Lower-gain, darker bass fuzz: heavy body and a thick low-mid, with the top end grit mostly rolled away.

- Engine id: `org.sournd.distortion.asphalto`
- 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.5 s
- Sidechain input: no
- Channels: mono or stereo
- Audio demo: https://sournd.com/static/preview/demos/asphalto.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 | `amount` | Amount | 0 | 5 | 1.3125 | x | linear |
| 1 | `tightness` | Tightness | 0 | 1 | 1 | x | linear |
| 2 | `bite` | Bite | 0 | 4 | 0 | x | linear |
| 3 | `asym` | Asymmetry | 0.2 | 1 | 0.2 | x | linear |
| 4 | `hardness` | Hardness | 0 | 1 | 0.7 | x | linear |
| 5 | `grit` | Grit | -3 | 4 | 1 | x | linear |
| 6 | `tame` | Tame | 0 | 1 | 0 | x | linear |
| 7 | `low_blend` | Low blend | -3 | 3 | -0.2 | x | linear |
| 8 | `presence` | Presence | 0 | 8 | 0 | dB | linear |
| 9 | `body` | Body | 0 | 4 | 4 | x | linear |
| 10 | `defizz` | De-fizz | 0 | 1.5 | 0.8 | x | linear |
| 11 | `warmth` | Warmth | 0 | 1.5 | 1 | x | linear |
| 12 | `level_db` | Level trim | -24 | 12 | -14 | dB | linear |
| 13 | `mix` | Mix | 0 | 100 | 100 | % | linear |
| 14 | `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.asphalto" };
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.asphalto", &e) == SOURND_OK) {
    sournd_engine_prepare(e, 48000.0, 512);
    sournd_engine_set_param(e, 0, 1.3125); /* Amount */
    sournd_engine_process(e, in, out, 2, frames);
    sournd_engine_destroy(e);
}
```

## How it is made

Ported from our own Box Of Rules bass fuzz (Box Of Bass): AGC-normalised asymmetric soft/hard clipper, per-band grit cascade, casc warmth shelf, tame, de-fizz, a Linkwitz-Riley clean-low blend, presence, body, warmth and low high-pass, all inside a 2x oversampler; the cabinet impulse response is not included. Voicing: the second of our three locked fuzz characters.

## Ask your AI

Paste this into your coding assistant:

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