Skip to content

Conversation

@jacobtylerwalls
Copy link
Member

Highlights are removing the "mx" file format and adding some test coverage for the splitAtDurations() edits in #1005.

@jacobtylerwalls jacobtylerwalls force-pushed the june-miscellany branch 2 times, most recently from 22c1d16 to 2e86e2a Compare June 9, 2021 18:28
@coveralls
Copy link

coveralls commented Jun 9, 2021

Coverage Status

Coverage increased (+0.01%) to 92.299% when pulling cd571c2 on jacobtylerwalls:june-miscellany into 49cc89b on cuthbertLab:master.

Copy link
Member

@mscuthbert mscuthbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! One little change requested -- then feel free to merge.

"kernelspec": {
"display_name": "Python 3",
"language": "python",
"display_name": "Python 3.10.0b1 64-bit",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh -- good to know that music21 is working on 3.10-beta. I hadn't tested it yet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, the only pain point is some enum repr()s have to be changed in doctests. more later...

Comment on lines -56 to -58
import re
import os
import unittest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really shocked that this didn't cause a pylint error...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have it turned off because we have wildcard imports. And speaking of which, that must have been how identified these, I was looking at pylint reports when poking at #881 (which BTW I think I have a solution for)

>>> r2 = note.Rest(quarterLength=5.0)
>>> r2.fullMeasure = True
>>> m2 = stream.Measure(r2)
>>> m2.insert(0, meter.TimeSignature('6/4'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that 5/4 would make this clearer, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a comment to explain, clearly. This is showing that when the rest doesn't fill the measure but we set .fullMeasure = True anyhow, we still treat as full measure and don't split it.

@jacobtylerwalls
Copy link
Member Author

We haven't really discussed our policy on squashing vs. rebasing/merge commits. I think this one's too eclectic to squash. It also has the benefit of letting you see the last three commits I pushed.

@jacobtylerwalls jacobtylerwalls merged commit a4594ae into cuthbertLab:master Jun 19, 2021
@jacobtylerwalls jacobtylerwalls deleted the june-miscellany branch June 19, 2021 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants