Skip to content

Commit e9b2091

Browse files
committed
Made note public variable
1 parent 6a5f834 commit e9b2091

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_midi/note_off.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ class NoteOff(MIDIMessage): # pylint: disable=duplicate-code
3636
LENGTH = 3
3737

3838
def __init__(self, note, velocity=0, *, channel=None):
39-
self._note = note_parser(note)
39+
self.note = note_parser(note)
4040
self._velocity = velocity
4141
super().__init__(channel=channel)
42-
if not 0 <= self._note <= 127 or not 0 <= self._velocity <= 127:
42+
if not 0 <= self.note <= 127 or not 0 <= self._velocity <= 127:
4343
self._raise_valueerror_oor()
4444

4545
def __bytes__(self):
4646
return bytes(
4747
[
4848
self._STATUS | (self.channel & self.CHANNELMASK),
49-
self._note,
49+
self.note,
5050
self._velocity,
5151
]
5252
)

0 commit comments

Comments
 (0)