Given the musical notes (C, C#, D, D#, E, F, F#, G, G#, A, A#, B) we want to build the Major and Minor scales.
Receives the root note
Returns the Major and Minor scale
Must test for:
- C Major scale
- C Minor scale
Input | Output |
---|---|
C | Major: C D E F G A B |
Minor: C D Eb F G Ab Bb |
- Lua (>= 5.3.5)
- Busted (>= 2.0.0)
You can run the tests on the terminal with Busted
busted music_theory_spec.lua