@maruPhysics Playground

Best viewed on desktop

This instrument is built for larger screens.

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

Physics Playground

A physics sequencer: falling balls play tuned planks.

@maruInstrumentExperimental

What it does

A physics sequencer: balls fall from a hose, bounce down a set of tuned planks, and every contact plays a note. Arrange the planks and the falling balls write the score. It needs no audio or MIDI input; press Play and it plays itself.

The idea

Each plank is tuned to a pitch, and each strike sounds an electric-piano tone from Maru's four-operator FM Keys synth. A ball's position when it hits sets where the note sits in the stereo field, and how hard it hits shapes the note. Move a plank and the path changes; change its slope and the balls roll off toward a different neighbour. The result is a melody that follows the physics rather than a grid.

Built with

The 9 Maru DSP nodes it runs, by category.

Math

  • 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

  • Constant power pan@maru/mixing-constant-power-pan

    Constant-power pan law over a bipolar -1..1 position returning UNROUNDED doubles (`cos`/`sin` of `(pan + 1) * PI/4`), for voices that fold the pan into a per-voice constant gain…

  • 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

  • Slew@maru/modulation-slew

    Shared one-pole parameter smoothing and bounded scalar slew limiter for click-sensitive controls such as delay read positions.

Voices

  • FM keys@maru/voices-fm-keys

    Four-operator phase-modulation keyboard voice: six curated algorithms (0..5) with per-voice latched wiring, the stepped ratio table (harmonic, sqrt(2)-family inharmonic and five…

  • Mono performance@maru/voices-mono-performance

    Shared held-note selection and mono/legato retrigger decisions extracted from Vocoder and Phase 7.

  • Note stack@maru/voices-note-stack

    Held-note stack for mono and legato play modes: held flags, velocity, pitch, note identity and press order, with last, lowest or highest priority slot selection.

  • Portamento@maru/voices-portamento

    Exact-duration semitone glide extracted from Phase 7.

See all 9 in DSP

Guide and controls

What would you make with Physics Playground?

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

Goes well with.

Prototype

Maru

A four-operator FM keyboard with no filter.

Prototype

Maru

Write music in Symbolic Cycle and hear it as MIDI.

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