| | 1 | | namespace MusicTheory.Theory.Harmony; |
| | 2 | |
|
| | 3 | | // Lightweight global switches to tune harmony disambiguation without breaking existing APIs. |
| | 4 | | // Defaults are set to the current, test-validated behavior. |
| | 5 | | public static class HarmonyRules |
| | 6 | | { |
| | 7 | | // These static properties remain for backward compatibility but forward to HarmonyOptions.Default. |
| | 8 | | public static bool PreferAugmentedSixthOverMixtureWhenBassFlat6 |
| | 9 | | { |
| 1 | 10 | | get => HarmonyOptions.Default.PreferAugmentedSixthOverMixtureWhenBassFlat6; |
| 1 | 11 | | set => HarmonyOptions.Default.PreferAugmentedSixthOverMixtureWhenBassFlat6 = value; |
| | 12 | | } |
| | 13 | |
|
| | 14 | | public static bool DisallowAugmentedSixthWhenSopranoFlat6 |
| | 15 | | { |
| 1 | 16 | | get => HarmonyOptions.Default.DisallowAugmentedSixthWhenSopranoFlat6; |
| 1 | 17 | | set => HarmonyOptions.Default.DisallowAugmentedSixthWhenSopranoFlat6 = value; |
| | 18 | | } |
| | 19 | |
|
| | 20 | | public static bool PreferSecondaryLeadingToneTargetV |
| | 21 | | { |
| 1 | 22 | | get => HarmonyOptions.Default.PreferSecondaryLeadingToneTargetV; |
| 1 | 23 | | set => HarmonyOptions.Default.PreferSecondaryLeadingToneTargetV = value; |
| | 24 | | } |
| | 25 | |
|
| | 26 | | public static bool PreferDiatonicIiHalfDimInMinor |
| | 27 | | { |
| 1 | 28 | | get => HarmonyOptions.Default.PreferDiatonicIiHalfDimInMinor; |
| 1 | 29 | | set => HarmonyOptions.Default.PreferDiatonicIiHalfDimInMinor = value; |
| | 30 | | } |
| | 31 | | } |