# Hollow Pulse Bass — complete SuperCollider settings

## Signal flow and implementation

`~soundStage` is compiled into the SynthDefs. Re-evaluate the complete block after changing it; source and effects are then replaced together. The fixed output multiplier `~soundOutputScale` is 0.4482905 and applies after the whole chain at every stage. It is separate from any final gain step.

`EnvGen` supplies the explicit linear or exponential contours. Exponential floors stay positive. Closing the gate begins each release; a separate silent lifetime envelope frees the note after the longest source release. Shared effects continue independently.

`Saw` and `Pulse` use SuperCollider oscillator implementations and startup phases; they replace the source engines and do not scan proprietary wavetables.

## Synthesis and effect controls

### Stage 1 — Establish the strong second harmonic

Select `~soundStage = 1` and evaluate the full script at the end of this guide. Wait for the instrument-ready message before playing.

Set `~soundStage = 1` in the full script. A sine at ratio 2 carries the body, with 2 ms attack, 1 s decay to −3.5 dB and 25 ms release. Velocity contributes 35% of its level multiplier. The root will arrive later, leaving the octave deliberately strongest.

| SuperCollider control | Value |
| --- | --- |
| A | Sine, ratio 2, 0 dB |
| Amplitude | 2 ms / 1 s / −3.5 dB / 25 ms |
| Instrument | −12 dB |

### Stage 2 — Replace the sine with a bright saw

Set `~soundStage = 2` in the full script. Change A to a band-limited saw at the same ratio and level. Its upper harmonics brighten the second-harmonic body. This interprets Saw 64 without fixing the source to exactly 64 harmonics at every pitch.

| SuperCollider control | Value |
| --- | --- |
| A waveform | Band-limited saw, ratio 2 |

### Stage 3 — Add the quieter root and third-harmonic layer

Set `~soundStage = 3` in the full script. Add ratio-3 saw at −6.5 dB and ratio-1 sine at −15 dB. Their 2 ms / 1 s / −2.5 dB / 25 ms contour keeps them close to the main body while allowing the root to remain quieter than the octave.

| SuperCollider control | Value |
| --- | --- |
| B | Saw, ratio 3, −6.5 dB |
| C | Sine, ratio 1, −15 dB |
| B/C sustain | −2.5 dB |

### Stage 4 — Let the fourth harmonic swell and recede

Set `~soundStage = 4` in the full script. Add a ratio-4 sine at −10 dB with a 280 ms rise, 120 ms fall to zero and 25 ms release. Its independent envelope produces a rounded middle without a repeating LFO.

| SuperCollider control | Value |
| --- | --- |
| D | Sine, ratio 4, −10 dB |
| D envelope | 280 ms / 120 ms / zero / 25 ms |

### Stage 5 — Close the spectral ceiling

Set `~soundStage = 5` in the full script. Use a 280 Hz Butterworth lowpass with a 480 ms envelope moving it by 3.3 octaves at the beginning. This explicit sweep interprets the source 55% modulation amount; no key or velocity tracking is added.

| SuperCollider control | Value |
| --- | --- |
| Filter | 280 Hz base; 3.3 octave opening |
| Filter decay / release | 480 / 50 ms |

### Stage 6 — Add the small downward tuning drift

Set `~soundStage = 6` in the full script. Move every source from −5 to −18 cents over 500 ms and use −8 dB instrument gain. The movement is intentionally cents, not a many-semitone fall. The output remains centered and contains no external effects.

| SuperCollider control | Value |
| --- | --- |
| Pitch | −5 → −18 cents in 500 ms |
| Instrument | −8 dB |

## Connected instrument

The [full SuperCollider script](/tutorials/hollow-pulse-bass/supercollider/#full-supercollider-script) contains the complete voice, shared effects, bus ordering and note helper. No external sample or third-party unit is required.

[Read on playgrid.cc](https://playgrid.cc/tutorials/hollow-pulse-bass/supercollider/settings/)
