Skip to content
thorinsidePublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Thik Oscillator

A minimal organic stereo unison oscillator for the Expert Sleepers disting NT, constructed for the important scientific purpose of making one note sound as if it has recently discovered cinema, voltage, and inadvisable trousers.

Thik is not a chord machine, a scale contraption, or an ensemble pretending to be a lifestyle. It is one pitched oscillator with a small internal swarm of voices orbiting the same musical idea. The result is thick, animated, stereo, and only slightly more dramatic than the situation strictly requires.

What It Does

  • Produces one pitched organic swarm, not a chord, scale, or interval engine.
  • Runs 9 internal voices around a single perceived pitch.
  • Uses a local PolyBLEP triangle/saw voice engine.
  • Accepts MIDI note input, with MIDI Ch set to Omni by default.
  • Lets Thickness increase detune, drift, side-voice level, and stereo width.
  • Lets Tone move from darker and rounder to brighter and sawier.
  • Remains always stereo, because some waveforms deserve a left wing and a right wing.

Control Panel

The main controls and routing settings are:

  • Pitch CV
  • Tone CV
  • Thickness CV
  • Output L
  • Output L mode
  • Output R
  • Output R mode
  • Pitch
  • Fine Tune
  • Thickness
  • Tone
  • MIDI Ch

Pitch sets the fallback pitch. Incoming MIDI note-on messages override that fallback while a note is active, and Pitch CV still does the 1V/oct thing on top, as modular civilization requires. MIDI Ch can listen to Omni or one specific MIDI channel. Tone changes the waveform character. Thickness tells the internal swarm how much to behave like a disciplined oscillator section and how much to behave like a dramatic laboratory choir.

Prerequisites

Before persuading the module to sing, you need:

  • Official Expert Sleepers distingNT_API submodule.
  • ARM embedded toolchain for hardware builds, for example arm-none-eabi-g++ and arm-none-eabi-nm.
  • A native C++ compiler for TARGET=test builds.

Initialize the SDK/API submodule:

git submodule update --init --recursive

Build

Hardware object for disting NT:

make hardware        # plugins/thik_osc.o

Native plugin for nt_emu/desktop testing:

make test            # plugins/thik_osc.dylib on macOS

Both, for moments when restraint has failed:

make both

Strict symbol checks and size checks:

make check           # hardware check by default
make TARGET=test check
make size
make TARGET=test size

RMS consistency check across Thickness, including full Tone:

make level-test

DSP fidelity checks for triangle consistency, CV tracking, and render-path equivalence:

make fidelity-test

Optional host render benchmark:

make benchmark

MIDI pitch handling check:

make midi-test

Full local release verification:

make verify

Hardware-only CI/release verification:

make ci-verify

Clean generated outputs:

make clean

NT_globals / _NT_globals is expected to remain undefined in plugin outputs because it is provided by the disting NT host/API environment. The hardware object may also retain runtime-provided libm symbols such as sinf, cosf, and sqrtf; any other undefined symbol should fail make check.

Generated outputs are intentionally ignored by git:

  • build/
  • plugins/

GitHub Release Workflow

.github/workflows/release.yaml builds the plugin on Ubuntu with the ARM toolchain, runs make ci-verify, and packages the hardware object as:

programs/plug-ins/thik_osc.o

The workflow uploads thik_osc-plugin.zip as a build artifact on manual runs. When pushed with a v* tag, it also creates a GitHub Release with that zip attached.

Design Notes

Thik has a deliberately small brief: one enormous-feeling oscillator, two main sound macros, and no excursion into chord menus, scale bureaucracy, or feature panels that require their own weather system.

The internal design is:

  • 9 voices.
  • Deterministic detune and pan layout.
  • Slow independent drift tied to Thickness.
  • Pitch- and sample-rate-stable PolyBLEP triangle derivation.
  • Constant-power triangle/saw blend tied to Tone.
  • MIDI note-on/off pitch override with Omni or channel-filtered input.
  • Stereo output with add/replace modes.
  • Plugin GUID set to ThIk.

The point is not to expose the orchestra pit. The point is to press a few controls and hear one pitch become wide, alive, and faintly convinced it is scoring the final act of a film about voltage.

Design Docs

  • SPEC.md
  • CONTEXT.md
  • docs/adr/

License

MIT. See LICENSE.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages