mirror of
https://github.com/wader/fq.git
synced 2024-12-01 19:12:34 +03:00
a7d0cde9f6
- 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
4.3 KiB
4.3 KiB
NOTES
MIDI files
The test and example MIDI files are located in the testdata/midi folder.
-
format-0.mid MIDI format 0 reference file. Contains a single track with all supported MIDI events.
-
format-1.mid MIDI format 1 reference file. Contains two tracks:
- Track 0, a tempo track with the Time Signature and Tempo events
- Track 1, with all the other supported MIDI events
- format-2.mid MIDI format 2 reference file. Contains two tracks:
- Track 0, a track with all supported MIDI events
- Track 1, a reversed version of Track 0
-
empty.mid Empty MIDI file to verify MIDI decoder handles empty files.
-
unknown_chunks.mid
MIDI file with non-MIDI chunks interleaved between the MTrk track chunks.
- key_signatures.mid
Test file with all supported MIDI key signatures.
- notes.mid
Test file with all supported MIDI notes.
- twinkle.mid
Sample MIDI file for the example queries in the help.
MIDI event files
MIDI files with a single event for development and debugging are located in the testdata/events folder.
Meta events
- sequence-number.mid
00 ff 00 02 00 17
delta: 0
sequence number: 23
- text.mid
00 ff 01 0d 54 68 69 73 20 61 6e 64 20 54 68 61 74
delta: 0
text: This and That
- copyright.mid
00 ff 02 04 54 68 65 6d
delta: 0
copyright: Them
- track_name.mid
00 ff 03 0f 41 63 6f 75 73 74 69 63 20 47 75 69 74 61 72
delta: 0
track name: Acoustic Guitar
- instrument_name.mid
00 ff 04 0a 44 69 64 67 65 72 69 64 6f 6f
delta: 0
instrument: Didgeridoo
- lyric.mid
00 ff 05 08 4c 61 2d 6c 61 2d 6c 61
delta: 0
lyric: La-la-la
- marker.mid
00 ff 06 0f 48 65 72 65 20 42 65 20 44 72 61 67 6f 6e 73
delta: 0
marker: Here Be Dragons
- cuepoint.mid
00 ff 07 0c 4d 6f 72 65 20 63 6f 77 62 65 6c 6c
delta: 0
cue: More cowbell
- program_name.mid
00 ff 08 06 45 73 63 61 70 65
delta: 0
program: Escape
- device_name.mid
00 ff 09 08 54 68 65 54 68 69 6e 67
delta: 00
device: TheThing
- midi-channel-prefix.mid
00 ff 20 01 0d
delta: 00
MIDI channel prefix: 13
- midi-port.mid
00 ff 21 01 70
delta: 00
MIDI port: 112
- tempo.mid
00 ff 51 03 07 a1 20
delta: 0
tempo: 500000
- smpte-offset.mid
00 ff 54 05 4d 2d 3b 07 27
delta: 0
framerate: 25
hour: 13
minute: 45
second: 59
frames: 7
fractions: 39
- time-signature.mid
00 ff 58 04 04 02 18 08
delta: 0
numerator: 4
denominator: 4
ticks_per_click: 24
thirty_seconds_per_quarter: 8
- key-signature.mid
00 ff 59 02 00 01
delta: 0
key: A minor
- end-of-track.mid
00 ff 2f 00
delta: 0
- sequencer-specific-event
00 ff 7f 06 00 00 3b 3a 4c 5e
delta: 0
manufacturer: 00 00 3b (Mark Of The Unicorn (MOTU))
data: 3a 4c 5e
MIDI events
- note-off.mid
00 81 70 60 40 71 48
delta: 0 delta: 64
channel: 1
note: 112 (E8) note: 113 (F8)
velocity: 96 velocity: 72
- note-on.mid
00 92 30 48 40 32 48
delta: 0 delta: 64
channel: 0
note: 48 (C3) note: 50 (D3)
velocity: 72 velocity: 72
- polyphonic-pressure.mid
00 a0 64 40 48
delta: 0 delta: 64
channel: 0
pressure: 100 pressure: 72
- controller.mid
00 b0 20 21 40 20 22
delta: 0 delta: 64
channel: 0
controller: 32 controller: 32
value: 33 value: 34
- program-change.mid
00 c0 19 40 20
delta: 0 delta: 64
channel: 0
program: 25 program: 32
- channel-pressure.mid
00 d0 07 40 48
delta: 0 delta: 64
channel: 0
pressure: 7 pressure: 72
- pitch-bend.mid
00 e5 40 00 20 60 00 40 20 00
delta: 0 delta: 32 delta: 64
channel: 5
bend: 0 bend: 4096 bend: -4096
System Exclusive events
- sysex-message.mid
00 f0 05 7e 00 09 01 f7
delta: 0
manufacturer: 7e (Non-RealTime Extensions)
data: 00 09 01
- sysex-continuation.mid
00 f0 03 43 01 23 00 f7 06 45 67 89 ab cd ef 00 f7 04 01 23 45 f7
delta: 0 delta: 0 delta: 0
manufacturer: 43 (Yamaha) data: 45 67 89 ab cd ef data: 01 23 45
data: 01 23
- sysex-escape.mid
00 f7 02 f3 01
delta: 0
data: f3 01