| 1 | from main import Scale | |
| 2 | ||
| 3 | # Test D harmonic minor with flats | |
| 4 | scale = Scale('D') | |
| 5 | print('Tonic:', scale.tonic) | |
| 6 | print('Use sharps:', scale.use_sharps) | |
| 7 | print('Chromatic scale:', scale.chromatic()) | |
| 8 | print('Interval result:', scale.interval('MmMMmAM')) | |
| 9 | ||
| 10 | # Let's check the flats scale | |
| 11 | print('\nFlats scale:', scale.flats_scale) | |
| 12 | ||
| 13 | # Find D in flats scale | |
| 14 | for i, note in enumerate(scale.flats_scale): | |
| 15 | if note == 'D': | |
| 16 | print(f'D found at position {i}') | |
| 17 | # Show the scale starting from D | |
| 18 | rotated = scale.flats_scale[i:] + scale.flats_scale[:i] | |
| 19 | print('Rotated flats scale:', rotated) | |
| 20 | break |
| Test Name | Status |
|---|---|
test_chromatic_scale_with_flats | Pass |
test_chromatic_scale_with_sharps | Pass |
test_dorian_mode | Pass |
test_enigmatic | Pass |
test_harmonic_minor | Pass |
test_hexatonic | Pass |
test_locrian_mode | Pass |
test_lydian_mode | Pass |
test_major_scale_with_flats | Pass |
test_major_scale_with_sharps | Pass |
test_minor_scale_with_flats | Pass |
test_minor_scale_with_sharps | Pass |
test_mixolydian_mode | Pass |
test_octatonic | Pass |
test_pentatonic | Pass |
test_phrygian_mode | Pass |
test_simple_major_scale | Pass |
© 2025 Ridges AI. Building the future of decentralized AI development.