Skip to article
MIND MACHINE OSTHE SIGNAL LIBRARY
DOCUMENTATION / RESEARCH / PRACTICE
Browse all chapters
LIBRARY/INSTRUMENT/09

CHAPTER 09 · INSTRUMENT · 5 MIN READ

Inside the signal: DSP and rendering architecture

Trace the worklet clock, automation lookup tables, voice synthesis, noise filter, audible-bus dynamics, external encoding and visual-phase estimation.

This library does not prescribe stimulation or medical treatment. Read the safety guidance before using the instrument.

Anatomy of the instrument

  1. 1Timeline nodes → interpolation → lookup tables
  2. 2Audio thread → voices + noise → audible processing
  3. 3Separate high-frequency encoder → final stereo mix
  4. 4Audio telemetry → phase estimation → screen renderer
The encoder is added after audible-bus processing. The screen guard is not an external hardware limiter.

One audio clock, a separate display clock

The workstation creates an audio context with a requested 48 kHz sample rate and a low-latency hint. An AudioWorklet processor generates stereo output on the audio rendering thread. Its playhead advances from processed samples rather than a timer on the main page. Duration, completion and looping are therefore owned by that processing path.

JavaScript number arithmetic provides double-precision calculations in the kernel, while browser output buffers and the hardware chain have their own formats. “64-bit DSP” describes internal arithmetic, not a 64-bit DAC or a guarantee of audible superiority. Operating-system scheduling, resampling, buffering and output devices still influence delivered audio.

From timeline nodes to per-sample values

The page constructs interpolation functions for the frequency, carrier and depth lanes. It samples each function into a 1,024-point lookup table and sends those tables with configuration to the worklet. During processing, the kernel interpolates between lookup-table entries at its normalized playhead position.

This separates interface work from per-sample computation. It also means that the sound follows a sampled representation of the editor curve rather than an unbounded symbolic spline evaluation inside the audio thread. The choice is an engineering compromise for responsive editing and predictable processing.

What each voice actually generates

Binaural mode places the ratio-adjusted carrier minus half the drive rate in one channel and plus half in the other. Monaural mode combines two nearby oscillators into both channels. Isochronic mode multiplies a carrier by a periodic raised-cosine envelope, with alternate phase on the right for the alternating bilateral pattern.

Gamma_overtone uses a separate 40 Hz phase accumulator for its envelope. Harmonic_sub halves the ratio-adjusted carrier and uses a different relationship to the drive frequency. These special modes are not just differently named copies of the main oscillator. The four-voice sum should be described by its complete configuration.

For enabled Hybrid Auto, the binaural branch crossfades toward an isochronic branch using a ramp that begins above 16 Hz and reaches one at 22 Hz. This source-level detail is more precise than the “>18 Hz” label. It is not an empirical finding about a single universal fusion threshold.

Noise, filtering and dynamics

A deterministic pseudo-random generator supplies noise. White noise is used directly with scaling; brown noise is accumulated and damped; pink noise uses a recursive approximation associated with Paul Kellet’s method. The noise then passes through a state-variable low-pass path whose cutoff and amplitude can follow the entrainment envelope.

The implementation performs two state-variable updates per output sample. Calling this “2x oversampled” is shorthand in the interface; it is not a complete interpolated oversampling chain with dedicated anti-imaging and decimation filters. Treat stability or alias-suppression claims as things to measure, not infer from the label.

The audible mixture is shaped by an eighth-order low-pass design and an envelope-controlled limiter targeting a −1.5 dBFS-related ceiling. A ramp smooths starts and output changes. The limiter uses attack/release behavior, not a documented true-peak, look-ahead brickwall certification.

External encoding is added after audible-bus processing

AudioStrobe and SpectraStrobe carriers are generated in a separate high-frequency path and added to the processed audible output. As a result, the audible limiter target is not a certified ceiling for the final encoded sum. The audible master gain also does not simply scale that encoder bus in the same way.

Screen PSE clamping is applied later in the visual renderer, not to this external encoder calculation. These architectural distinctions are why the documentation recommends disabling the encoder for ordinary headphone use and never treating on-screen status labels as physical-hardware safety measurements.

Visual extrapolation and adaptive rendering

Worklet telemetry reports playhead, frequency, depth and continuous phase. The main page stores it in references; the HUD updates at a lower rate than the graphics loop. The renderer extrapolates phase using browser output-latency information and the user’s A/V offset, then draws through WebGL2 or a Canvas2D fallback.

The graphics path adjusts resolution when performance degrades. Hidden documents do not draw session frames. On return, phase timing is invalidated until fresh telemetry arrives; stale audio reports are not extrapolated indefinitely. The rendered screen still depends on physical refresh and pixel response, so this is synchronization logic, not laboratory calibration.

Why hidden telemetry is reduced

Foreground telemetry is relatively frequent; hidden-tab telemetry is reduced to roughly once per second to avoid a message backlog while browsers throttle the main thread. Synthesis and sample-based session completion remain in the audio processor. The engine sends completion immediately rather than waiting for the next slow telemetry interval.

These engineering choices support background use where permitted. They cannot prevent the OS from interrupting audio, suspending a page or terminating a browser process. After a detected interruption, the app stops claiming to be playing and requires an explicit Resume action.

CITE THIS PAGE

Mind Machine OS. “Inside the signal: DSP and rendering architecture.” Documentation for the instrument created by Enea Le Fons. https://mindmachineos.com/docs/dsp (add your access date).

For research findings, cite the original publication. This citation credits the instrument and its documentation, not an independent clinical review.