Skip to content

Commit

Permalink
Merge pull request #1554 from cuthbertLab/update_layout_docs
Browse files Browse the repository at this point in the history
Update layout docs
  • Loading branch information
mscuthbert authored Apr 21, 2023
2 parents 2526b68 + 3c4b95b commit 1573e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions music21/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
just described, or to get the exact position on a page (or a graphical representation
of a page) for a particular measure or system. (Individual notes coming soon). Normal
Score streams can be changed into LayoutStreams by calling `divideByPages(s)` on them.
A Score that was organized: Score->Parts->Measures would then become:
LayoutScore->Pages->Systems->Parts->Measures.
A Score that was organized: Score->Part->Measure would then become:
LayoutScore->Page->System->Staff->Measure.
The new LayoutScore has methods that enable querying what page or system a measure is in, and
specifically where on a page a measure is (or the dimensions
Expand Down
6 changes: 0 additions & 6 deletions music21/tinyNotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ class TimeSignatureToken(Token):
'''
Represents a single time signature, like 1/4
'''

def parse(self, parent):
tsObj = meter.TimeSignature(self.token)
parent.stateDict['currentTimeSignature'] = tsObj
Expand All @@ -481,15 +480,12 @@ class NoteOrRestToken(Token):
'''
represents a Note or Rest. Chords are represented by Note objects
'''

def __init__(self, token=''):
super().__init__(token)
self.durationMap = [
(r'(\d+)', 'durationType'),
(r'(\.+)', 'dots'),
] # tie will be dealt with later.


self.durationFound = False

def applyDuration(self, n, t, parent):
Expand Down Expand Up @@ -549,7 +545,6 @@ class RestToken(NoteOrRestToken):
'''
A token starting with 'r', representing a rest.
'''

def parse(self, parent=None):
r = note.Rest()
self.applyDuration(r, self.token, parent)
Expand Down Expand Up @@ -577,7 +572,6 @@ class NoteToken(NoteOrRestToken):
<music21.note.Note B->
>>> n.nameWithOctave
'B-6'
'''
pitchMap = collections.OrderedDict([
('lowOctave', r'([A-G]+)'),
Expand Down

0 comments on commit 1573e37

Please sign in to comment.