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

Validate Colour setting #17

Open
DavidGarfinkle opened this issue Aug 2, 2017 · 0 comments
Open

Validate Colour setting #17

DavidGarfinkle opened this issue Aug 2, 2017 · 0 comments

Comments

@DavidGarfinkle
Copy link
Collaborator

DavidGarfinkle commented Aug 2, 2017

Music21 offers two major outputting formats: xml and lilypond. However, they differ in their support for score colouring.

RGB and Hexadecimal
XML supports RGB triplets (though I haven't gotten them to work yet through music21) and hexadecimal colour specification (this works)
Lilypond supports RGB (through an internal scheme function which I also haven't gotten to work through music21). As far as I know Lilypond doesn't support hexadecimal colour specification

http://lilypond.org/doc/v2.18/Documentation/notation/inside-the-staff#coloring-objects
https://usermanuals.musicxml.com/MusicXML/Content/ST-MusicXML-color.htm

Keywords like 'red'
Both XML and Lilypond support basic colours keywords, like 'red', 'orange', 'green', etc...
Lilypond has a full list of their supported colour keywords here: http://lilypond.org/doc/v2.18/Documentation/notation/list-of-colors
I can't find a similar list for MusicXML colour keywords.

So for now, we'll work with basic colour keywords that work in both xml and lilypond, but it would be nice to support at least one type of exact colouring schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant