# Third-Party Audio Notices

This file documents the provenance of the **audio content** (instrument voices /
sounds) shipped with Studio4All, as required by plan §2.H. For the
software components (Tone.js, VexFlow, the transcription engine, etc.) see
`THIRD_PARTY_NOTICES.md`.

## Recorded instrument library

Studio4All includes 231 recorded MP3 samples (44.4 MiB), selected from
[N. P. Brosowsky's tonejs-instruments](https://github.com/nbrosowsky/tonejs-instruments)
at revision `622c2f1c32c8cfce4158ddc3eb26e518ddef37e5`.
The sample collection is distributed under **CC BY 3.0**; its loader code is MIT.
The full sample license is in `LICENSES/instrument-samples-CC-BY-3.0.txt`.
Per-file source URLs, hashes and sizes are in `assets/instruments/provenance.json`.
The upstream musician/source credits are preserved verbatim in
`assets/instruments/sample-source-info.txt`.

| Studio instrument                                           | Credited original source                                        | Adaptation                                                                 |
| ----------------------------------------------------------- | --------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Piano, violin, flute, French horn, trombone, trumpet, organ | Versilian Studios / VSCO Community (upstream abbreviation VSO2) | Selected MP3 files; piano uses every third recorded pitch                  |
| Cello                                                       | Freesound user flcellogrl, real-cello-notes                     | Selected upstream MP3 files                                                |
| Acoustic guitar                                             | University of Iowa Musical Instrument Samples                   | Selected upstream MP3 files                                                |
| Electric bass and saxophone                                 | Karoryfer Samples                                               | Selected upstream MP3 files; alto and tenor share the saxophone sample set |

The original MP3 bytes are unchanged. The player transposes the nearest recorded
note between sample pitches and applies gain/envelopes. These are compact,
single-layer previews, not a complete multi-articulation orchestral library.
Twelve catalog choices use recordings. The other seven clearly say
"Synthesized preview". Source sites: https://www.karoryfer.com/karoryfer-samples,
https://versilian-studios.com/vsco-community/, https://freesound.org,
https://theremin.music.uiowa.edu/.

Desktop playback uses packaged files offline. The web build serves these same
files from its own origin on demand. Recordings are never uploaded for playback,
transcription, or separation. Maintainer asset downloads happen at build time.

## Fallback voices (original synthesis)

The following original synthesis recipes remain available for unmapped instruments
and as a visible fallback if a recorded instrument cannot load. Tone.js is MIT.

| Voice            | Preset id           | Source                                                           | License / provenance                                               |
| ---------------- | ------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------ |
| Grand Piano      | `pianoLike`         | Original synthesis — additive harmonics + decaying envelope      | Original work created for Studio4All (MIT); no third-party samples |
| Electric Piano   | `electricPianoLike` | Original synthesis — FM (sine carrier/modulator)                 | Original work created for Studio4All (MIT); no third-party samples |
| Organ            | `organ`             | Original synthesis — fixed drawbar harmonics, sustained          | Original work created for Studio4All (MIT); no third-party samples |
| Strings          | `strings`           | Original synthesis — detuned sawtooth ensemble                   | Original work created for Studio4All (MIT); no third-party samples |
| Guitar (plucked) | `guitarLike`        | Original synthesis — plucked harmonics + fast decay              | Original work created for Studio4All (MIT); no third-party samples |
| Bass             | `basicBass`         | Original synthesis — square wave, tight envelope                 | Original work created for Studio4All (MIT); no third-party samples |
| Soft Synth       | `softSynth`         | Original synthesis — detuned triangle pad/lead                   | Original work created for Studio4All (MIT); no third-party samples |
| Drum Kit (basic) | `drumKit`           | Original synthesis — percussive pitched voice (not a sample kit) | Original work created for Studio4All (MIT); no third-party samples |

The drum kit is a **basic synthesized percussive voice** (pitched drums/toms),
not a sampled acoustic kit. Its recipes live alongside the others in
`src/features/playback/presets.ts`.

## Loop library (plan §2.I)

The bundled loop library (`src/features/loops/builtinLoops.ts`) is **original
MIDI content composed for this project** — never derived from Apple Loops or any
commercial loop library. Each loop stores inline note data plus provenance
metadata (`creator`, `license`, `source`) and a content fingerprint (`hash`).
Because the loops are MIDI (not audio), they carry no third-party audio
obligation and adapt to the project tempo automatically.

| Loop                         | id                       | Category | Source                                                 |
| ---------------------------- | ------------------------ | -------- | ------------------------------------------------------ |
| Basic Rock Beat              | `drums-rock`             | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Half-Time Groove             | `drums-halftime`         | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Root-Fifth Groove            | `bass-root-fifth`        | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Walking Bass in A            | `bass-walking-a`         | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Pop Progression (C–G–Am–F)   | `chords-pop`             | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Minor Ballad (Am–F–C–G)      | `chords-minor-ballad`    | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Simple C Melody              | `melody-simple-c`        | Melody   | Original MIDI composed for Studio4All (no third-party) |
| A Minor Pentatonic Lick      | `melody-pentatonic-a`    | Melody   | Original MIDI composed for Studio4All (no third-party) |
| Pop Beat                     | `drums-pop`              | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Funk Groove                  | `drums-funk`             | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Electronic Four-on-the-Floor | `drums-electronic`       | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Soft Ballad Beat             | `drums-ballad`           | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Bossa Nova                   | `drums-bossa`            | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Jazz Ride Pattern            | `drums-jazz`             | Drums    | Original MIDI composed for Studio4All (no third-party) |
| R&B / Soul Groove            | `drums-rb`               | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Rock Eighth-Note Bass        | `bass-rock-eighths`      | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Funk Syncopated Bass         | `bass-funk-syncopated`   | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Electronic Pulse Bass        | `bass-electronic-pulse`  | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Jazz Walking Bass in C       | `bass-jazz-walking-c`    | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Latin Tumbao Bass            | `bass-latin-tumbao`      | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Jazz ii–V–I in C             | `chords-jazz-ii-v-i`     | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Electronic Stab (Am)         | `chords-electronic-stab` | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Sustained Ballad Chords (F)  | `chords-ballad-sustain`  | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Funk Rhythm Chops (Em)       | `chords-funk-rhythm`     | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Open Voicing Pad (D)         | `chords-worship-pad`     | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Pop Hook in G                | `melody-pop-hook`        | Melody   | Original MIDI composed for Studio4All (no third-party) |
| Electronic Arpeggio (Am)     | `melody-electronic-arp`  | Melody   | Original MIDI composed for Studio4All (no third-party) |
| Bebop Lick in C              | `melody-jazz-lick`       | Melody   | Original MIDI composed for Studio4All (no third-party) |
| Classical Motif in C         | `melody-classical-motif` | Melody   | Original MIDI composed for Studio4All (no third-party) |
| Montuno Pattern (Cm)         | `melody-latin-montuno`   | Melody   | Original MIDI composed for Studio4All (no third-party) |
| Trap Beat                    | `drums-trap`             | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Reggaeton Dembow             | `drums-reggaeton`        | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Country Train Beat           | `drums-country`          | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Disco Four-on-Floor          | `drums-disco`            | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Hip-Hop Boom Bap             | `drums-hiphop`           | Drums    | Original MIDI composed for Studio4All (no third-party) |
| Reggae Bass Drop             | `bass-reggae`            | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Country Bass Boom-Chick      | `bass-country`           | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Blues Walking Bass           | `bass-blues-walking`     | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Trap 808 Bass                | `bass-trap-808`          | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Disco Octave Bass            | `bass-disco-octave`      | Bass     | Original MIDI composed for Studio4All (no third-party) |
| Blues 12-Bar Riff            | `chords-blues-12bar`     | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Reggae Skank Chords          | `chords-reggae-skank`    | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Country Boom-Chick Chords    | `chords-country-boom`    | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Disco Chord Stabs            | `chords-disco-stab`      | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Hip-Hop Keys                 | `chords-hiphop-keys`     | Chords   | Original MIDI composed for Studio4All (no third-party) |
| Blues Lick                   | `melody-blues-lick`      | Melody   | Original MIDI composed for Studio4All (no third-party) |
| Country Fill                 | `melody-country-fill`    | Melody   | Original MIDI composed for Studio4All (no third-party) |
| Reggae Bubble                | `melody-reggae-bubble`   | Melody   | Original MIDI composed for Studio4All (no third-party) |
| Disco String Hook            | `melody-disco-string`    | Melody   | Original MIDI composed for Studio4All (no third-party) |
| Hip-Hop Hook                 | `melody-hiphop-hook`     | Melody   | Original MIDI composed for Studio4All (no third-party) |

**No audio loops are bundled yet.** The loop schema supports audio loops
(`kind: 'audio'` + an asset id), but adding them requires original / CC0 /
public-domain recordings (see the policy below) and — for any tempo/key
adaptation claim — real time-stretch / pitch-shift (Phase 3 Flex), which does
not exist yet. Until then the loop browser says plainly that only MIDI loops are
available.

## Lesson content (plan §4.B)

The bundled interactive lessons (`src/features/lessons/builtinLessons.ts`) are
**original exercises or public-domain music** — never third-party licensed
content without an explicit attribution (enforced by
`src/features/lessons/builtinLessons.test.ts`). Like the loops, lessons are
tick-based MIDI/notation (no third-party audio recording), so they carry no
audio obligation. Each lesson stores a `license` (`original` / `public-domain`),
and any non-original lesson carries an `attribution`.

| Lesson                            | id                       | License       | Source                                                     |
| --------------------------------- | ------------------------ | ------------- | ---------------------------------------------------------- |
| C Major Scale — Right Hand        | `c-major-scale-rh`       | Original      | Original exercise composed for Studio4All (no third-party) |
| Steady Quarter Notes — Rhythm     | `steady-quarter-rhythm`  | Original      | Original exercise composed for Studio4All (no third-party) |
| C Major Arpeggio — Hands Together | `c-major-arpeggio-hands` | Original      | Original exercise composed for Studio4All (no third-party) |
| Ode to Joy — Theme                | `ode-to-joy-theme`       | Public domain | Beethoven, Symphony No. 9, Op. 125 (1824); public domain   |

## Recorded audio (user content, not shipped)

Audio that the user records or imports (microphone/instrument recordings, imported
`.wav`/`.mp3`/`.flac`/`.ogg`/`.m4a` files) is **user content**, managed under the
user-data directory and never redistributed with the app. It carries no
third-party obligation for the project; users are responsible for the rights to
material they record or import.

## Policy for any future bundled audio

If bundled audio is ever added (for example a loop library — plan §2.I), it MUST
be **original recordings, CC0 / public domain, or permissively licensed with
attribution**, and each asset MUST be listed here with its source, license, and
attribution (full license text under `LICENSES/`). Commercial sample libraries
are not permitted, and nothing may be fetched at runtime (the app is fully
offline — see `docs/SECURITY.md`).
