File tree Expand file tree Collapse file tree 1 file changed +22
-21
lines changed Expand file tree Collapse file tree 1 file changed +22
-21
lines changed Original file line number Diff line number Diff line change 35
35
__version__ = "0.0.0+auto.0"
36
36
__repo__ = "https://github.com/todbot/CircuitPython_TMIDI.git"
37
37
38
-
39
38
# Portions of this library come from Winterbloom_SmolMIDI:
40
39
#
41
40
# The MIT License (MIT)
60
59
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
61
60
# THE SOFTWARE.
62
61
62
+ from micropython import const
63
+
63
64
# Message type constants.
64
- NOTE_OFF = 0x80
65
+ NOTE_OFF = const ( 0x80 )
65
66
"""Note Off"""
66
- NOTE_ON = 0x90
67
+ NOTE_ON = const ( 0x90 )
67
68
"""Note On"""
68
- AFTERTOUCH = 0xA0
69
+ AFTERTOUCH = const ( 0xA0 )
69
70
"""Aftertouch"""
70
- CONTROLLER_CHANGE = CC = 0xB0
71
+ CONTROLLER_CHANGE = CC = const ( 0xB0 )
71
72
"""Controller Change"""
72
- PROGRAM_CHANGE = 0xC0
73
+ PROGRAM_CHANGE = const ( 0xC0 )
73
74
"""Program Change"""
74
- CHANNEL_PRESSURE = 0xD0
75
+ CHANNEL_PRESSURE = const ( 0xD0 )
75
76
"""Channel Pressure"""
76
- PITCH_BEND = 0xE0
77
+ PITCH_BEND = const ( 0xE0 )
77
78
"""Pitch Bend"""
78
- SYSTEM_EXCLUSIVE = SYSEX = 0xF0
79
+ SYSTEM_EXCLUSIVE = SYSEX = const ( 0xF0 )
79
80
"""Sysex"""
80
- SONG_POSITION = 0xF2
81
+ SONG_POSITION = const ( 0xF2 )
81
82
"""Song Position"""
82
- SONG_SELECT = 0xF3
83
+ SONG_SELECT = const ( 0xF3 )
83
84
"""Song Select"""
84
- BUS_SELECT = 0xF5
85
+ BUS_SELECT = const ( 0xF5 )
85
86
"""BUS Select"""
86
- TUNE_REQUEST = 0xF6
87
+ TUNE_REQUEST = const ( 0xF6 )
87
88
"""Tune Request"""
88
- SYSEX_END = 0xF7
89
+ SYSEX_END = const ( 0xF7 )
89
90
"""Sysex End"""
90
- CLOCK = 0xF8
91
+ CLOCK = const ( 0xF8 )
91
92
"""Clock"""
92
- TICK = 0xF9
93
+ TICK = const ( 0xF9 )
93
94
"""Tick"""
94
- START = 0xFA
95
+ START = const ( 0xFA )
95
96
"""Start"""
96
- CONTINUE = 0xFB
97
+ CONTINUE = const ( 0xFB )
97
98
"""Continue"""
98
- STOP = 0xFC
99
+ STOP = const ( 0xFC )
99
100
"""Stop"""
100
- ACTIVE_SENSING = 0xFE
101
+ ACTIVE_SENSING = const ( 0xFE )
101
102
"""Active Sensing"""
102
- SYSTEM_RESET = 0xFF
103
+ SYSTEM_RESET = const ( 0xFF )
103
104
"""System Reset"""
104
105
105
106
_LEN_0_MESSAGES = set (
You can’t perform that action at this time.
0 commit comments