Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/source/usersGuide/usersGuide_02_notes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Okay, so now you now enough about modules and\n",
"Okay, so now you know enough about modules and\n",
"objects. Let's create a `note.Note` object. How about the F at the top of the\n",
"treble clef staff:"
]
Expand Down
4 changes: 2 additions & 2 deletions documentation/source/usersGuide/usersGuide_04_stream1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"If you want instead of passing the class `note.Note` you could instead pass the string `\"Note\"`."
"If you want, instead of passing the class `note.Note` you could instead pass the string `\"Note\"`."
]
},
{
Expand Down Expand Up @@ -1106,7 +1106,7 @@
"source": [
"### Separating out elements by offset with `.getElementsByOffset()`\n",
"\n",
"The :meth:`~music21.stream.Stream.getElementsByOffset` method returns a Stream of all elements that fall either at a single offset or within a range of two offsets provided as an argument. In both cases a Stream is returned."
"The :meth:`~music21.stream.Stream.getElementsByOffset` method lets you gather all elements that fall either at a single offset or within a range of two offsets provided as an argument."
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
"metadata": {},
"source": [
"That did it! How does it work? Well we look at each \"thing\" in `listB` -- we\n",
"call it \"thing\" here, because we're not sure if it's a number of a list. Then\n",
"call it \"thing\" here, because we're not sure if it's a number or a list. Then\n",
"in the next line ``if isinstance(thing, list):`` checks if the thing is a list.\n",
"If that is `True` then we get to an inner loop, where we look at \"thing\" (which\n",
"in this case is `listA`, but the program doesn't know that) and get the\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"To work with all those pieces, you can parse treat the MetadataBundle\n",
"To work with all those pieces, you can treat the MetadataBundle\n",
"like a list and call ``.parse()`` on any element:"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"# User's Guide, Chapter 12: Getting Back to Basics: The Music21Object\n",
"\n",
"Almost everything that we've been working with so far, `Note` objects, `Chord` objects, `Stream` objects, etc., are subclasses of a object that, for lack of a better name, is called :class:`~music21.base.Music21Object`. \n",
"Almost everything that we've been working with so far, `Note` objects, `Chord` objects, `Stream` objects, etc., are subclasses of an object that, for lack of a better name, is called :class:`~music21.base.Music21Object`. \n",
"\n",
"A `Music21Object` is something that can go in a `Stream`, knows where it is in a Stream, and has a `Duration` at `.duration`. \n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"To examine the :class:`~music21.meter.TimeSignature` object active for this part, there are a few approaches. One method is to simply search for the class within all objects in the Part, or the flattened Part Stream representation. Remember that a Part is generally built of Measures, or Stream-embedded containers. To get all the elements in the Stream we can use the :meth:`flatten <music21.stream.Stream.flatten>` property, and then search for a class with the :meth:`~music21.stream.Stream.getElementsByClass` method. This returns a new Stream containing all found classes. The first element in this Stream is the TimeSignature."
"To examine the :class:`~music21.meter.TimeSignature` object active for this part, there are a few approaches. One method is to simply search for the class within all objects in the Part, or the flattened Part Stream representation. Remember that a Part is generally built of Measures, or Stream-embedded containers. To get all the elements in the Stream we can use the :meth:`recurse <music21.stream.Stream.recurse>` method, and then search for a class with the :meth:`~music21.stream.Stream.getElementsByClass` method. This returns an iterator containing all found classes. The first element in this Stream is the TimeSignature."
]
},
{
Expand Down Expand Up @@ -799,7 +799,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We see that there is exactly one TimeSignatures in the `Part`.\n",
"We see that there is exactly one TimeSignature in the `Part`.\n",
"\n",
"Alternatively, we can look at the first Measure in the Stream, and examine the timeSignature property."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Depending on what you want to use the spanner for, you might not need to include all the intermediary notes in a spanner. For instance, let's slur the last four notes on the piece, specifying only the high C and the final G. We'll put in the last measure."
"Depending on what you want to use the spanner for, you might not need to include all the intermediary notes in a spanner. For instance, let's slur the last four notes on the piece, specifying only the high C and the final G. We'll put it in the second measure."
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"\n",
"This is the table of contents for the User's Guide, where topics will be linked and added as the topics are written.\n",
"\n",
"The User's Guide is will form the backbone for an eventual book on `music21` by the principal investigator, Michael Scott Cuthbert, so please do not edit it except for correcting code, fixing typos, etc. without consulting with the author. Thanks!\n",
"The User's Guide will form the backbone for an eventual book on `music21` by the principal investigator, Michael Scott Cuthbert, so please do not edit it except for correcting code, fixing typos, etc. without consulting with the author. Thanks!\n",
"\n",
":ref:`Introduction <what>`\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions music21/chord/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2197,8 +2197,8 @@ def getZRelation(self) -> Chord | None:

def hasAnyEnharmonicSpelledPitches(self) -> bool:
'''
Returns True if for any given pitchClass there is at most one spelling of the note
(in any octave).
Returns True if for any given pitchClass there is more than one spelling of the note
in any octave (e.g., C#4 and D-5).

>>> cChord = chord.Chord('C4 E4 G4 C5')
>>> cChord.hasAnyEnharmonicSpelledPitches()
Expand Down
2 changes: 1 addition & 1 deletion music21/roman.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ class Minor67Default(enum.Enum):

The enumeration of `CAUTIONARY` is identical to `QUALITY` except that it
ignores the `#` in #vi and the `b` in bVI, allowing users to write these
chords in two different way. `CAUTIONARY` is recommended in the case where
chords in two different ways. `CAUTIONARY` is recommended in the case where
users from different systems of training are working together, and no
exotic chords (such as major triads on raised ^6) are used.

Expand Down
2 changes: 1 addition & 1 deletion music21/stream/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7880,7 +7880,7 @@ def flatten(self: StreamType, retainContainers=False) -> StreamType:
>>> sf[4]
<music21.note.Note C>

Unless it is important to get iterate in order from
Unless it is important to iterate in order from
front of score to back of the score, you are generally better off using recurse
instead of `.flatten(retainContainers=True)`, with `.getOffsetInHierarchy()`
to figure out where in the score each element lies.
Expand Down