A simple code how to parse midi file in zig. This particular repo is for experimental purpose only, so PLEASE DO NOT USE THIS IN PRODUCTION.
|
Logickin-Lambda
e63e10521a
Midi File Encoding Is Done!
The encoding seems easier than the decoding process since it is basically just a process putting all the events slices back to a file in sequence, as long as the track size is properly calculated and assigned, along with the headers, the midi file will be correctly exported. I am going to skip the midi editing part for now since it is a bit challenging due to some fine calculation in delta, for insertion and deletation, while the use case for direct midi file edit seems rare since most of the application have parsed the midi file into their own format and editor, instead of editing the file directly. This exercise project is basically complete since the main objective, loading and saving midi files, is completed. |
||
|---|---|---|
| src | Midi File Encoding Is Done! | |
| .gitignore | Set Up Checkpoints | |
| build.zig | Set Up Checkpoints | |
| build.zig.zon | Set Up Checkpoints | |