Closed SebastianBoldt closed 10 months ago
🥳
@aure I think we could also try to build something similar for Scales. If we obtain the Notes via the noteSet and map them to pitches they also do have the wrong octave order.
lldb) po Key.init(root: .init(.D, accidental: .natural), scale: .major).noteSet.array
â–¿ 7 elements
▿ 0 : C♯4
▿ noteClass : C♯
- letter : Tonic.Letter.C
- accidental : ♯
- octave : 4
â–¿ 1 : D4
â–¿ noteClass : D
- letter : Tonic.Letter.D
- accidental :
- octave : 4
â–¿ 2 : E4
â–¿ noteClass : E
- letter : Tonic.Letter.E
- accidental :
- octave : 4
▿ 3 : F♯4
▿ noteClass : F♯
- letter : Tonic.Letter.F
- accidental : ♯
- octave : 4
â–¿ 4 : G4
â–¿ noteClass : G
- letter : Tonic.Letter.G
- accidental :
- octave : 4
â–¿ 5 : A4
â–¿ noteClass : A
- letter : Tonic.Letter.A
- accidental :
- octave : 4
â–¿ 6 : B4
â–¿ noteClass : B
- letter : Tonic.Letter.B
- accidental :
- octave : 4
Did we solve issue #25 with merging this PR?
Did we solve issue #25 by merging this PR?
@Matt54 Nope, we solved this one https://github.com/AudioKit/Tonic/issues/22
Description
Currently it is impossible to extract the correct notes and their respective octaves from a chord object for a specific inversion.
I tried to obtain the correct notes and pitches for a chord by mapping all the note classes, since it was the only property available in the chord object. I used the following code:
Unfortunately, the noteClasses do not contain the octave information, making it impossible for me to obtain the correct pitches for a specific chord inversion.
Proposed Solution
I would like to be able to do something like this: