Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend MusicXML color support #19132

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

rettinghaus
Copy link
Contributor

@rettinghaus rettinghaus commented Aug 22, 2023

This PR brings a major update to MusicXML support. Focusing on color, it brings some other addition and fixes.

Color support in detail:

  • color import/export for accidentals
  • color import/export for articulations
  • color import/export for barlines
  • color import/export for clefs
  • color import/export for fermatas
  • color import/export for figured bass
  • color import/export for hairpins
  • color import/export for keys
  • color import/export for ornaments
  • color import/export for pedal lines
  • color import/export for slurs and ties
  • color import/export for time signatures
  • color import/export for voltas
  • color export for arpeggios
  • color export for breath marks and caesuras
  • color export for chord symbols
  • color export for dynamics
  • color export for fingerings
  • color export for metronome
  • color export for rehearsal marks
  • color export for text lines
  • color export for tremolo
  • color export for jumps and markers

Further improvements:

  • import/export of curlew fermata
  • import/export of tuplet placement
  • improve import/export of barlines
  • improve import/export of accidental brackets
  • improve pedal style
  • improve figured bass
  • unify tie and slur handling
  • export WideDashed line style
  • export circled rehearsal marks
  • fix color for glissandos and slides
  • fix export of tempo change lines
  • fix export of dynamics extenders
  • new tests added

Fixes #17841

Also addresses most of #18159 (except for special text).
Also addresses cresc./dim. line issue from #18158.

@rettinghaus rettinghaus changed the title Xmlcolors Extends MusicXML color support Aug 22, 2023
@rettinghaus rettinghaus changed the title Extends MusicXML color support Extend MusicXML color support Aug 22, 2023
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 23, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)
@RomanPudashkin
Copy link
Contributor

Please rebase your PR. There should only be one commit. Thanks!

@rettinghaus
Copy link
Contributor Author

@RomanPudashkin done.

@rettinghaus rettinghaus force-pushed the xmlcolors branch 2 times, most recently from 257e2c8 to 1161931 Compare August 30, 2023 09:33
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to hairpins
* add color to ornaments
* add color to slurs and ties
* add color to fermata
* add color to glissandos
* add color to accidentals
* add color to articulations
* export accidental brackets
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to hairpins
* add color to ornaments
* add color to slurs and ties
* add color to fermata
* add color to glissandos
* add color to accidentals
* add color to articulations
* export accidental brackets
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to hairpins
* add color to ornaments
* add color to slurs and ties
* add color to fermata
* add color to glissandos
* add color to accidentals
* add color to articulations
* export accidental brackets
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to hairpins
* add color to ornaments
* add color to slurs and ties
* add color to fermata
* add color to glissandos
* add color to accidentals
* add color to articulations
* export accidental brackets
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to hairpins
* add color to ornaments
* add color to slurs and ties
* add color to fermata
* add color to glissandos
* add color to accidentals
* add color to articulations
* export accidental brackets
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to hairpins
* add color to ornaments
* add color to slurs and ties
* add color to fermata
* add color to glissandos
* add color to accidentals
* add color to articulations
* export accidental brackets
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to hairpins
* add color to ornaments
* add color to slurs and ties
* add color to fermata
* add color to glissandos
* add color to accidentals
* add color to articulations
* export accidental brackets
@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Aug 30, 2023

I believe a unit- and/or vtest is needed

Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color for textlines
* add color to ornaments
* add color to slurs and ties
* add color to fermata
* add color to hairpins
* add color to accidentals
* add color to articulations
* export accidental brackets
* fix color for glissandos
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color for textlines
* add color to ornaments
* add color to slurs and ties
* add color to fermata
* add color to hairpins
* add color to accidentals
* add color to articulations
* export accidental brackets
* fix color for glissandos
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Aug 30, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color for textlines
* add color to ornaments
* add color to slurs and ties
* add color to fermata
* add color to hairpins
* add color to accidentals
* add color to articulations
* export accidental brackets
* fix color for glissandos
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 15, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to breath marks and caesuras (+, export only)
* impove/extend breath marks and caesuras ex- and import (+)
* add color to chord symbols(+)
* add color to arpeggios (+)
* add color to pedal lines (+)
* add color to voltas (+)
* add color to textlines (+)
* add color to dynamics (+)
* import accidental brackets (+)

add color, placement(?) and visibility to figured bass
add color to ornaments
add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color export test
improve figured bass import (not yet export)

Also fixes musescore#17841 (for 3.x)
@rettinghaus rettinghaus force-pushed the xmlcolors branch 2 times, most recently from 5b45d56 to b551856 Compare November 16, 2023 15:35
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 17, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to breath marks and caesuras (+, export only)
* impove/extend breath marks and caesuras ex- and import (+)
* add color to chord symbols(+)
* add color to arpeggios (+)
* add color to pedal lines (+)
* add color to voltas (+)
* add color to textlines (+)
* add color to dynamics (+)
* import accidental brackets (+)

add color, placement(?) and visibility to figured bass
add color to ornaments
add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color export test
improve figured bass import (not yet export)

Also fixes musescore#17841 (for 3.x)
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 20, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to breath marks and caesuras (+, export only)
* impove/extend breath marks and caesuras ex- and import (+)
* add color to chord symbols(+)
* add color to arpeggios (+)
* add color to pedal lines (+)
* add color to voltas (+)
* add color to textlines (+)
* add color to dynamics (+)
* import accidental brackets (+)

add color, placement(?) and visibility to figured bass
add color to ornaments
add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color export test
improve figured bass import (not yet export)

Also fixes musescore#17841 (for 3.x)
add color to ornaments
add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
export system dividers
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color tests
improve figured bass import/export
export circled rehearsal marks
add color export to jumps and markers
@RomanPudashkin RomanPudashkin merged commit 2aa3bbe into musescore:master Nov 20, 2023
11 checks passed
@rettinghaus rettinghaus deleted the xmlcolors branch November 20, 2023 12:32
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 23, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to breath marks and caesuras (+, export only)
* impove/extend breath marks and caesuras ex- and import (+)
* add color to chord symbols(+)
* add color to arpeggios (+)
* add color to pedal lines (+)
* add color to voltas (+)
* add color to textlines (+)
* add color to dynamics (+)
* import accidental brackets (+)

add color, placement(?) and visibility to figured bass
add color to ornaments
add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color export test
improve figured bass import (not yet export)

Also fixes musescore#17841 (for 3.x)
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 24, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to breath marks and caesuras (+, export only)
* impove/extend breath marks and caesuras ex- and import (+)
* add color to chord symbols(+)
* add color to arpeggios (+)
* add color to pedal lines (+)
* add color to voltas (+)
* add color to textlines (+)
* add color to dynamics (+)
* import accidental brackets (+)

add color, placement(?) and visibility to figured bass
add color to ornaments
add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color export test
improve figured bass import (not yet export)

Also fixes musescore#17841 (for 3.x)
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 27, 2023
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 28, 2023
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 29, 2023
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Nov 29, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to breath marks and caesuras (+, export only)
* impove/extend breath marks and caesuras ex- and import (+)
* add color to chord symbols(+)
* add color to arpeggios (+)
* add color to pedal lines (+)
* add color to voltas (+)
* add color to textlines (+)
* add color to dynamics (+)
* import accidental brackets (+)

add color, placement(?) and visibility to figured bass
add color to ornaments
add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color export test
improve figured bass import (not yet export)

Also fixes musescore#17841 (for 3.x)
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Dec 2, 2023
Backport of musescore#20248

Plus a bit from musescore#19132, those changes to exportxml.cpp (the rest is to follow later
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Dec 2, 2023
Backport of musescore#20248

Plus a bit from musescore#19132, those changes to exportxml.cpp (the rest is to follow later
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Dec 2, 2023
Backport of musescore#20248

Plus a bit from musescore#19132, those changes to exportxml.cpp (the rest is to follow later
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Dec 2, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to breath marks and caesuras (+, export only)
* impove/extend breath marks and caesuras ex- and import (+)
* add color to chord symbols(+)
* add color to arpeggios (+)
* add color to pedal lines (+)
* add color to voltas (+)
* add color to textlines (+)
* add color to dynamics (+)
* import accidental brackets (+)

add color, placement(?) and visibility to figured bass
add color to ornaments
add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color export test
improve figured bass import (not yet export)

Also fixes musescore#17841 (for 3.x)
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Dec 2, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)

* add color to breath marks and caesuras (+, export only)
* impove/extend breath marks and caesuras ex- and import (+)
* add color to chord symbols(+)
* add color to arpeggios (+)
* add color to pedal lines (+)
* add color to voltas (+)
* add color to textlines (+)
* add color to dynamics (+)
* import accidental brackets (+)

add color, placement(?) and visibility to figured bass
add color to ornaments
add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color export test
improve figured bass import (not yet export)

Also fixes musescore#17841 (for 3.x)
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Dec 2, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)add color to ornaments

add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
export system dividers
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color tests
improve figured bass import/export
export circled rehearsal marks
add color export to jumps and markers
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Dec 2, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)add color to ornaments

add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
export system dividers
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color tests
improve figured bass import/export
export circled rehearsal marks
add color export to jumps and markers
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Dec 2, 2023
Backport of musescore#19132 (plus another small change for articulations placement above/below)add color to ornaments

add color to slurs and ties
add color to fermata
add color to hairpins
add color to clef
add color to time signature
add color to accidentals
add color to articulations
export accidental brackets
fix color for glissando
unify tie and slur handling
add tuplet placement
add import of key color
add tuplet placement
also export WideDashed
accidental-mark on ornament
add color to ending
add placement to accidental-mark
color on trill-mark
add color to octave
import ending color
add textline color
export appearance
pedal color import
add support for curlew
bracket color only at start
export system dividers
import/export barline color
export fingering color
add another barlines test
add missing spannerStop for tempo change
export metronome and rehearsal color
tuplet color
hairpintext color
don't export invisible line
add color tests
improve figured bass import/export
export circled rehearsal marks
add color export to jumps and markers
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Dec 2, 2023
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.

MusicXML import and export - Tie position above/below doesn't save in musicxml
4 participants