Skip to content

music-skill 0.8.0

Choose a tag to compare

@owoevan-dev owoevan-dev released this 17 Nov 09:23
ba4338a

A piano-roll video of any render, banks from your own samples and SFZ instruments, a starter and a builder that keep a composition script's books, and messages that say where, what and the rule.

  • A piano-roll video of any render. studio.py video <render> --output roll.webm --config <config> draws the score as a piano roll scrolling under the render's master: the notes as they were played, coloured by what each part does (lead, harmony and patterns, bass; drums and effects in a lane of their own), every part named in the legend and lit while it sounds, with bar lines, sections and a playhead. WebM by default, MP4 with --mp4, kept under 10 MB unless you ask otherwise; studio.py still writes one frame as a PNG. Both need Pillow, which the setup does not install.
  • Banks from your own samples. soundbank.py folder builds one preset from a folder of samples named by a filename template: each take's pitch read from its name and checked against the recording, the takes trimmed and their levels matched, the velocity range shared by the dynamics you give softest first, and the licence you state kept in the bank and its receipt.
  • SFZ instruments. soundbank.py sfz reads a documented subset of SFZ: regions with their keys, velocities, pitch centre, tune, volume, offset and end, loops, envelope, groups and off_by, under <global>, <master> and <group>, with default_path, #define and #include. Crossfades become splits at their middles, and whatever else the file holds is named in the receipt. Tried on the two programs of the official SFZ legato tutorial and on a CC0 upright piano with four velocity layers.
  • A starter and a builder for composition scripts. studio.py start writes a piece's compose.py and the valid song.json it writes, into the piece's folder. musiclib.builder places notes by bar and beat with stable ids and performance entries, checks each against the keys its part's preset has samples for, and saves only a valid project. It composes nothing: every note is the agent's.
  • Finding an instrument. studio.py instruments finds a configured bank's presets by words, General MIDI family or bank, with the keys their samples cover and their velocity ranges.
  • Messages say where, what and the rule, on one line, and every studio.py command has a description and an example.
  • Files made elsewhere are read with care. SoundFont tables are checked against their own counts, AIFF and WAV headers are walked before any sample is read, no link is followed below a bank's folder or inside a render folder, and the render cache checks each take before it uses it.
  • Reviewed and tried. Independent reviews read this version's code before release, in several rounds, and another model made a piece by following SKILL.md's steps from an empty folder; each fix has its own case in the selfcheck, shown to fail when the fix is undone.

Changes that may ask something of an existing piece or spec: a bank spec of your own names its files with a template (a regex pattern is kept only by the skill's own recipes, and the message gives the nearest template); a layer's dynamics, keys and velocity are checked before any recording is read; section and note ids hold no control characters; a part takes at most 8 effects, and its name is text. Renders of existing projects, the skill's own banks and their receipts, and MIDI exports are as 0.7.0 made them.

The changelog has the details.