Skip to content

Commit 540263b

Browse files
committed
Fix all references to notes with tones
1 parent 329ecb3 commit 540263b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gpiozero/output_devices.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,9 @@ class TonalBuzzer(SourceMixin, CompositeDevice):
605605
If :data:`None` (the default), the buzzer will be off initially. Values
606606
between -1 and 1 can be specified as an initial value for the buzzer.
607607
608-
:type mid_note: int or str
609-
:param mid_note:
610-
The note which is represented the device's middle value (0). The
608+
:type mid_tone: int or str
609+
:param mid_tone:
610+
The tone which is represented the device's middle value (0). The
611611
default is "A4" (MIDI note 69).
612612
613613
:param int octaves:
@@ -723,7 +723,7 @@ def tone(self, value):
723723
def value(self):
724724
"""
725725
Represents the state of the buzzer as a value between -1 (representing
726-
the minimum note) and 1 (representing the maximum note). This can also
726+
the minimum tone) and 1 (representing the maximum tone). This can also
727727
be the special value :data:`None` indicating that the buzzer is
728728
currently silent.
729729
"""
@@ -760,7 +760,7 @@ def is_active(self):
760760
@property
761761
def octaves(self):
762762
"""
763-
The number of octaves available (above and below mid_note).
763+
The number of octaves available (above and below mid_tone).
764764
"""
765765
return self._octaves
766766

0 commit comments

Comments
 (0)