CPJKU / partitura

A python package for handling modern staff notation of music
https://partitura.readthedocs.io
Apache License 2.0
243 stars 18 forks source link

Music21 import #254

Closed fosfrancesco closed 1 year ago

fosfrancesco commented 1 year ago

Adding support for parsing music21 score objects. Only a basic set of score info is supported for now: notes, rests, clefs, key signatures, time signatures, voices, staves, symbolic durations, and ties.

Articulations, repetitions and barlines are still not supported

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 98.08% and project coverage change: +0.45 :tada:

Comparison is base (59cbe3a) 85.00% compared to head (1365434) 85.46%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #254 +/- ## =========================================== + Coverage 85.00% 85.46% +0.45% =========================================== Files 72 74 +2 Lines 12653 12824 +171 =========================================== + Hits 10756 10960 +204 + Misses 1897 1864 -33 ``` | [Impacted Files](https://app.codecov.io/gh/CPJKU/partitura/pull/254?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CPJKU) | Coverage Δ | | |---|---|---| | [partitura/io/importmei.py](https://app.codecov.io/gh/CPJKU/partitura/pull/254?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CPJKU#diff-cGFydGl0dXJhL2lvL2ltcG9ydG1laS5weQ==) | `95.62% <ø> (ø)` | | | [tests/test\_mei.py](https://app.codecov.io/gh/CPJKU/partitura/pull/254?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CPJKU#diff-dGVzdHMvdGVzdF9tZWkucHk=) | `99.49% <ø> (ø)` | | | [partitura/io/importmusic21.py](https://app.codecov.io/gh/CPJKU/partitura/pull/254?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CPJKU#diff-cGFydGl0dXJhL2lvL2ltcG9ydG11c2ljMjEucHk=) | `96.47% <96.47%> (ø)` | | | [partitura/\_\_init\_\_.py](https://app.codecov.io/gh/CPJKU/partitura/pull/254?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CPJKU#diff-cGFydGl0dXJhL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [partitura/io/\_\_init\_\_.py](https://app.codecov.io/gh/CPJKU/partitura/pull/254?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CPJKU#diff-cGFydGl0dXJhL2lvL19faW5pdF9fLnB5) | `68.75% <100.00%> (+0.39%)` | :arrow_up: | | [tests/\_\_init\_\_.py](https://app.codecov.io/gh/CPJKU/partitura/pull/254?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CPJKU#diff-dGVzdHMvX19pbml0X18ucHk=) | `100.00% <100.00%> (ø)` | | | [tests/test\_m21\_import.py](https://app.codecov.io/gh/CPJKU/partitura/pull/254?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CPJKU#diff-dGVzdHMvdGVzdF9tMjFfaW1wb3J0LnB5) | `100.00% <100.00%> (ø)` | | ... and [5 files with indirect coverage changes](https://app.codecov.io/gh/CPJKU/partitura/pull/254/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=CPJKU)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.