@maruAdaptive Score

Best viewed on desktop

This instrument is built for larger screens.

Open this page on a desktop to play Adaptive Score. Email yourself a link and pick it up there.

Adaptive Score

Let game inputs shape a four-layer score.

@maruInstrumentExperimental

What it does

A small game score that reacts to gameplay. Four layers, a pad, a bass, a plucked melody and bells, play a slow generated piece, and game values such as Health, Proximity and Threat reshape how it sounds while it plays. It is meant as a starting point you can copy and adapt for your own game.

The idea

Game music often needs to follow what is happening on screen without restarting. Here the notes are written ahead of time and the game values only change the sound: losing health darkens the bass, a larger Proximity distance damps the melody and thickens the pad's chorus, and rising threat sweeps the pad through its wavetable and adds pick noise to the melody. Switching Game phase from Exploration to Threat opens up the pad and brightens the melody.

Built with

The 18 Maru DSP nodes it runs, by category.

Control

  • Musical clock@maru/control-musical-clock

    Musical clock: the shared conversion of beats (quarter notes), seconds, milliseconds and clock pulses to frames at the prepared sample rate, plus a tempo/beat-position clock…

Delays

  • Fractional@maru/delays-fractional

    Canonical bounded f32 linear-interpolation delay and feedback-delay state, read/write, tick and reset semantics.

Envelopes

  • Linear AR@maru/envelopes-linear-ar

    Linear attack/sustain/release amplitude envelope over a bounded voice pool as functions over preallocated typed-array state: the f32 step law `fround(1 / (seconds * rate))`…

Filters

  • State variable@maru/filters-state-variable

    Trapezoidal-integrator TPT state-variable filter with seven response modes, bounded host values and f32 coefficient/state parity.

Math

  • Integer@maru/math-integer

    Maru compiler-safe signed 32-bit multiplication with Math.imul-compatible low-word results.

  • Range@maru/math-range

    Audio SDK-compatible f64 range policy: signed zero follows ECMAScript Math.min/Math.max, reversed bounds select the maximum, clamp propagates NaN and bounds infinities…

Mixing

  • Levels@maru/mixing-levels

    Shared level primitives: floored f64 linear-amplitude-to-decibels conversion, f32 equal-power crossfade/pan gains, and an allocation-free note-transition audio-edge blend.

Modulation

  • Chorus@maru/modulation-chorus

    Mono chorus: a sine-modulated bounded fractional delay over the canonical fractional-delay line, with optional regeneration, a dry/wet mix and a degrees-authored static LFO…

See all 18 in DSP

Guide and controls

What would you make with Adaptive Score?

Describe what you want to make. Build it with the Studio agent.

Goes well with.

Prototype

Maru

Write music in Symbolic Cycle and hear it as MIDI.

Prototype

Maru

Two oscillator banks with continuous frame morphing.

Prototype

Maru

A physical string model, rendered per note.

Music tools on your computer.

Install and manage Maru and community plugins in one app, and play them in your DAW.

Chicken Synth, a cat keyboard, effects knobs and wavetable and MIDI panels