pnpm dlx shadcn@latest add @audio-ui/demo-song
import { SONG_TEMPO, SONG_SCORE } from "@/lib/demo-song";| Files | lib/demo-song.ts |
|---|---|
| Depends on | drum-kit |
| npm | @audio-ui/engine |
| Used by | block-timeline |
| Export | Kind | What it is |
|---|---|---|
SONG_TEMPO | const | |
SongNote | interface | A note of the song, as a MIDI clip holds it: its pitch, and its start and length in beats. |
SONG_SCORE | const | The song's notes by part, for MIDI tracks to play, each as long as its loop. |
SongScorePart | type |
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 notesThe Arrangement block lays its parts out as clips.