Skip to content

Commit 4ce502c

Browse files
author
Kevin J Walters
committed
Correcting the docs on two MIDI properties for channels based on @tannewt feedback from adafruit#9. adafruit#3.
1 parent e3a9ebe commit 4ce502c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_midi/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ def __init__(self, midi_in=usb_midi.ports[0], midi_out=usb_midi.ports[1], *,
9191
@property
9292
def in_channel(self):
9393
"""The incoming MIDI channel. Must be 0-15. Correlates to MIDI channels 1-16, e.g.
94-
``in_channel(3)`` will listen on MIDI channel 4.
95-
Can also listen on multiple channels, e.g. ``in_channel((0,1,2))``
96-
will listen on MIDI channels 1-3 or ``in_channel("ALL")`` for every channel.
94+
``in_channel = 3`` will listen on MIDI channel 4.
95+
Can also listen on multiple channels, e.g. ``in_channel = (0,1,2)``
96+
will listen on MIDI channels 1-3 or ``in_channel = "ALL"`` for every channel.
9797
Default is None."""
9898
return self._in_channel
9999

@@ -112,7 +112,7 @@ def in_channel(self, channel):
112112
@property
113113
def out_channel(self):
114114
"""The outgoing MIDI channel. Must be 0-15. Correlates to MIDI channels 1-16, e.g.
115-
``out_channel(3)`` will send to MIDI channel 4. Default is 0."""
115+
``out_channel = 3`` will send to MIDI channel 4. Default is 0 (MIDI channel 1)."""
116116
return self._out_channel
117117

118118
# pylint: disable=attribute-defined-outside-init

0 commit comments

Comments
 (0)