Include spaces in chord symbols

• Sep 10, 2015 - 07:11
Type
Functional
Severity
S5 - Suggestion
Status
closed
Project

Sometimes spaces are needed in odd chord symbols, so allowing ctrl+space to achieve this would be useful.

A chord such as for example might be written as 'B b6' but be displayed as 'Bb6'.


Comments

FWIW, spaces are allowed *within* a chord symbol extension - eg, "Bb6 4" is OK and the space is preserved. Spaces *between* the main elements of the chord symbol are lost. By "main elements", I mean,

Root Extension Slash Bass

Actually, due to what I would consider a bug, currently if you have a space between the slash and the bass note, the space is not lost, but then the bass note is not properly recognized either and won't transpose nor will "b" and "#" turn into flat and sharp.

I have a simple fix that would allow a space between the root and extension to be kept (and fix the bug I mentioned), but making it so other spaces would be opreserved would require deeper changes to the parsing. I'm thinking that's probably good enough?

Come to think of it, this would be less of an issue if note names weren't required. Then things like IVm^7 would be parsed properly. My first example isn't common and even if I could find an instance of it, it would still be specialist notation, but chord symbols without the letters A-G are useful. That would of course open another can of transposition worms.

Status (old) active patch (ready to commit)

I agree it could be worth considering an empty root as still valid for the purpose of parsing the rest. This would be a more significant change though. Worth submitting a spearate feature request for that. For now, I've submitted a PR that at least allows a space between the root and extension, and fixes the bug where a space before a bass note prevents the bass note from being parsed properly.

https://github.com/musescore/MuseScore/pull/2219