Repository navigation
Releases
0.14.0
crisp_notation_core, crisp_notation and crisp_notation_cli are all at 0.14.0 on pub.dev.
Chord symbols: the full lead-sheet vocabulary
ChordSymbolKindgains the rest of MusicXML's<kind>list: major, minor and dominant ninths, elevenths and thirteenths, the augmented seventh, the Neapolitan, Italian, French and German sixths, the Tristan chord, pedal, power,otherandnone(N.C.). Each kind carries itstones.ChordSymbol.degrees(ChordDegree: value, alter, add/alter/subtract) holds alterations such asG7(b9,#11);parseChordNamereads them back.- Read and written by MusicXML (
<degree>), MuseScore and LilyPond chord mode, and voiced in playback as LilyPond 2.24 plays them. ⚠️ Breaking for an exhaustiveswitchoverChordSymbolKind: add the new cases or a default.
Tuplets and grace notes across formats
Nested and hidden tuplets and grace notes tied into their principal in MEI, MuseScore (including MuseScore 2), ABC and Humdrum.
LilyPond
A file of several \score blocks can be read one piece at a time (piece:, lilyPondScoreCount). The LilyPond MIDI oracle agrees on 432 of 433 Mutopia files.
Smaller output
PDF output embeds font subsets of only the glyphs drawn (a one-page song: 875 KB to 93 KB); subsetSvgFonts does the same for SVG, and the CLI applies it to every SVG it writes (1.77 MB to 323 KB).
Full details in each package's CHANGELOG.
0.13.0
crisp_notation_core, crisp_notation and crisp_notation_cli are all at 0.13.0 on pub.dev.
LilyPond reader
Agrees with LilyPond 2.24's own MIDI on 431 of 433 Mutopia files (419 in 0.12.0). The two left are a file LilyPond itself misreads and two \midi scores LilyPond writes as separate pieces.
- Chord tracks keep their own rhythm: a chord between two melody notes, several over one long note, a rest in the chord track, a stated octave, and
\transposearound the track. - Chord-mode
/+fis(added bass),7+,^7; chord tracks found inside variables, beside skips, or on a staff of their own. \scaleDurations(and the old\compressMusic) are read, and\timesinside\timescomposes.- A grace note tied with
~ties into its principal. - A
Dynamicsline between two voices no longer takes the lower voice as its music.
Model
ChordSymbol.offset,duration,voicingOctave,addedBassandcopyWith. MusicXML<offset>and MuseScore<location>are read and written.- Tuplet spans may nest: an element sounds the product of every span covering it. MusicXML numbered
<tuplet>levels are read and written, and each level draws its own bracket. NoteElement.graceTiesToMain: a grace note tied into its principal (MusicXML and LilyPond), drawn as a short tie.
Playback
- Behaviour change: a slash chord whose bass is a chord tone plays inverted, as LilyPond plays it.
g/bis B D G, and the bass is matched by spelling.
MusicXML
- A MuseScore staff in its own shorter time signature (local time signatures) is stretched to fill the bar. Against Verovio 1706 of 1745 files agree; five such files that Verovio itself misreads are set aside.
v0.12.0
crisp_notation_core, crisp_notation and crisp_notation_cli are all at 0.12.0 on pub.dev.
LilyPond reader
Agrees with LilyPond 2.24's own MIDI on 419 of 433 Mutopia files (314 of 374 in 0.11.0).
Oracle: the reference itself was rebuilt. The first build had silently skipped convert-ly (2.24 rejects -q) and kept only one MIDI file per source.
Reader fixes:
- A note crossing a barline is cut into tied notes.
\unfoldRepeatsis honoured anywhere, and percent and tremolo repeats take their time.- Grace notes and string numbers or fingerings inside chords are read correctly.
\tag/\removeWithTag,\languagepart-way through a file, and user music functions written in LilyPond.- Staves inside
\relativeor braced groups, and voices given no staff, are found. \transposetakes a pitch held in a variable, and a score-level\transpositionapplies.\harmonicByFretsounds at the harmonic's pitch.- A pre-2.18 file's pitchless
\relativestarts from middle C.
Playback
playbackTimeline(voiceChordSymbols: true)sounds chord symbols the way LilyPond's MIDI plays a ChordNames track. Off by default.- A measure-repeat (simile) bar sounds the bar it repeats.
- A D.S. with no segno or a To Coda with no coda no longer throws: the mark is read as text and play goes on.
v0.11.0
crisp_notation_core, crisp_notation and crisp_notation_cli are all at 0.11.0 on pub.dev.
Spacing, measured against LilyPond
25 voice-and-piano songs from the corpus, set by LilyPond 2.24 and by crisp_notation on the same page:
| Systems | Pages | |
|---|---|---|
| crisp_notation 0.10.0 | 373 | 109 |
| crisp_notation 0.11.0 | 286 | 97 |
| LilyPond 2.24 | 294 | 95 |
- Column ink: only the ink that stands in a column counts, so a tuplet bracket, a dynamic or a lyric no longer pushes the next column out. Notes on different staves no longer hold each other apart.
- Line breaking: a line slightly over the width is squeezed rather than broken. Only the first system is indented for the instrument names.
- Vertical spacing: dynamics and hairpins stand above a vocal line when the source says so. Lyrics clear only the ink over each syllable, and pages pack systems to a 2-space gap.
- Barlines: every system's staves close their bars together.
Engraving
- No note in the corpus is crossed by another voice's stem any more (237 before). Grace notes lead into the whole column, and a voice moved aside clears a chord's far-side note.
- New
DurationBase.maxima.
Reading
- LilyPond: agrees with LilyPond's own MIDI on 314 of 374 Mutopia files (152 before). Fixes cover pickups across voices, inner voices,
\unfoldRepeats,\relativecorner cases and chords written without a space. - MusicXML: agrees with Verovio's timing on 1,709 of 1,745 files (1,689 before). Fixes cover a piano's fifth voice, unbracketed time modifications, unprinted notes, bar rests and microtones.
- Endings: repeat endings keep every pass, their label and their open end in LilyPond, ABC, MEI and Humdrum.
- MEI: a header incipit is no longer read as the music.
v0.10.0
crisp_notation_core, crisp_notation and crisp_notation_cli are all at 0.10.0 on pub.dev.
New
-
Beams as the source writes them. MusicXML
<beam>is followed wherever a part states it (newScore.beamSpansandScore.beamsExplicit): a vocal line keeps its flagged eighths, a 3+3+2 grouping stays 3+3+2, and a beam over a barline stays one beam. Parts without<beam>are still beamed by the meter. The writer emits<beam>for these scores. -
Tighter vertical spacing. Each pair of staves gets its own gap, measured column by column from the new
ScoreLayout.inkProfile(StaffSystemLayout.staffGaps/gapBelow). Pages pack systems atminSystemGapbefore justifying. On 59 Mutopia voice-and-piano songs, the PDFs went from 203 pages to 139. -
Repeat endings:
- one bracket per ending, over all its bars;
- labels for several passes ("1., 2.") and text endings;
- no closing hook on a last ending ("discontinue");
- continuation across system breaks;
- MuseScore 3 volta spanners.
Playback plays an ending on every pass it lists.
-
LilyPond:
qchord repeats;\skip, in music and in lyrics;- a score-level
\transpositionin\midinow reaches every staff.
Fixed
- A dynamic is placed below all the ink under it, including another voice's notes and tuplet brackets.
- Two voices that each sing their own words get a lyric line each (MusicXML test suite 42a).
- A word split across a system break keeps its hyphen.
- An instrument name with a line break prints as stacked lines (SVG, PDF, CLI).
- LilyPond
\incipitmusic is read as the staff name, not as notes; Mutopia files with incipits of different lengths no longer crash. - Multi-system layouts keep their cross-measure beams.
Checks
- Verovio onset oracle: 1,689 of 1,745 files agree.
- New fast LilyPond oracle against LilyPond's own MIDI: 152 of 374 files agree (123 before).
- The full live corpus suite passes; voice collisions are at their ceiling of 237.
v0.9.0
crisp_notation_core, crisp_notation and crisp_notation_cli are all at 0.9.0 on pub.dev.
New
- Cross-staff chords on one stem, in grand staves (
GrandStaff.crossStaffChords) and in multi-part scores (StaffSystem/MultiPartScore.crossStaffChords). They are read from MusicXML (a<chord/>whose notes sit on both staves of a part) and written back. - A piano is one MusicXML part again.
multiPartToMusicXmlwrites a braced run of staves of one instrument (a piano, or an organ with pedal) as one part with<staves>n</staves>. A new live check round-trips every multi-part corpus score: none of 1,746 changes its timing. - White mensural notation from MEI (
layoutMensural, CLI--mensural), with ligatures (square and oblique) and coloured notes. - Optical spacing at beam edges.
Fixed
- Multi-part MusicXML round trips now keep their timing. Two causes:
- Tuplets in lower voices were written with unscaled durations.
- A bar rest in a bar with its own length was written as a plain whole rest.
v0.8.0
crisp_notation 0.8.0: closing the gaps listed in docs/COMPARISON.md. crisp_notation_core, crisp_notation and crisp_notation_cli are all at 0.8.0 on pub.dev.
New
- Vector PDF in pure Dart.
pagedLayoutToPdf,multiPartPagesToPdf,scoreLayoutToPdfandscoreLinesToPdfdraw paths, embed the SMuFL font (OpenType/CFF) and put the title block on page one. CLI:render score.xml out.pdf [--paper letter] [--staff-pt 5]. - Scored slurs. Each slur is chosen from candidate shapes, scored for clearance, closeness to the notes, flatness and slope, as LilyPond does.
- Optical spacing. Spacing between unbeamed notes is adjusted for stem direction.
- Square-notation chant from GABC.
layoutChant/layoutChantLines; CLI--square. - House style sheets.
LayoutSettings.fromStyle/toStyle; CLI--style sheet.json. - Screen-reader nodes in every score view, in reading order and named with their instrument.
Score.withMultiRests()draws printed parts with multi-bar rests.- Room for the title on page one (
firstPageTop,titleBlockHeight).
Found by comparing with Verovio
New opt-in tests compare 1,745 MusicXML files with Verovio: note onsets (1,685 agree) and per-bar rests and accidentals (1,681 agree). They found and fixed:
- Whole-bar rests now fill the bar in any meter. A typeless bar rest in 9/8 used to read as sixteen quarters.
- A bar's
<type>s win over<duration>s that cannot fill the bar. - A note tied over the barline no longer repeats its accidental.
- MEI
<rend>and MuseScore<i>/<b>text was being dropped entirely. It is now read, with its style.
The live corpus now has 237 voice collisions (from 2,398) and one misaligned bar (from 111).
0.7.2
crisp_notation_core, crisp_notation and crisp_notation_cli 0.7.2 are on pub.dev.
Real songs (Debussy, Brahms, Fauré, OpenScore Lieder) were rendered beside LilyPond and Verovio, and every difference fixed or logged. The capability comparison and the remaining gaps are in docs/COMPARISON.md.
Fixes
- MusicXML timing.
<forward>was ignored, so in 60% of real MusicXML files a voice's notes after a gap were read too early — on the page and in playback. New hidden rests (RestElement.hidden) hold the time, and read/write as spacers in LilyPond (s), ABC (x), MEI (<space>), kern (ryy) and MuseScore. - Staff alignment. Inner-voice tuplets, multi-voice bar ends, accidentals and one staff's clef/key/time changes no longer push that staff's barlines out of line (10,213 drifting bars in the corpus → 111).
- Cross-staff piano chords keep both halves.
- Voices no longer cross stems or sit on each other's stems (28,249 → 2,398 in the corpus): the upper voice takes stems up; interlocking and crossing voices move aside.
- A playback-only tempo (
<sound tempo>without<metronome>) prints no metronome mark (Tempo.printed). - Barlines join a piano's staves, not the voice above it; SVG output draws braces, brackets and the system's opening line.
- Whole-bar rests are centred whole rests in every meter; pickups are beamed from their place in the meter.
Output changes
Barlines, voice placement, rests and staff alignment in multi-staff scores; SVG gains braces. Pin <0.7.2 to keep the old behaviour. Full details in each package's CHANGELOG.
0.7.1
crisp_notation_core, crisp_notation and crisp_notation_cli 0.7.1 are on pub.dev.
Fix for issue #19 (reported by @lehmannk)
- A piece that ends on a repeat ends with the repeat barline alone. The end-of-piece thin+thick barline was also drawn behind it.
Found by the new engraving checks
Every layout is now checked against engraving rules (a layout lint, a barline grid over every style × position × layout entry point, and barlines compared four ways over ~4,900 real scores plus the LilyPond MusicXML test suite). They found:
- Staff lines ran a staff space past an explicit closing barline, in ~90% of MusicXML files (MuseScore writes
light-heavyon every last bar). - A plain barline was left in front of start repeats (
| ‖:). - Empty bars (a hidden whole-bar rest) had zero width, stacking their barlines.
- Accidentals in two-voice measures, and chords naming a pitch twice, drew twice. A unison of two spellings (B and B♭) now sits side by side.
- Keys beyond 7 sharps or flats crashed layout (new
KeySignature.fromFifths). - A stem-down second's left notehead hit the time signature or barline before it; a dotted second's two dots landed on one spot.
- Tab staves now draw barline styles, repeats and the closing barline.
- Justified lines keep a straight right margin (padding what spacing cannot fill) and keep their note names.
Output changes
- The staff stops at an explicit closing barline; a final repeat closes alone.
- No barline before a start repeat (unless a clef/key/time change sits between).
- Empty bars are a bar wide.
- Stem-down seconds take a little more room on the left.
- Tab staves show repeats and closing barlines.
Pin <0.7.1 to keep the old behaviour. Full details are in each package's CHANGELOG; testing guidance is in CONTRIBUTING.md.
v0.7.0
crisp_notation_core, crisp_notation and crisp_notation_cli 0.7.0 are on pub.dev.
Fixes for issues #8–#14 (Dvořák 9, reported by @lehmannk)
- #10 — no more crash on staccatissimo or quarter-tone accidentals. The SMuFL codepoint table is now generated from the spec (2,940 names), and two wrong codepoints are corrected. The painter skips an unknown name instead of asserting.
- #11 — text on a multi-measure rest lays out. MusicXML multi-rests count their bars once; the writer emits the covered bars.
- #12 — metronome marks are drawn ("Adagio ♪ = 63").
LayoutSettings.drawTempoMarksturns them off. - #13 — a part read from a full score inherits the top part's tempo, tempo changes and tempo words.
- #8 —
Slur.placementis read from MusicXMLplacement/orientation/bezier-yand MEI@curvedir, and written back. Slurs over mixed stems go above. - #9 — dynamics and touching hairpins share one line.
- #14 — chord tremolos sit on the free stem; tuplet numbers clear the beam and the staff; stacked duplicate slurs are drawn once.
Contributed by @elasticdog
- #15 — the grand-staff start line spans both staves, and the brace clears it.
- #16 — staff-relative fingerings (
FingeringPlacement); sloped beams' ink follows the slope. - #17 —
spacingStretchanddrawTimeSignaturefor wrapped systems. - #18 — an optional staff-to-staff
systemDistancefor wrapped systems.
Output changes
- A slur over mixed stems now goes above.
- Metronome marks are drawn.
- Dynamics and touching hairpins sit on one line.
- Tuplet brackets sit outside the staff.
- The grand-staff start line is longer.
- MusicXML multi-rests fold their covered bars.
Pin <0.7.0 to keep the old behaviour. Full details are in each package's CHANGELOG.