1
1
mirror of https://github.com/wader/fq.git synced 2024-11-29 04:10:01 +03:00
fq/format/midi/testdata/format-2.fqtest
twystd 9c7f7f961a midi: fixes for PR comments:
- Renamed 'tracks' section to 'content' (cf. https://github.com/wader/fq/pull/1004#discussion_r1746651234)
- Removed 'validation only' errors (cf. https://github.com/wader/fq/pull/1004#issuecomment-2333464662)
- Decoded MThd divisions field with SMPTE timecode
2024-09-06 15:41:57 -07:00

49 lines
4.8 KiB
Plaintext

$ fq -d midi dv midi/format-2.mid
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: midi/format-2.mid (midi) 0x0-0x43 (67)
| | | header{}: 0x0-0xe (14)
0x00|4d 54 68 64 |MThd | tag: "MThd" 0x0-0x4 (4)
0x00| 00 00 00 06 | .... | length: 6 0x4-0x8 (4)
0x00| 00 02 | .. | format: 2 0x8-0xa (2)
0x00| 00 02 | .. | tracks: 2 0xa-0xc (2)
| | | division{}: 0xc-0xe (2)
0x00| 01 e0 | .. | ppqn: 480 0xc-0xe (2)
| | | content[0:2]: 0xe-0x43 (53)
| | | [0]{}: track 0xe-0x28 (26)
0x00| 4d 54| MT| tag: "MTrk" 0xe-0x12 (4)
0x10|72 6b |rk |
0x10| 00 00 00 12 | .... | length: 18 0x12-0x16 (4)
| | | events[0:2]: 0x16-0x28 (18)
| | | [0]{}: meta_event 0x16-0x24 (14)
| | | time{}: 0x16-0x17 (1)
0x10| 00 | . | delta: 0 0x16-0x17 (1)
| | | tick: 0
0x10| ff | . | status: 255 0x17-0x18 (1)
0x10| 03 | . | event: "track_name" (3) 0x18-0x19 (1)
0x10| 0a 4c 65 66 74 20 54| .Left T| track_name: "Left Track" 0x19-0x24 (11)
0x20|72 61 63 6b |rack |
| | | [1]{}: meta_event 0x24-0x28 (4)
| | | time{}: 0x24-0x25 (1)
0x20| 00 | . | delta: 0 0x24-0x25 (1)
| | | tick: 0
0x20| ff | . | status: 255 0x25-0x26 (1)
0x20| 2f | / | event: "end_of_track" (47) 0x26-0x27 (1)
0x20| 00 | . | length: 0 0x27-0x28 (1)
| | | [1]{}: track 0x28-0x43 (27)
0x20| 4d 54 72 6b | MTrk | tag: "MTrk" 0x28-0x2c (4)
0x20| 00 00 00 13| ....| length: 19 0x2c-0x30 (4)
| | | events[0:2]: 0x30-0x43 (19)
| | | [0]{}: meta_event 0x30-0x3f (15)
| | | time{}: 0x30-0x31 (1)
0x30|00 |. | delta: 0 0x30-0x31 (1)
| | | tick: 0
0x30| ff | . | status: 255 0x31-0x32 (1)
0x30| 03 | . | event: "track_name" (3) 0x32-0x33 (1)
0x30| 0b 52 69 67 68 74 20 54 72 61 63 6b | .Right Track | track_name: "Right Track" 0x33-0x3f (12)
| | | [1]{}: meta_event 0x3f-0x43 (4)
| | | time{}: 0x3f-0x40 (1)
0x30| 00| .| delta: 0 0x3f-0x40 (1)
| | | tick: 0
0x40|ff |. | status: 255 0x40-0x41 (1)
0x40| 2f | / | event: "end_of_track" (47) 0x41-0x42 (1)
0x40| 00| | .| | length: 0 0x42-0x43 (1)