diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-09-26 18:49:52 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-09-26 18:49:52 +0300 |
commit | f483419ce298607b2d971292b79fff44b5969609 (patch) | |
tree | 1854bacaae42f7f215d21c58fb880051fbeef92b /spec/midi.fspec | |
parent | 904e0c52359e0051112b77b6da4232abc8b53ed4 (diff) |
add some other spec files
Diffstat (limited to 'spec/midi.fspec')
-rw-r--r-- | spec/midi.fspec | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/midi.fspec b/spec/midi.fspec new file mode 100644 index 0000000..2c46944 --- /dev/null +++ b/spec/midi.fspec @@ -0,0 +1,14 @@ +struct midi_track { + u8 type[4] | matches('MTrk') str; + u32 length; + u8 data[length]; +}; + +struct midi { + u8 type[4] | matches('MThd') str; + u32 length | matches(6); + u16 format; + u16 track_count; + u16 division; + struct midi_track tracks[track_count]; +}; |