Appendix C

Draft JSON melody schema

Draft schema, validation rules, file-size expectations, and a sample file so StarManch can prepare per-song melody data before Alpha.

Schema (draft)

One lead-vocal melody line per song for initial scoring and correction. LRC lyric timing files are not assumed to contain note-level pitch data.

Validation rules (draft)

File-size expectations (draft)

Sample melody file (draft)

{
  "version": 1,
  "a4Hz": 440,
  "notes": [
    { "midi": 60, "startMs": 0, "durationMs": 500 },
    { "midi": 62, "startMs": 500, "durationMs": 500 },
    { "midi": 64, "startMs": 1000, "durationMs": 1000 },
    { "midi": 65, "startMs": 2000, "durationMs": 750 },
    { "midi": 67, "startMs": 2750, "durationMs": 1250 }
  ]
}