-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMidiMsg.m
51 lines (49 loc) · 1.18 KB
/
MidiMsg.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% Copyright (c) 2017 J.B. Peperkamp <[email protected]>
% released under GPL - see file COPYRIGHT
classdef MidiMsg
%MidiMsg Enumerates MIDI message types used in MIDICSV
% using all lower case since MIDICSV is case insensitive
enumeration
% file structure
header
end_of_file
start_track
end_track
% meta events (_t takes text argument)
title_t
copyright_t
instrument_name_t
marker_t
cue_point_t
lyric_t
text_t
sequence_number
midi_port
channel_prefix
time_signature
key_signature
tempo
smpte_offset
sequencer_specific
unknown_meta_event
% channel events (with _c to distinguish as such)
note_on_c
note_off_c
pitch_bend_c
control_c
program_c
channel_aftertouch_c
poly_aftertouch_c
% system exclusive events
system_exclusive
system_exclusive_packet
end
methods
function tf = eq(a,b)
tf = strcmpi(string(a),string(b));
end
function tf = ne(a,b)
tf = ~strcmpi(string(a),string(b));
end
end
end