Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "music-skill",
"displayName": "Music Skill",
"version": "0.9.3",
"version": "0.10.0",
"description": "Write original instrumental music as editable notes: the agent composes and arranges every note, and the skill checks the score, plays it on licensed sampled instruments (pianos, guitars, basses, drums, a full orchestra, saxophones, organ and world instruments), built-in synthesizers or Surge XT presets with player-like timing and dynamics, mixes it through buses and generated reverbs, and masters it with MIDI, stems and an MP3. No audio-generation model is involved.",
"author": {
"name": "owoevan-dev",
Expand Down
2 changes: 1 addition & 1 deletion .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "music-skill",
"version": "0.9.3",
"version": "0.10.0",
"description": "Write original instrumental music as editable notes: the agent composes and arranges every note, and the skill checks the score, plays it on licensed sampled instruments (pianos, guitars, basses, drums, a full orchestra, saxophones, organ and world instruments), built-in synthesizers or Surge XT presets with player-like timing and dynamics, mixes it through buses and generated reverbs, and masters it with MIDI, stems and an MP3. No audio-generation model is involved.",
"author": {
"name": "owoevan-dev",
Expand Down
31 changes: 30 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,40 @@

All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow [Semantic Versioning](https://semver.org/).

## [Unreleased]
## [0.10.0] - 2026-11-27

### Added

- **What a held note does, for every Surge patch.** Three more playings of the catalog's probe note measure whether a patch dies away while the note is held, whether it darkens or brightens on the way, whether its pitch blips at the onset or steps by itself, whether its level, pitch or brightness swings at a rate it repeats, and how much of its power lies away from its harmonics; the words `decays`, `darkens`, `brightens`, `pitch blip`, `pitch steps`, `level swings`, `pitch swings`, `brightness swings` and `inharmonic` join each patch's character (593, 155, 92, 253, 40, 429, 214, 239 and 30 patches of the 2,997 measured; [sound-selection.md](skills/music-production/references/sound-selection.md) gives how many each figure could be read for), and the figures its entry. Nothing the catalog held changes, and the catalog's older words find with `--character` what they found in 0.9.3. `studio.py sounds --without` leaves out patches with any word given, and those not known to lack it: its figure could not be read, or a swing reaches the line with no rate read (`--without "decays,level swings"` for a pad that holds still); `--character` asks for the new words; `sounds --id <id>` gives a patch's figures. Each figure is the median of the playings that read it, two or three (the inharmonic share only where they fall on the same side of its line), and a patch near a line still falls either side of it from one set of playings to the next. One note held 1.2 s cannot tell a swing slower than about one and a half times a second from a lasting change, so such a patch may read as `decays`, `darkens` or `brightens`, or as none ([sound-selection.md](skills/music-production/references/sound-selection.md) says what each figure can and cannot tell).
- **`studio.py start` names any sound a part plays**, as `audition --sounds` writes it: `--part "pad harmony surge:<id>"`, `"lead melody synth:<preset>"`, `"strings harmony soundfont:<bank>:<n>:<program>"`, beside the words that find a SoundFont preset. A Surge or synth part needs no configuration. A name that is no engine's sound, or a SoundFont sound whose bank is not configured, is looked up as the words that find a configured preset, as 0.9.3 looked it up, so every part 0.9.3 took is taken; where neither finds it, it is refused before anything is written, with the nearest names. A sound written in one of the forms plays that engine's sound even where a configured preset bears that name.
- **`review` asks when a sound and its notes disagree:** `sound_attack` where a quarter or more of the spans a part's sound is started in end before it reaches half its level, and `sound_decay` where a part in a sustained role (harmony, texture, pad), for half or more of the time it sounds (each moment once, however many notes sound in it), sounds in spans held past 1.2 s and plays a sound that dies away within that. A span is a note, or a voice as the engine plays it: a mono synth's notes that meet, an arpeggio's chord, a Surge part's notes that overlap with `glide_ms`. A built-in preset is read from its envelope as the part sets it, a Surge patch from the catalog (with `swell`, which sets its attacks, or with macros or `velocity_to_cutoff`, which play it otherwise than at the saved settings the catalog measured, or with its mod wheel (CC1) moved on a patch whose wheel moves anything, as the catalog measured it with the wheel at rest, or on a patch whose envelopes a note's velocity, its key or another source that differs from note to note moves (the catalog's `per_note`, read from each patch's file: 657 of the 3,008 patches, 17 of the 50 curated ones), as it measured one note at velocity 100, neither question is asked; a Surge part's note let go while its sustain pedal is down is held on by Surge to an end review does not know, so it counts for neither), and a Surge part from its fallback where the configuration given does not let Surge XT play it. A decision answers each, as for every question. Read on the 195 Surge and synth parts of the 13 projects the safety net renders and 123 recent project files, `sound_attack` was asked of three, one bass part in three copies of one project, its patch reaching half its level in 0.43 s while most of its notes end sooner; `sound_decay` of none.

- **A later session finds the configuration.** `studio.py round`, `render`, `audition`, `instruments`, `video`, `doctor` and `start` take the file the environment variable `MUSIC_SKILL_CONFIG` names when `--config` is left out, and say so on stderr; the variable must hold an absolute path (a relative one would be read from each command's folder), a `--config` given wins, and `review`, `analyze` and `compare` still use a configuration only when it is named. `setup.md`'s commands write the configuration into `~/.music-skill/`, and after saving it the setup prints a line saying how to record it for later sessions. Step 0 of `SKILL.md` looks in those two places and nowhere else before asking, and after a setup offers to record the configuration in the user's agent instructions or in `MUSIC_SKILL_CONFIG`, with their agreement. `--config`, the variable and the setup's paths read a leading `~/` as the home folder, in PowerShell too. The selfcheck runs its commands without the variable, as it runs without a configuration unless `--config` names one.

### Changed

- **FluidSynth 2.6.3** is the build the setup pins on Windows (it was 2.6.1). It holds the fix for CVE-2026-111123 and for an overflow when playing a crafted MIDI file, and it changes some details of playback (sostenuto, voices ended after the polyphony is reduced, an LFO's direction), so renders differ slightly from 0.9.3's: of the 13 projects the safety net renders, 7 changed, their masters' difference lying 23 to 55 dB under the music (our measurement). A setup made before keeps its FluidSynth until the setup is run again. Run again, it changes the cache key of every part, since each names the FluidSynth build: the next render of a piece synthesizes every part again, and a Surge part comes out with other oscillator phases, though FluidSynth plays no note of it; run it between pieces, not during one whose Surge parts must stay as they are. The check that refuses a SoundFont FluidSynth is not safe with stays, for configurations that name an older FluidSynth, such as a system's. The READMEs name it, and the before-after example gives its figures with it.
- Pull requests to the documents and translations are open. [CONTRIBUTING.md](CONTRIBUTING.md) says what is open for now and how a pull request goes, and a template asks what a pull request changes and how it was checked. A fix in the code starts with an issue.
- The repository's tests: each README must link every other one with a link a reader can follow (inline, reference or HTML, outside code); naming it in plain text passed before.

### Fixed

- `studio.py start` writes the piece's first `song.json` itself, from the skeleton it writes into `compose.py`, instead of running `compose.py` in the piece's folder, where Python imported a module file it found in that folder before the skill's own; the project is the same.
- **A composition script imports nothing from its own folder.** The `compose.py` that `studio.py start` writes takes its folder off Python's import path, as it is and where a link to it leads, before it imports anything, so a file there named as a library (`json.py`, `pathlib.py`) does not run in the library's place. SKILL.md has a script of the agent's own that reads a project from elsewhere kept and run outside that project's folder, the Python files beside a `compose.py` that came with a project listed before it is run, and such a piece rendered with `--cache` naming a new folder, as a cache that came with it can hold any audio.
- `studio.py words` tells a record it finds in the folder as its record has it ("given by the user, its record says"), as one that came with a piece from elsewhere is data, and prints at most 24 words of 60 characters, as `--own` takes them.
- A command whose configuration lies in the folder of the project, piece, render or round it works on (the two renders `compare` takes among them) says so in a WARNING line on stderr: a configuration names the programs that run. The examples in `studio.py`'s help name `~/.music-skill/local-config.json`, where setup.md writes it, not a `config.json` in the working folder.
- The setup runs pip in a new empty folder, not the caller's, and finds system programs (`--system`, and tar or 7-Zip for a FreePats bank) on PATH without the working folder, which Python on Windows searched first before 3.12, unless PATH names it (an empty entry names it, as `which` reads one); the 7-Zip fallback looks in Program Files only where the environment names that folder.
- `studio.py video` reads the render's master as WAV and from a file alone, as every other input it gives FFmpeg.
- The READMEs say that the setup fetches the pedalboard wheel from PyPI's file host (files.pythonhosted.org) itself and has pip install it offline, as SECURITY.md and PRIVACY.md say; they had it coming through pip's package index since 0.4.0. A repository test checks that each README names every host the setup's downloaders may reach.
- **The Surge catalog measures a patch built an octave from its key where a part plays it.** Renders play such a patch (1,175 with a `transpose` of +12, 149 with -12) with its notes moved by an octave, so that the written pitch sounds; the catalog had measured it at the written note, an octave away, so that its brightness, attack, tail, width and held-note words described a sound no part plays (the brightness word was wrong for about half of them). They are measured again where a part plays them: 1,054 of the 1,323 measured have other words, and `sounds` finds, orders and draws its shortlists by the new figures, so the same query can list other patches than in 0.9.3. The counts in [sound-selection.md](skills/music-production/references/sound-selection.md) are the catalog's after the change. Where Surge XT is missing, a catalog bass part that names no fallback of its own plays the built-in `sub_bass` when the patch's centroid is under 120 Hz and `synthwave_bass` otherwise, so on 59 bass patches such a part now falls back to the other one (37 to `sub_bass`, 22 to `synthwave_bass`), and where Surge XT plays them it is synthesized again once, as its take's cache key names the fallback.
- The guides' searches for Surge's electric pianos also give `e-piano` and `electric`, which find the electric pianos those names miss (`glassy_e_piano`, `fm_e_piano_1_3_5`, `fm_e_piano_four_high`, `fm_electric_piano`).
- [electronic-sounds.md](skills/music-production/references/electronic-sounds.md) said a Surge patch in `audition --sounds` "takes the part's Surge settings after it", which read as if a candidate played with the part's glide and the like; it plays without them unless they are written after it, as it now says.
- `setup.md` said `doctor` re-hashes every configured file; it re-hashes FluidSynth, FFmpeg and every bank and checks that Surge XT and pedalboard are where the configuration says, as it now says.
- `setup.md` counts six FreePats banks and thirty-one in all, about 3.6 GB to download, and gives the `band` (1.6 GB) and `examples` (2.2 GB) groups their sizes in the lock; it said five, thirty, 3.5 GB, 1.3 GB and 2.5 GB.
- The Surge catalog holds 3,008 patches and measures 2,997 of them; the other 11 are silent on a plain note, audio-input templates and vocoders among them. `SKILL.md`, [commands.md](skills/music-production/references/commands.md) and [electronic-sounds.md](skills/music-production/references/electronic-sounds.md) had called all 3,008 measured.
- The `audition` command in [sound-selection.md](skills/music-production/references/sound-selection.md) and in `review`'s questions about a built-in preset names the project, `--output` and `--config`; as written it stopped for the missing arguments.
- `audition` refuses a sound whose master still sounds at the end of the longest tail a project takes (15 s), and says what is left to do; the render's advice had asked for more seconds of tail than a project may have.
- `SKILL.md` names the commands whose summaries end with the file and keys of the full figures, and `sounds --help` the words `darkens` and `brightens` and the role `other`.

## [0.9.3] - 2026-11-24

Expand Down
4 changes: 2 additions & 2 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ python skills/music-production/scripts/fetch_soundbanks.py --config <folder>/loc

GPU もアカウントも音声モデルも要りません。ダウンロードはすべて配布元か、このプロジェクト自身のリリースから行い、固定した SHA-256 で照合します。

**実行するもの・取得するもの・送信するもの**:スキルが実行するのは Python スクリプト、FluidSynth、FFmpeg、インストールされていれば Surge XT で、すべてお使いのコンピューター上で動き、レンダリングはオフラインです。スキル自身のダウンローダーがツールと音源を取得するのは github.com と GitHub のダウンロード用ホスト(api.github.com、raw.githubusercontent.com、objects.githubusercontent.com、release-assets.githubusercontent.com)、そして音源を元の録音からビルドするときだけアイオワ大学の theremin.music.uiowa.edu からだけで、ほかのホストへのリダイレクトは拒否します。Python パッケージ(NumPy と、Surge XT 用の pedalboard)は pip を通して取得し、pip に別のパッケージインデックスを設定していなければ PyPI から入ります。その場合も pedalboard の wheel は固定した SHA-256 で照合します。何も送信しません。テレメトリーもアカウントもアップロードもありません([PRIVACY.md](PRIVACY.md))。
**実行するもの・取得するもの・送信するもの**:スキルが実行するのは Python スクリプト、FluidSynth、FFmpeg、インストールされていれば Surge XT で、すべてお使いのコンピューター上で動き、レンダリングはオフラインです。スキル自身のダウンローダーが取得するのは、ツールと音源を github.com と GitHub のダウンロード用ホスト(api.github.com、raw.githubusercontent.com、objects.githubusercontent.com、release-assets.githubusercontent.com)から、Surge XT 用の pedalboard の wheel を PyPI のファイルホスト(files.pythonhosted.org)から、そして音源を元の録音からビルドするときだけアイオワ大学の theremin.music.uiowa.edu からだけで、ほかのホストへのリダイレクトは拒否します。セットアップは pedalboard の wheel を固定したサイズと SHA-256 で照合し、そのファイルを pip にオフラインでインストールさせます。NumPy は pip を通して取得し、pip に別のパッケージインデックスを設定していなければ PyPI から入ります。何も送信しません。テレメトリーもアカウントもアップロードもありません([PRIVACY.md](PRIVACY.md))。

</details>

Expand Down Expand Up @@ -233,7 +233,7 @@ GPU もアカウントも音声モデルも要りません。ダウンロード
<details>
<summary><b>どこまでできるか</b></summary>

`selfcheck.py` には 221 項目のチェック(レンダリング用の設定がなければ 174 項目)があり、MIDI の往復変換やアーカイブの安全性から、実際のレンダリングまで含みます。たとえば、音を一つ直したときに合成し直すのはそのパートだけで、`compare` がその音から先の、影響の届いたファイルにだけ違いを見つけること、旧来の単一リバーブのミックスが以前のリリースをビット単位で再現すること、ラウドネス計測が BS.1770 の基準音を −3.01 LUFS と読むこと。CI では、Ubuntu(FluidSynth 2.3、FFmpeg 6.1)、macOS(FluidSynth 2.6、FFmpeg 9.0)、Windows(固定版の FluidSynth 2.6.1、FFmpeg 9.0.2 と Surge XT)で、レンダリングも含めた全チェックを実行しています。
`selfcheck.py` には 226 項目のチェック(レンダリング用の設定がなければ 179 項目)があり、MIDI の往復変換やアーカイブの安全性から、実際のレンダリングまで含みます。たとえば、音を一つ直したときに合成し直すのはそのパートだけで、`compare` がその音から先の、影響の届いたファイルにだけ違いを見つけること、旧来の単一リバーブのミックスが以前のリリースをビット単位で再現すること、ラウドネス計測が BS.1770 の基準音を −3.01 LUFS と読むこと。CI では、Ubuntu(FluidSynth 2.3、FFmpeg 6.1)、macOS(FluidSynth 2.6、FFmpeg 9.0)、Windows(固定版の FluidSynth 2.6.3、FFmpeg 9.0.2 と Surge XT)で、レンダリングも含めた全チェックを実行しています。

音楽として良いかどうかは別の話で、聴いてみるしかありません。上の曲が、このリポジトリで示せるいちばんの証拠です。

Expand Down
Loading
Loading