# Instrument sources and licences

## Piano — VSCO 2 Community Edition Upright Piano

- Author/performer: Simon Dalzell, Ivy Audio (Winter 2015–16). Distributed by Versilian Studios LLC / Sam Gossner.
- Licence: **CC0 1.0 Universal**. [Source licence](https://github.com/sgossner/VSCO-2-CE/blob/440300901dfe9275fd84e0b7763af1f8443ae62e/LICENSE), [licence terms](https://creativecommons.org/publicdomain/zero/1.0/).
- Source and author notice: https://github.com/sgossner/VSCO-2-CE/tree/440300901dfe9275fd84e0b7763af1f8443ae62e/Keys/Upright%20Piano (Info.txt and MappingChart.txt).
- Files: `piano/midi53.bdae74b2.mp3`, `midi57.02d1b86c.mp3`, `midi61.89cbffc2.mp3`, `midi65.06b75df5.mp3`, `midi69.71167aee.mp3`, `midi73.30dd3bbb.mp3`, `midi77.fa4d0b23.mp3`, `midi81.8a10830f.mp3`, `midi85.b6594802.mp3` (all in piano/).
- Originals: `Player_dyn1_rr1_016.wav` through `_032.wav`, even-numbered files. Mapping: MIDI = 21 + 2 × filename index. Nine notes every four semitones.
- Changes: downmixed to mono, leading silence trimmed to 2 ms before attack, shortened to 2.4 s with 250 ms fade, decoded MP3 peak normalized to −3 dBFS (±0.05 dB), 44.1 kHz / 128 kbps MP3. LAME/Xing gapless metadata retains encoder-delay/padding trim for decoding. Filenames use the first eight SHA-256 hex digits of the delivered bytes. 353,979 bytes total.
- Reproduce: `node scripts/prepare-instrument-samples.mjs <local-ffmpeg-executable>`. Source revision pinned above. Replace manifest and hashed names together when changing samples.

## Synthesized voices

All other instrument sounds are generated by this project's Web Audio oscillator/noise/modal synthesis; no third-party recordings or sample licence applies. Piano also has a synthesized fallback. These are approximations, not recordings of traditional instruments.

## One-touch melodies

`src/data/rt-melodies.json` contains original note-only transcriptions for therapist review, not copied recordings, lyrics or modern arrangements. Both are marked `reviewed: true` (approved for release by the service lead, 2026-11-11). A melody set back to `reviewed: false` appears only with `?pratinjau=1`.

- Burung Kakatua — traditional Maluku melody. Source context: [Indonesian Ministry of Education, Indonesia Negeriku](https://pkplk.kemendikdasmen.go.id/bukudigital/upload/modules/pdf/Buku_2021_02_TN_SW_Indonesia-negeriku.pdf). Traditional/public domain tune; no modern composer arrangement used.
- Amazing Grace / New Britain — traditional melody published in William Walker's Southern Harmony (1835), public domain. Historical source: [Library of Congress annual report 2007](https://www.loc.gov/static/portals/about/reports-and-budgets/documents/annual-reports/fy2007.pdf). No lyrics or modern harmonization included.
