Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mscuthbert committed Jan 3, 2024
1 parent 1cbc2a8 commit 9257549
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions music21/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def parseSpecifier(value: str|int|Specifier) -> Specifier:
>>> interval.parseSpecifier('a')
<Specifier.AUGMENTED>
This is not very useful, but there for completeness:
This is not very useful, but they are there for completeness:
>>> interval.parseSpecifier(interval.Specifier.MAJOR)
<Specifier.MAJOR>
Expand Down Expand Up @@ -488,7 +488,7 @@ def parseSpecifier(value: str|int|Specifier) -> Specifier:
def convertGeneric(value: int|str) -> int:
'''
Convert an interval specified in terms of its name (second, third)
into an integer. If integers are passed, assume the are correct.
into an integer. If integers are passed, assume they are correct.
>>> interval.convertGeneric(3)
3
Expand Down Expand Up @@ -639,7 +639,8 @@ def convertSemitoneToSpecifierGeneric(count: int|float) -> tuple[Specifier, int]
(<Specifier.MINOR>, 2)
'''
# strip off microtone
return convertSemitoneToSpecifierGenericMicrotone(count)[:2]
specifier, semitones, _cent_offset = convertSemitoneToSpecifierGenericMicrotone(count)
return (specifier, semitones)


_pythagorean_cache: dict[str, tuple[pitch.Pitch, Fraction]] = {}
Expand Down Expand Up @@ -2480,7 +2481,7 @@ def transposePitch(self, p: pitch.Pitch, *, inPlace=False):
>>> p5.ps
65.0
Afterwards, spelling of the new pitch will always be inferred.
Afterward, the spelling of the new pitch will always be inferred.
>>> p4.spellingIsInferred
False
Expand Down Expand Up @@ -3537,7 +3538,7 @@ def _diatonicTransposePitch(self,

def reverse(self):
'''
Return an reversed version of this interval.
Return a reversed version of this interval.
If :class:`~music21.pitch.Pitch` objects are stored as
`pitchStart` and `pitchEnd`, these pitches are reversed.
Expand Down Expand Up @@ -3827,7 +3828,7 @@ def getAbsoluteLowerNote(note1: note.Note|pitch.Pitch,

def transposePitch(
pitch1: pitch.Pitch,
interval1: str|interval,
interval1: str|Interval,
*,
inPlace=False
) -> pitch.Pitch:
Expand Down Expand Up @@ -3880,7 +3881,7 @@ def transposePitch(

def transposeNote(
note1: note.Note,
intervalString: str|interval) -> note.Note:
intervalString: str|Interval) -> note.Note:
'''
To be deprecated: call `n.transpose(intervalString)` directly.
Expand Down

0 comments on commit 9257549

Please sign in to comment.