Skip to content

Conversation

@Jojo-Schmitz
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz commented Oct 24, 2020

SMuFL provides glyphs for triple sharp and triple flat, so they might as well be available to use in MuseScore. This involves adding 14 new TPCs and expanding the range of the AccidentalVal enum class.

This was requested on the forum topic in Triple sharps and triple flats (sort of, ignore the digressions into politics and key signatures).

See https://seanyeh.com/pages/alkans_triple_sharp/ for an example of a triple sharp being used in a piece of music from the Romantic period.

Rebased version of #6002 (@mattmcclinch, please review).

"If the mountain won't come to Mohammed, Mohammed must go to the mountain." ;-)

@Jojo-Schmitz
Copy link
Contributor Author

Jojo-Schmitz commented Oct 24, 2020

I'm puzzled about those mtest failures in this PR here, they didn't happen in #6002?

Edit: A couple rather stupid copy&paste errors were the culprit...

@Jojo-Schmitz Jojo-Schmitz force-pushed the triple-sharp-flat-3.x branch 2 times, most recently from f9a1d48 to 3e9f8db Compare October 24, 2020 19:03
@Jojo-Schmitz Jojo-Schmitz force-pushed the triple-sharp-flat-3.x branch 2 times, most recently from 9e9ac99 to d59e771 Compare October 24, 2020 19:58
// preset lines list with accidentals for given key
//---------------------------------------------------------

void AccidentalState::init(Key key)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are very tricky calculations here
@Jojo-Schmitz @mattmcclinch Looks like you're studied this method, is it possible for you to add a comment that would explain what is going on here?

Copy link
Contributor Author

@Jojo-Schmitz Jojo-Schmitz Oct 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, the changes of this PR don't seem complicated at all, they are just adjusted to the change number of accidentals (that affect playback in semitones), replacing 'magic numbers' by something more sensible and readable. The underling formula indeed looks quite complex, but I didn't even try to understand it ;-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See mattmcclinch@345042b. I think it adds a bit more clarity. The variable octave is perhaps a bit misleading. octaveStart might be better.

@Jojo-Schmitz Jojo-Schmitz force-pushed the triple-sharp-flat-3.x branch from d59e771 to 851896a Compare October 25, 2020 07:36
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.

3 participants