SW Motif
Adaptive game music

Motif composition meets adaptation.

A composition-first workstation for authoring adaptive game soundtracks — clips, cues, scenes, layers, automation — with deterministic runtime logic.

npm

npm install @motif/schema @motif/clip-engine

Clone

git clone https://github.com/mcp-tool-shop-org/motif.git

Dev

pnpm install && pnpm build && pnpm dev

What It Can Do

A serious creative instrument for adaptive game score authoring.

Compose

Clips with notes, multi-oscillator synth (unison/supersaw), sample instruments, LFO modulation, and intensity variants — structured music authoring, not random generation.

Score Worlds

Motif families, score profiles, cue families, world map entries, and derivation chains for game-wide musical coherence.

Mix and Effect

8 effect types (EQ, delay, reverb, compressor, chorus, distortion, phaser, limiter) with 4 insert FX slots per stem. MIDI import/export. 24/32-bit WAV rendering.

Studio to Runtime

Author in Studio, export for your game engine.

Adaptive Logic

Trigger bindings, transitions, and deterministic scene resolution — music responds to game state predictably.

1,116 Tests

Schema validation, synthesis, effects, MIDI, sample operations, world scoring, automation, library management — all tested.

Zero Network

Runs entirely in the browser. No server, no cloud sync, no telemetry. Your music stays local.

Getting Started

Setup

git clone https://github.com/mcp-tool-shop-org/motif.git
cd motif
pnpm install
pnpm build

Run Studio

pnpm dev
# Open http://localhost:3000

Monorepo Packages

Package
Role
@motif/schema
Canonical types and Zod validation
@motif/asset-index
Pack integrity indexing and auditing
@motif/audio-engine
Sample playback and voice management
@motif/clip-engine
Clip sequencing, transforms, cue scheduling
@motif/instrument-rack
Multi-oscillator synth, drum voice, sample voice, LFO modulation
@motif/music-theory
Scales, chords, motifs, intensity
@motif/playback-engine
Real-time playback, mixing, 8 FX types, MIDI I/O, WAV export
@motif/sample-lab
Trim, slice, kit, instrument helpers
@motif/score-map
Motifs, profiles, cue families, derivation
@motif/automation
Lanes, macros, envelopes, capture
@motif/library
Templates, snapshots, branches, favorites
@motif/scene-mapper
Trigger mapping and scene resolution
@motif/runtime-pack
Runtime export/import
@motif/review
Summaries and audit helpers
@motif/ui
Shared UI components
@motif/test-kit
Fixtures and test utilities