Skip to content

synths fray

Aisjam edited this page Nov 15, 2026 · 1 revision

FRAY

Home · Section index

Working manual · 0.0.1-alpha · source snapshot 16 November 2026

Current synth model 29 (decimal). Create it in Synths with A on an empty cell, choose FRAY, then enter Synth Edit. Existing projects can also reach it from a Phrase synth reference.

D-pad selects a control. Hold A with Left/Right for a fine edit or Up/Down for a coarse edit. Double-A restores a supported control default. Output GAIN/PAN/DRY/SB1–SB4 belongs to the shared output section. Save the project for allocation and arrangement; export CTS for a reusable patch.

First sound

Start with ALGORITHM 01 DCO, hold a note and sweep SHAPE, then COLOUR. Add GHOST only after learning the selected algorithm’s meaning. For a telephone-like filter choose SPEAKER and set LOW=64 and HIGH=BE (hex); these are approximately 300 Hz and 3.4 kHz. The normal resonance control becomes HIGH in this mode.

These are suggested starting exercises derived from the controls, not newly auditioned factory presets. Shared synth workflow explains allocation and saving.

Default parameter values

Defaults below are decimal, followed by their hexadecimal byte. These are stored controls, not physical units. The model-specific mapping below defines seconds, hertz, ratios and enumerations.

Matrix Tracker FX Control Default decimal / hex Meaning
PA1 P1A ALGORITHM 1 / 01 Standalone FRAY algorithm 01-30
PA2 P1B SHAPE 32 / 20 Algorithm-specific Shape
PA3 P1C COLOUR 128 / 80 Algorithm-specific Colour
PA4 P1D GHOST 0 / 00 Algorithm-specific Ghost
PB1 P2A CUTOFF 235 / EB 20 Hz to 20 kHz, limited by sample rate
PB2 P2B RESONANCE 20 / 14 Bounded SVF resonance
PB3 P2C FILTER 0 / 00 LP12 / HP12 / BP12 / NOTCH / SPEAKER
PB4 P2D ENVELOPE DEPTH 128 / 80 Shared ADSR cutoff depth; 80 is neutral; +/-6 octaves
PC1 P3A ATTACK 8 / 08 ADSR attack: 1 ms to 15 s
PC2 P3B DECAY 140 / 8C ADSR decay: 1 ms to 15 s
PC3 P3C SUSTAIN 220 / DC ADSR sustain: 0-100%
PC4 P3D RELEASE 140 / 8C ADSR release: 1 ms to 20 s
PD1 P4A WAVEFORM 0 / 00 Per-voice LFO waveform
PD2 P4B RATE 158 / 9E 00-F5: 0.01-30 Hz; F6-FF: 1/16 to 32 beats
PD3 P4C DEPTH 0 / 00 LFO depth; 00 disables modulation
PD4 P4D DESTINATION 0 / 00 OFF / SHP / CLR / GHO / PIT / CUT / RES / AMP

Model reference

Select FRAY in the existing Synths picker. A newly created module gets one voice; Stretch grants more within the existing twelve-voice synth allocation. Normal audition, tracker playback, output GAIN/PAN/DRY and SB1-SB4 sends apply.

FRAY lives in src/core/audio/Synth/Fray/. Each voice owns one standalone osc::fray::FrayOscillator, a shared linear lightweight SVF plus a SPEAKER low-pass, one shared ADSR, and independent LFO state. Signal path: oscillator -> filter -> ADSR/VCA -> existing mixer/output routing. No drive, saturation, extra bitcrusher, unison, stereo widening or additional envelope.

Controls

The existing controller-operated 4x4 matrix is used. A+D-pad edits, double A restores defaults, and the usual PRESET actions save/load CTS. Shape, Colour and Ghost help text follows the selected algorithm's original metadata. The panel uses full control, filter, waveform, destination and oscillator names; longer oscillator names wrap within their cell. Stored parameter IDs and values are unchanged.

Address Label Range and meaning Default
PA1 ALGORITHM Original decimal algorithm IDs 01-30 01 DCO
PA2 SHAPE 00-FF, original Shape macro 20
PA3 COLOUR 00-FF, original Colour macro 80
PA4 GHOST 00-FF, original algorithm-specific Ghost 00
PB1 CUTOFF Logarithmic 20 Hz-20 kHz, limited to 0.45 x sample rate EB
PB2 RESONANCE 00-FF, limited resonance with linear gain compensation 14
PB3 FILTER 0 LP12, 1 HP12, 2 BP12, 3 NOTCH, 4 SPEAKER LP12
PB4 ENVELOPE DEPTH -6 to +6 octaves; 80 exactly neutral 80
PC1 ATTACK Logarithmic 1 ms-15 s 08
PC2 DECAY Logarithmic 1 ms-15 s 8C
PC3 SUSTAIN 0-100% DC
PC4 RELEASE Logarithmic 1 ms-20 s 8C
PD1 WAVEFORM Sine, triangle, rising saw, falling saw, square, S&H, smooth random, eight-step random Sine
PD2 RATE 00-F5: logarithmic 0.01-30 Hz; F6-FF: 1/16, 1/8, 1/4, 1/2, 1, 2, 4, 8, 16, 32 beats 9E
PD3 DEPTH 00-FF, nonnegative modulation depth 00
PD4 DESTINATION OFF, SHP, CLR, GHO, PIT, CUT, RES, AMP OFF

