Song-Analyse: eigenständiges Werkzeug und Lese-Schnittstelle in Rust
- tools/analyze + tools/song_analysis: Trennung in Stems, Takte, Akkorde, Tonhöhe und Text mit Wortzeiten (eigene Python-3.11-Umgebung, README, Tests) - schemas/song-analysis-v1: JSON-Schemas der Ausgabe - src/lib.rs, src/song_analysis.rs: liest die Ausgabe (Version 1); Integrationstest in tests/ - .gitignore: Umgebung, Modelle und Zwischenspeicher des Werkzeugs Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1
schemas/song-analysis-v1/beats.schema.json
Normal file
1
schemas/song-analysis-v1/beats.schema.json
Normal file
@ -0,0 +1 @@
|
||||
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Beat times v1","type":"object","required":["beats","downbeats"],"properties":{"beats":{"type":"array","items":{"type":"number","minimum":0}},"downbeats":{"type":"array","items":{"type":"number","minimum":0}}},"additionalProperties":false}
|
||||
1
schemas/song-analysis-v1/chords.schema.json
Normal file
1
schemas/song-analysis-v1/chords.schema.json
Normal file
@ -0,0 +1 @@
|
||||
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Chord spans v1","type":"array","items":{"type":"object","required":["chord","start","end","conf"],"properties":{"chord":{"type":"string","minLength":1},"start":{"type":"number","minimum":0},"end":{"type":"number","minimum":0},"conf":{"type":["number","null"],"minimum":0,"maximum":1}},"additionalProperties":false}}
|
||||
1
schemas/song-analysis-v1/lyrics.schema.json
Normal file
1
schemas/song-analysis-v1/lyrics.schema.json
Normal file
@ -0,0 +1 @@
|
||||
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Aligned lyrics v1","type":"object","required":["verified","lines"],"properties":{"verified":{"type":"boolean"},"lines":{"type":"array","items":{"type":"object","required":["start","end","words"],"properties":{"start":{"type":"number","minimum":0},"end":{"type":"number","minimum":0},"words":{"type":"array","minItems":1,"items":{"type":"object","required":["w","start","end","conf"],"properties":{"w":{"type":"string","minLength":1},"start":{"type":"number","minimum":0},"end":{"type":"number","minimum":0},"conf":{"type":["number","null"],"minimum":0,"maximum":1}},"additionalProperties":false}}},"additionalProperties":false}}},"additionalProperties":false}
|
||||
1
schemas/song-analysis-v1/meta.schema.json
Normal file
1
schemas/song-analysis-v1/meta.schema.json
Normal file
@ -0,0 +1 @@
|
||||
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Song analysis meta v1","type":"object","required":["title","bpm","key","duration","schema_version","errors"],"properties":{"title":{"type":"string"},"bpm":{"type":["number","null"],"exclusiveMinimum":0},"key":{"type":["string","null"]},"duration":{"type":"number","minimum":0},"schema_version":{"const":1},"errors":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false}
|
||||
1
schemas/song-analysis-v1/pitch.schema.json
Normal file
1
schemas/song-analysis-v1/pitch.schema.json
Normal file
@ -0,0 +1 @@
|
||||
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Pitch curve v1","type":"object","required":["hop_ms","hz","conf"],"properties":{"hop_ms":{"const":10},"hz":{"type":"array","items":{"type":"number","minimum":0}},"conf":{"type":"array","items":{"type":"number","minimum":0,"maximum":1}}},"additionalProperties":false}
|
||||
Reference in New Issue
Block a user