feat(example): add synthetic demo song package and test suite

This commit is contained in:
2026-11-02 11:34:17 +01:00
parent 44311d007f
commit a6dd0a649a
13 changed files with 287 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{
"schema_version": "1.0",
"generated_by": null,
"chords": [
{
"start_beat": 0.0,
"end_beat": 4.0,
"label": "Am",
"root": "A",
"quality": "min",
"bass": "A",
"confidence": 0.9,
"source": "auto"
},
{
"start_beat": 4.0,
"end_beat": 6.0,
"label": "C",
"root": "C",
"quality": "maj",
"bass": "C",
"confidence": 0.88,
"source": "auto"
}
]
}

View File

@ -0,0 +1,53 @@
{
"schema_version": "1.0",
"generated_by": null,
"title": "Demo Song",
"artist": "Synthetic Artist",
"language": "en",
"duration_sec": 3.0,
"source_file": {
"path": "examples/demo_song/stems/vocals.wav",
"sha256": "0000000000000000000000000000000000000000000000000000000000000000",
"size_bytes": 529200
},
"key": "Am",
"capo": 0,
"models_used": [
{
"stage": "s2_stems",
"name": "htdemucs",
"version": "v4"
},
{
"stage": "s3_lyrics",
"name": "faster-whisper",
"version": "large-v3"
},
{
"stage": "s4_pitch",
"name": "torchcrepe",
"version": "tiny"
},
{
"stage": "s5_tempo",
"name": "beat-this",
"version": "final0"
},
{
"stage": "s6_chords",
"name": "chord-extractor",
"version": "0.2"
}
],
"created_at": "2026-11-02T12:00:00Z",
"stages_done": [
"s1_extract",
"s2_stems",
"s3_lyrics",
"s4_pitch",
"s5_tempo",
"s6_chords",
"s7_strumming"
],
"stages_failed": {}
}

View File

@ -0,0 +1,10 @@
#TITLE:Demo Song
#ARTIST:Synthetic Artist
#MP3:stems/vocals.wav
#BPM:480.00
#GAP:500
#LANGUAGE:en
: 0 4 -3 Hel
: 4 4 -3 lo
: 8 8 0 world
E

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,42 @@
{
"schema_version": "1.0",
"generated_by": null,
"events": [
{
"beat": 0.0,
"direction": "down",
"strength": 0.9,
"confidence": 0.85,
"source": "auto"
},
{
"beat": 0.5,
"direction": "up",
"strength": 0.7,
"confidence": 0.8,
"source": "auto"
},
{
"beat": 1.0,
"direction": "down",
"strength": 0.85,
"confidence": 0.85,
"source": "auto"
},
{
"beat": 1.5,
"direction": "up",
"strength": 0.75,
"confidence": 0.82,
"source": "auto"
}
],
"patterns": [
{
"start_beat": 0.0,
"end_beat": 4.0,
"pattern": "D U D U",
"grid": "8th"
}
]
}

View File

@ -0,0 +1,16 @@
{
"schema_version": "1.0",
"generated_by": null,
"anchors": [
{
"sec": 0.0,
"beat": 0.0,
"bpm": 120.0
}
],
"time_signature": {
"numerator": 4,
"denominator": 4
},
"downbeat_offset": 0
}

View File

@ -0,0 +1,39 @@
{
"schema_version": "1.0",
"generated_by": null,
"lines": [
{
"start": 0.5,
"end": 2.5,
"syllables": [
{
"text": "Hel",
"start": 0.5,
"end": 1.0,
"midi": 57.0,
"golden": false,
"confidence": 0.95,
"source": "auto"
},
{
"text": "lo ",
"start": 1.0,
"end": 1.5,
"midi": 57.0,
"golden": false,
"confidence": 0.92,
"source": "auto"
},
{
"text": "world",
"start": 1.5,
"end": 2.5,
"midi": 60.0,
"golden": false,
"confidence": 0.98,
"source": "auto"
}
]
}
]
}