Lab

demo-song

A chill song at 80 BPM on one two-bar loop, E minor seven, G and A, all of it notes for MIDI tracks: its drums on a drum kit's pads, one part each with a fill, and an organ, a pad, a bass and a lead hook. What the arrangement's demo plays.

pnpm dlx shadcn@latest add @audio-ui/demo-song
import { SONG_TEMPO, SONG_SCORE } from "@/lib/demo-song";
Fileslib/demo-song.ts
Depends ondrum-kit
npm@audio-ui/engine
Used byblock-timeline
ExportKindWhat it is
SONG_TEMPOconst
SongNoteinterfaceA note of the song, as a MIDI clip holds it: its pitch, and its start and length in beats.
SONG_SCOREconstThe song's notes by part, for MIDI tracks to play, each as long as its loop.
SongScoreParttype

Usage

The arrangement demo's song: a chill song at 80 BPM on one two-bar loop (intro, verse, chorus, outro), every part notes, played by a drum kit's pads, an organ, a pad, a bass and a lead.

import { SONG_SCORE, SONG_TEMPO } from "@/lib/demo-song";

const notes = SONG_SCORE["drums-fill"]; // a part's notes, in quarter notes

The Arrangement block lays its parts out as clips.

Built by Ouest Labs, the source code is available on GitHub.
RSS