• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cuthbertLab / music21 / 15074472777
93%

Build:
DEFAULT BRANCH: master
Ran 16 May 2025 06:05PM UTC
Jobs 1
Files 230
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 May 2025 05:55PM UTC coverage: 93.011% (-0.001%) from 93.012%
15074472777

push

github

web-flow
Merge pull request #1778 from cuthbertLab/midi_translate_type_simplify

midi.translate improvements

Followup from #1769 gave me an opportunity to find places to improve midi translate.  Pinging @oxygen-dioxide since some changes took place since then

* Change `getNotesFromEvents()` from potentially O(n^2) to O(n) while retaining sort order.

* Pass encoding to parsing of instrument names in addition to lyrics (renamed "encoding_type" to "encoding" -- missed in prior review)

* create TimingNoteEvent which is a typed NamedTuple that keeps track of when a MidiEvent NoteOn started, stopped, and what the NoteOn event was.  Replaced the old tuple of tuples.

* Faster gathering of Chords (remove potential O(n^2) search).

* Remove unused special case for single-note streams.

* opFrac many offsets and durations in MIDI for absolutely correct tuplets, etc.

* Misc: Update braille.translate SegmentKey to typing.NamedTuple

* Misc: Search code for places where we were still casting to float for Python 2 division!

* Misc: Add typing to text/Trigram and some layout things

This is part of the non-backwards compatible MIDI.translate guts rewrite discussed on the music21 list.

Coverage % is expected to drop because the amount of code has been reduced a lot.

97 of 97 new or added lines in 8 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

80958 of 87041 relevant lines covered (93.01%)

0.93 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
95.87
-0.08% music21/midi/translate.py
Jobs
ID Job ID Ran Files Coverage
1 15074472777.1 16 May 2025 06:05PM UTC 230
93.01
GitHub Action Run
Source Files on build 15074472777
  • Tree
  • List 230
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 52fc784d on github
  • Prev Build on master (#15056139841)
  • Next Build on master (#15181782537)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc