everything you can tweak is recallable
The preset system captures every user-facing parameter in the synth: oscillator settings, filter state, envelopes, voice LFO, glide, poly/mono, latch, mod pads, arp mode & BPM, SEM section, all three effect rails, master volume / drive, clock-sync state, every slot of the Quad LFO, and the entire drum sequencer state (bank, pattern, per-channel mute/solo/volume, swing, shuffle, steps, resolution, time signature, start step). Load a preset and both the synth panel and the drum panel snap to match instantly.
Two preset flavours coexist:
.alienxs) —
the everything-preset, captures synth + drums in a single
file. Root element AlienXSPreset..alienxsdrum)
— drum-sequencer state only. Load it while you're
working on a synth patch to audition different beats
without touching the synth tone. Root element
AlienXSDrumPreset.Options → ...
| Item | Action |
|---|---|
| Save Preset As... | Opens a save file dialog. Defaults to
Documents/ALIEN_XS Presets/Untitled.alienxs.
The folder is auto-created on first save. Overwrite is
confirmed. The extension is forced to
.alienxs. File root:
AlienXSPreset. |
| Load Preset... | Opens a load file dialog filtered to
*.alienxs. On load, validates the root
element (AlienXSPreset) before applying;
shows an alert on bad files. After load, any held /
latched notes are released, the mono stack is cleared,
and the UI is refreshed to match. |
| Reset to Defaults | Rewrites every atomic in SynthParameters
— both synth and drum halves — to its
compile-time default. Same as a fresh startup. Also
refreshes the UI. |
| Item | Action |
|---|---|
| Save Drum Preset As... | Opens a save dialog targeting
Documents/ALIEN_XS Presets/Drums/. The
extension is forced to .alienxsdrum.
Only the DrumSeq subtree is serialised;
the file root is AlienXSDrumPreset. |
| Load Drum Preset... | Opens a load dialog filtered to
*.alienxsdrum. Validates the root
element (AlienXSDrumPreset) and applies
only the drum state. Your synth
patch — oscillators, filter, envelopes, FX,
Quad LFOs, etc. — is left exactly as it was.
The drum panel refreshes to show the loaded pattern
and kit. |
| Item | Action |
|---|---|
| Reset Synth to Defaults | Resets every non-drum parameter
(oscillators, filter, envelopes, voice LFO, glide,
mod pads, latch, poly, SEM, tape, Cloud, Rings,
master volume / drive, clock sync, all four Quad
LFOs) to defaults. Also runs the note-clean pass
(allNotesOff / mono stack clear / arp
release) so no stuck voices carry across. Drum
sequencer state is left untouched — your
pattern and bank keep playing. |
| Reset Drums to Defaults | Clears the drum pattern (all step masks = 0), resets per-channel mute/solo/volume, selects Bank 1, returns clock options (steps, resolution, time sig, start step, shuffle, swing) to their factory values, and kills any in-flight drum voices. Synth state is untouched. |
ValueTree -> XML
Internally the engine uses a juce::ValueTree with a
fixed root type AlienXSPreset and grouped sub-trees
per section. This is serialised to XML on save and parsed back on
load. XML keeps presets human-readable and diff-able (you can
version-control them).
AlienXSPreset [version=1] ├─ Oscillators (osc1Shape, osc1PW, osc2Shape, ..., subOctave, ...) ├─ Filter (cutoff, resonance, envAmount, drive, keyTrack) ├─ Envelopes (ampA, ampD, ampS, ampR, fltA, fltD, fltS, fltR) ├─ VoiceLfo (lfoRate, lfoAmount) ├─ Global (glide, polyMode, latchMode, modPad1, modPad2) ├─ Arpeggiator (arpMode, arpBpm) ├─ Sem (semOn, semCutoff, ..., semSubOctave, ..., crossMod) ├─ TapeEcho (echoOn, echoMode, repeat, intensity, bass, treble, ...) ├─ DeathCloud (cloudOn, cloudFreeze, position, size, ..., mix) ├─ DeathRings (ringsOn, ringsTrackMidi, freq, structure, ..., mix) ├─ Master (masterVolume, drive, clockSyncEnabled) ├─ DrumSeq (drum sequencer state) │ ├─ drumPlaying / drumRecording / drumSync │ ├─ drumSteps / drumResolution │ ├─ drumTimeSigNum / drumTimeSigDen / drumStartStep │ ├─ drumShuffle / drumSwing │ ├─ drumBank / drumMasterLevel │ └─ DrumCh [index=0..7] │ ├─ mute / solo / volume │ └─ stepMask (int64 carrying the 32-bit step pattern) └─ QuadLfo ├─ Lfo [index=0] (enabled, wave, rate, depth, invert, destination) ├─ Lfo [index=1] ... ├─ Lfo [index=2] ... └─ Lfo [index=3] ...
stepMask is a uint32_t bitmask (one bit
per step, up to 32 steps). It's serialised as a signed 64-bit
integer because juce::var doesn't expose a
uint32_t constructor overload — the high 32
bits stay zero. Drum sample audio is not embedded in
the preset; only the bank number is stored, and the bank's
samples are reloaded from disk on preset load.
A .alienxsdrum file is a stripped-down tree
containing just the DrumSeq subtree under a distinct root:
AlienXSDrumPreset [version=1] └─ DrumSeq ├─ drumPlaying / drumRecording / drumSync ├─ drumSteps / drumResolution ├─ drumTimeSigNum / drumTimeSigDen / drumStartStep ├─ drumShuffle / drumSwing ├─ drumBank / drumMasterLevel └─ DrumCh [index=0..7] ├─ mute / solo / volume └─ stepMask
The distinct root type (AlienXSDrumPreset vs.
AlienXSPreset) lets Load Preset and Load Drum
Preset reject each other's files with a clear error, instead
of silently loading a partial state the user didn't ask for.
Load is resilient: each property is applied only if present. Missing properties leave the current value alone. This means:
cloudPostTape
are still written to preserve round-trip fidelity, but are
safely ignored if the DSP no longer uses them.clean slate every time
Both setStateTree() and resetParametersToDefault()
finish with three cleanup calls so a preset change mid-play never
leaves stuck notes from the old state:
synth.allNotesOff(0, false); monoStack.clear(); arp.forceRelease();
The UI refresh (AlienPanel::refreshFromParameters())
then walks every knob, toggle, combobox, and radio group in the
panel and pushes the loaded atomic values in using
juce::dontSendNotification, so the controls visually
update without re-triggering their own onChange callbacks (which
would pointlessly overwrite the values we just loaded).
notes for community distribution
.alienxs files are plain XML — they can be
emailed, committed to Git, dropped on Discord, or attached to
forum posts. They contain no audio, sample data, or personal
information, just parameter values.