two variable-shape oscillators + sub + noise + cross-mod
OSC1 and OSC2 are band-limited variable-shape oscillators from the
DaisySP library. A single shape knob morphs each from saw
to square; pulse-width is fixed at 50% on OSC2 and user-controlled
(via the bus, internally) on OSC1. OSC2 is tuned in semitones
relative to OSC1 via DETUNE.
| Param | Range | Default | Notes |
|---|---|---|---|
| O1 SHP | 0.0 → 1.0 | 0.0 | Morphs OSC1 from saw (0) to square (1). |
| O2 SHP | 0.0 → 1.0 | 0.35 | Same morph, independent of OSC1. |
| DETUNE | -12 → +12 st | +0.07 | OSC2 offset from OSC1 in semitones. Classic "slow beat" at very small detune; full-octave intervals at extremes. |
| MIX | 0.0 → 1.0 | 0.5 | Crossfader: 0 = OSC1 only, 1 = OSC2 only, 0.5 = equal blend. |
| SUB | 0.0 → 1.0 | 0.2 | Level of the sub oscillator added to the bus. |
| SUB OCT | -1 / -2 / -3 | -1 | Sub pitch offset in octaves below OSC1. Cycles through the three positions when clicked. Uses a band-limited POLYBLEP square so higher keys don't alias. |
| NOISE | 0.0 → 1.0 | 0.0 | White noise mixed into the bus. Great for percussive accents, breath, or to inject excitation into Rings. |
| SAW / SQR / TRI / NOI | 4-way radio | SAW | Replaces the OSC1 waveshape with a fixed wave (TRI is a phase-shaped approximation; NOI routes OSC1 to white noise). |
| X-MOD | 0.0 → 1.0 | 0.0 | Audio-rate cross modulation. OSC2 FM-modulates OSC1's pitch up to ±7 semitones at full depth — the signature Pro-One metallic / bell-like voice. cranks fast |
DaisySP LadderFilter · 24 dB/oct lowpass
The main filter is a Moog-ladder emulation configured as a four-pole lowpass with self-oscillating resonance and soft-clipped input drive. Cutoff is modulated by the filter envelope, the voice LFO, note-key tracking, and the Quad LFO bus.
| Param | Range | Default | Notes |
|---|---|---|---|
| CUTOFF | 0.0 → 1.0 (20 Hz – 18 kHz, exp) | 0.70 | Base cutoff. Internal mapping is
20 · 900norm. |
| RESO | 0.0 → 0.98 | 0.20 | Hard-clamped below self-oscillation for safety. At ~0.97 you get clean self-oscillation — useful as a sine source keyed from the keyboard. |
| ENV AMT | 0.0 → 1.0 (mapped ±1) | 0.65 | Bipolar modulation from the filter envelope. 0.5 is "envelope off"; below 0.5 inverts the envelope polarity. |
| GRIT (filter drive) | 0.0 → 1.0 | 0.1 | Pre-filter input drive. Slight saturation at low values, full soft-clip at max. Changes the apparent resonance peak too. |
The filter tracks the played note via a fixed internal gain (~0.4 per octave around A4) so higher notes open the filter slightly. This is baked into the voice code and not exposed as a knob.
// from AlienVoice::renderNextBlock (SynthEngine.cpp) const float keyOffset = keyTrack * ((midiNow - 69.0f) / 24.0f) * 0.4f; float cutMod = cutNorm + envAmt * fe + lfoAmt * lf + keyOffset + qFilterCut; cutMod = juce::jlimit (0.02f, 0.99f, cutMod); ladder.SetFreq (mapCutoffHz (cutMod));
dual ADSR — amp envelope + filter envelope
Two independent exponential-time DaisySP ADSRs. The amp envelope
shapes final voice amplitude; the filter envelope drives cutoff via
the ENV AMT knob. All times map exponentially so the
first millimetre of knob travel gets you from 1 ms to 100 ms of
release.
| Param | Range | Default (AMP / FLT) | Notes |
|---|---|---|---|
| A (Attack) | 1 ms → 6 s (exp) | 0.02 / 0.02 | Time to peak after note-on. |
| D (Decay) | 1 ms → 6 s (exp) | 0.35 / 0.40 | Time from peak to sustain level. |
| S (Sustain) | 0.0 → 1.0 | 0.75 / 0.25 | Held level while key is down. |
| R (Release) | 1 ms → 6 s (exp) | 0.35 / 0.35 | Time to zero after note-off. |
gate == false
AND amp envelope < 10-4. Short releases + low sustain
will reclaim voices instantly; long releases let notes ring out
through subsequent triggers in poly mode.
per-voice modulation and portamento
The voice LFO is a dedicated triangle oscillator baked into every voice, routed directly to the ladder's cutoff. It runs independently of the Quad LFO — think of this as the "wobble" LFO that's always available without spending a routing slot.
| Param | Range | Default | Notes |
|---|---|---|---|
| LFO RATE | 0.05 → 20 Hz (exp) or 2 bars → 1/128 (sync) |
0.25 | Free-run map: 0.05 · 400norm.
When SYNC SYNTH is on (toggle in the drum
panel), the knob snaps to a musical-division table
instead — see
Clock sync
for the full table and the phase-lock mechanism. |
| LFO AMT | 0.0 → 1.0 | 0.0 | Adds a signed cutoff offset proportional to the LFO output. Use with low RATE for vibrato-like cutoff motion; crank with high RATE for tremolo / chirps. |
| GLIDE | 0 → 500 ms | 0 | Portamento time between notes. Uses a one-pole smoother on the MIDI-note number itself. In mono mode with GLIDE > 0, legato feels like a classic Pro-One lead. |
block-diagram of one voice
The SEM path is a parallel branch taken off the oscillator bus before the ladder; see SEM. Effects (Cloud, Rings, RE-201) sit on the summed bus after all voices — see Effects.
how the audio thread stays clean under heavy load
SynthEngine::renderNextBlock opens with a
juce::ScopedNoDenormals RAII guard. This sets the
CPU's FTZ (flush-to-zero) + DAZ (denormals-are-zero) flags for
the duration of the block, then restores them when the render
returns. Effect on the audio thread:
Every feedback-carrying component (tape echo, Cloud voice,
Rings bandpass bank, master stage) runs its per-sample state
through std::isfinite checks and snaps non-finite
values back to a safe default. This means a single glitch in
any one stage cannot poison a delay line or feedback register
permanently — worst case is one sample of silence, never
a locked-up filter.
Two modules previously shipped with delay-line-based feedback paths that introduced phase cancellation nulls at certain settings:
prepareToPlay receives the host sample rate and
block size and forwards them to every DSP module. Fixed-size
scratch buffers (drum machine, cloud grains) are allocated in
prepare() once, so the audio thread never touches
the heap. The master clock and drum sequencer scale with the
actual sr field, so switching the audio device
between 44.1 / 48 / 96 kHz works without retuning.
The engine currently runs at native host sample rate. An
upcoming revision will wrap the voice-render + FX chain in a
juce::dsp::Oversampling stage supporting 2×
/ 4× / 8× / 16× internal oversampling, with
Lagrange-interpolated filters on the input and output sides so
alias energy from the ladder, SEM drive, and RE-201 tape
saturation is pushed far above the final output Nyquist. The
groundwork (denormal safety, finite-guarded feedback loops)
is already in place, so the oversampled path won't introduce
any of the noise problems a naive sample-rate change can
trigger.