Except DCO's explicitly decimal IDs, raw byte defaults above are hexadecimal. FLT/WAV/DST are compact enumerations. All sixteen controls are addressable by existing matrix tracker commands (internal IDs 1-16), with legacy V1-VF compatibility for the first fifteen. Modulation changes effective DSP values and never overwrites the document's base values.

The LFO is per voice. Free-rate settings restart phase on each note, like the existing macro synth; synced settings use the transport song tick and existing modulationBeats divisions. Random shapes retain cycle count instead of repeating one random cycle. PIT spans +/-2 semitones, CUT +/-6 octaves, macro and resonance routes span their normalized range; AMP varies from unity toward silence. DEP=00 and DST=OFF disable modulation. No separate generic M1-M4 matrix runs.

The single ADSR drives both VCA and ENV cutoff modulation. Note-off releases from its current level; repeated direct note-on retriggers from that level. Normal polyphonic host notes get fresh slots according to the existing allocator; tracker pitch slides preserve the current envelope/oscillator phase. There is no separate mono legato mode. Released notes retain slots until the envelope tail finishes, unless stolen or cut. VCA smoothing softens live sustain edits.

SPEAKER mode

FLT = SPEAKER changes PB1 CUT to LOW and PB2 RES to HIGH. LOW is the high-pass cutoff; HIGH is the low-pass cutoff. Both span logarithmic 20 Hz to 20 kHz, capped at 0.45 times the sample rate, with fixed zero resonance. The two 12 dB/octave filters run in series. Crossing the limits attenuates the sound rather than swapping the controls.

For a telephone-like band, try LOW = 64 (about 300 Hz) and HIGH = BE (about 3.4 kHz); values here are hexadecimal. Existing knob values are retained when switching modes, so set both limits after selecting SPEAKER. ENV moves both cutoffs together. LFO destinations CUT/RES display as LOW/HIGH and each sweeps its respective cutoff by up to six octaves. The additional low-pass fades in/out over 128 samples on mode changes. There is no resonance boost, distortion or speaker cabinet convolution. The extra processor is preallocated per voice and only renders during SPEAKER use or its transition. Existing modes retain their IDs 0-3; SPEAKER appends ID 4, using the same CTS/CTP parameter payload. Earlier builds reject SPEAKER presets as an unsupported filter value.

DSP and persistence boundaries

FRAY appends synth model 29; existing model, scene and FX IDs are unchanged. All sixteen values use the existing signed 16-bit override payload in CTS v5 and CTP/CTL v41. No format extension or transient oscillator/filter/envelope state is serialized. Defaults use the existing -1 sentinel. Invalid DCO/FLT/WAV/DST values are rejected, as are old payloads without the sixteenth parameter. Older applications reject the unknown model rather than interpreting it as an earlier synth.

The oscillator registry remains the single source for the 30 algorithms. Its only integration addition is bind(const WaveformBank&), which updates its borrowed immutable table pointers during live prepared-bank replacement, without resetting phase, Ghost history or parameter ramps. Algorithms are unchanged.

The host passes existing tracker/table pitch plus saved semitone/fine tuning. Voice lifetime, stealing, allocation, gain/pan, mixer and FX sends remain in OscillatorSynth/VoicePool. Voice state is allocated with the host, before audio. Live bank preparation and retirement remain outside the callback.

The shared FilterProcessor_lite SVF uses lookup-based coefficients, 5 ms cutoff smoothing and 128-sample mode transitions. Resonance is capped at 0.85 of the shared range and compensated with linear gain; self-oscillation is not intended. LP24 is omitted because this linear SVF has no LP24 mode; other shared four-pole models introduce nonlinear processing. There is no oversampling. Continuous control calculations run once per 32 samples; the oscillator keeps its own 5 ms macro ramps and 2 ms algorithm transition. LFO sine evaluation is at control rate, not audio rate.

FRAY supports 1-192 kHz lifecycle preparation, matching the shared filter. Out-of-range host note requests fail explicitly. Sample-rate changes prepare fresh voice state; they are not seamless conversion of ringing voices.

What should be here

Documentation still to add
A labelled panel image, a short audio example for the first sound, and a verified CTS download. Preserve physical units and distinguish default byte values from audible measurements.

Evidence and verification

Repository sources used for this page:

  • docs/fray-synth.md
  • src/core/audio/Synth/Fray/Definition.hpp
  • src/core/audio/osc/SynthControls.hpp

This is a documentation/source review, not a new runtime or hardware test. Physical response, screenshots and listening examples still need verification on a recorded build.

Clone this wiki locally