Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 4.01 KB

README.md

File metadata and controls

59 lines (47 loc) · 4.01 KB

Prism

Banded spectral delay. The sound is split into 1-8 frequency bands and each band is delayed separately on the left and right, with its own feedback. Delays glide between band centres, so there are no steps. A free-running LFO can sweep delay, feedback or both.

Magneto look: header, accent-banded panels, a plot of delay against frequency, a table of bands (solo, left delay, right delay, feedback) and a column of spectrum and LFO controls.

Signal flow

in L/R -> STFT -> per-bin delay (whole frames + phase rotation) + feedback -> ISTFT -> mix -> out L/R
              dry path delayed by N samples ----------------------------------------^

Each channel is processed independently; the only thing they share is the band table.

Controls

Control Meaning
Bands 1-8 active bands. Centres are evenly spaced in log frequency from 31.25 Hz to 16 kHz. One band delays everything alike
Left / Right delay 0-2000 ms per band, or a note division of the host tempo (below)
Tempo sync (ms / RATE, per side) RATE: each band picks a division: 1/64, 1/32, 1/16T, 1/16, 1/16D, 1/8T, 1/8, 1/8D, 1/4T, 1/4, 1/4D, 1/2, 1/1. A beat is a quarter note of the host's BBT tempo (120 BPM if the host gives none). A division longer than 2 s at the current tempo is limited to 2 s and flagged on the panel
Feedback 0-95 % per band. Each repeat is delayed by the full delay
S (solo) Hear only the delayed sound of the soloed bands; Mix is overridden to 100 %
Link L/R The right side follows the left: delay, sync mode and division
Resolution FFT size 512-4096. Sets latency and the time/frequency trade-off
Low Cut, High Cut Nothing beyond the cutoff is delayed (a third-of-an-octave ramp). Off at the end of the range
Mix Dry / delayed
LFO Rate 0.05-10 Hz, free-running (not locked to the host tempo). Inert while both depths are zero
LFO Delay Depth 0-100 %. Scales every band's delay by 1 +/- (depth x LFO), clamped to 0-2000 ms
LFO Feedback Depth 0-100 %. Scales every band's feedback by the same oscillator, clamped to 0-95 %

Documented assumptions

  • State. None. Every setting is a parameter (band parameters are b1_delay_l ... b8_solo, plus lfo_rate, lfo_delay_depth and lfo_feedback_depth), which DPF saves by symbol. Activation and sample-rate change clear audio state only, including the LFO phase.
  • Transport. Only the host BBT tempo is read (beatsPerMinute); position, loop and play state are not used, so synced delays are a delay of a given length, not a grid-locked tap. Tempo changes glide through the 100 ms band smoothing. The LFO is also free-running: neither it nor synced repeats use the bar position. MIDI. Not used.
  • Latency. Equal to the FFT size, reported to the host, and changed by Resolution.
  • Origin. The technique follows the published description of the Multiway plugin (AGPLv3). This is an independent implementation; no code was copied.

Known limits

  • Delays between band centres are approximate: a tone halfway between two centres was measured within about 12 ms of the interpolated value for a 200 ms span.
  • Feedback repeats lose level at some delay times: the sub-hop part of the delay costs cos(pi r / N) per trip round the loop. Measured worst case over a delay sweep: about 0.5, 1.2 and 2.3 dB below ideal at the second, third and fourth repeat.
  • Synced delays are note lengths at the current tempo; they are not phase-locked to the bar grid, and a tempo ramp moves repeats already in the loop only as they are re-read. The LFO is free-running for the same reason.
  • The LFO is sampled once per hop and one sine is shared by delay and feedback; a separate phase or drawn shape is not provided.
  • A fractional-sample delay spreads a sharp transient slightly (it is not a sample-accurate delay).
  • Per-bin delays make neighbouring bins phase-incoherent, which can sound metallic on sustained tones at long delays.

See docs/design.md for the algorithm and the measurements.