feat: version song analysis contract and preserve lyric lines
This commit is contained in:
1
schemas/song-analysis-v2/beats.schema.json
Normal file
1
schemas/song-analysis-v2/beats.schema.json
Normal file
@ -0,0 +1 @@
|
||||
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Beat times v2","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-v2/chords.schema.json
Normal file
1
schemas/song-analysis-v2/chords.schema.json
Normal file
@ -0,0 +1 @@
|
||||
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Chord spans v2","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-v2/lyrics.schema.json
Normal file
1
schemas/song-analysis-v2/lyrics.schema.json
Normal file
@ -0,0 +1 @@
|
||||
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Aligned lyrics v2","type":"object","required":["verified","lines"],"properties":{"verified":{"type":"boolean"},"lines":{"type":"array","items":{"type":"object","required":["start","end","words"],"properties":{"start":{"type":["number","null"],"minimum":0},"end":{"type":["number","null"],"minimum":0},"source_line":{"type":"integer","minimum":1},"section":{"type":["string","null"]},"alignment_conf":{"type":["number","null"],"minimum":0,"maximum":1},"words":{"type":"array","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-v2/meta.schema.json
Normal file
1
schemas/song-analysis-v2/meta.schema.json
Normal file
@ -0,0 +1 @@
|
||||
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Song analysis meta v2","type":"object","required":["title","bpm","bpm_source","key","duration","source_offset_s","schema_version","errors"],"properties":{"title":{"type":"string"},"bpm":{"type":["number","null"],"exclusiveMinimum":0},"bpm_source":{"enum":["automatic","manual"]},"key":{"type":["string","null"]},"duration":{"type":"number","minimum":0},"source_offset_s":{"const":0.0},"schema_version":{"const":2},"errors":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false}
|
||||
1
schemas/song-analysis-v2/pitch.schema.json
Normal file
1
schemas/song-analysis-v2/pitch.schema.json
Normal file
@ -0,0 +1 @@
|
||||
{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Pitch curve v2","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