1
1
mirror of https://github.com/wader/fq.git synced 2024-12-01 19:12:34 +03:00
Commit Graph

6 Commits

Author SHA1 Message Date
twystd
a7d0cde9f6 midi: cleaned up and simplied event decoding logic
- delineated NoteOn and NoteOff events
- simplified MIDI event decoding with function map
- decoded MIDI event and channel as nibbles
- reworked system exclusive event decoding
- fixed peekEvent to correctly decode end of file events
2024-09-01 16:41:38 -07:00
twystd
578b7e78e3 midi: restructured event decoding to decode length and struct fields (cf. https://github.com/wader/fq/pull/1004#discussion_r1737105173)
- restructured and simplified metaevent decoding
- restructured and simplified  MIDI event decoding
- added sample events for remaining metaevents
- moved MIDI test and sample files to testdata/midi
- fixed fuzzing fail 8450de010e750ed5
2024-09-01 16:41:26 -07:00
twystd
e940f4766f midi: reworked metaevent decoding for PR comments
- fixed remaining snake-cased event names in tests and examples (cf. https://github.com/wader/fq/pull/1004#discussion_r1737054466)
- report 'status' and 'event' seperately (cf. https://github.com/wader/fq/pull/1004#discussion_r1737085013)
- decoded TimeSignature metaevent as length + byte fields (cf. https://github.com/wader/fq/pull/1004#discussion_r1737105173)
- decoded SequencerSpecificEvent metaevent as length + byte fields (cf. https://github.com/wader/fq/pull/1004#discussion_r1737111253)
- reworked Errorf's as Fatalf's for data reads (cf. https://github.com/wader/fq/pull/1004#discussion_r1737123374)
2024-09-01 16:40:22 -07:00
twystd
7950dd651f midi: added midi to the TestFormats all.fqtest list (cf. https://github.com/wader/fq/pull/1004#issuecomment-2314599567) 2024-08-28 14:39:45 -07:00
twystd
f424936faa midi: fixed lint warning (cf. https://github.com/wader/fq/pull/1004#discussion_r1734668130) 2024-08-28 14:15:53 -07:00
twystd
b5f2bdabc9 midi: added localised Makefile (cf. https://github.com/wader/fq/pull/1004#discussion_r1732745303) 2024-08-28 14:01:22 -07:00