# Piano acoustique — attribution et licence

**Salamander Grand Piano v3**, recordings by **Alexander Holm**, Yamaha C5.
Licensed under **Creative Commons Attribution 3.0 Unported (CC BY 3.0)**.
Redistribution and adaptation are permitted with attribution and this license notice.
These audio derivatives remain under CC BY 3.0, independently of the application code.

- Original collection: https://archive.org/details/SalamanderGrandPianoV3
- Source repository: https://github.com/sfzinstruments/SalamanderGrandPiano
- Pinned source revision: `3382bf9496bba2486f5ab0de55a264d1dfc38404`
- Upstream license checked: https://github.com/sfzinstruments/SalamanderGrandPiano/blob/3382bf9496bba2486f5ab0de55a264d1dfc38404/LICENSE
- License: https://creativecommons.org/licenses/by/3.0/
- Complete license text: [LICENSE-CC-BY-3.0.txt](LICENSE-CC-BY-3.0.txt)

## Local adaptations

Eleven velocity-8 recordings: C2, F♯2, C3, F♯3, C4, F♯4, C5, F♯5,
C6, F♯6, C7 (MIDI 36–96). Converted from stereo 48 kHz FLAC to mono
44.1 kHz MP3 at 80 kbps. Each recording is trimmed using the upstream
velocity-8 attack offset, retuned by resampling its measured fundamental
to equal temperament (A4 = 440 Hz), peak-normalized to 0.8, and truncated
to six seconds with an 80 ms final fade. No release-noise, pedal, resonance,
SFZ mappings or external sample player is included.

Total MP3 size: **667,128 bytes** (about 652 KiB / 0.667 MB).
One or two source recordings per octave; intermediate notes use playback-rate
transposition by at most three semitones. The endpoint C7 covers the upper bound.
The samples are deliberately stored in this repository for offline playback.

The upstream SFZ reconstruction and velocity-dependent attack offsets are by
**kinwie**, incorporating adjustable sample starts from **Jeff Learman**.
Our conversion uses only those attack offsets, not the SFZ player or its tuning map.

## Reproduction (development only)

Install Python 3, numpy and ffmpeg with libmp3lame on a development machine:

```sh
python3 tools/prepare-piano.py --work-dir /tmp/solfege-piano-original
```

Use `--ffmpeg /path/to/ffmpeg` if needed. Original FLACs stay outside the repository.
`manifest.json` records source hashes, trimming, measured pitch corrections,
post-encoding fundamental errors, output sizes and SHA-256 hashes.
MP3 bytes may vary between encoder versions; these assets used ffmpeg 7.0.2.
The root-recording errors are below 0.13 cents; an independent resampling check
across all 61 notes measured at most 3.10 cents, using a 4-cent test tolerance.
The measurements concern the settled fundamental; an acoustic piano naturally
has inharmonic partials and small tuning variations during note decay.
