alphaTab icon indicating copy to clipboard operation
alphaTab copied to clipboard

Minor Keys in AlphaTex

Open Danielku15 opened this issue 2 years ago • 0 comments

Discussed in https://github.com/CoderLine/alphaTab/discussions/853

Originally posted by jonaro00 May 15, 2022

Proposed feature

AlphaTex currently allows defining major key signatures with \ks G. I propose also allowing minor keys by simply expanding the switch-cases in AlphaTexImporter.parseKeySignature.

What the syntax would be is up for discussion. My idea is to keep the default behavior for major keys, using \ks Eminor for minor, but also allowing \ks Gmajor for consistency.

The switch-case would then look like:

...
case 'g':
case 'gmajor':
case 'eminor':
    ...
```</div>

Danielku15 avatar May 25 '22 10:05 Danielku15