Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to create a suspended chord (sus2 / sus4) - ChordType initializer forces to use a third #51

Open
ayaphi opened this issue Feb 16, 2023 · 2 comments

Comments

@ayaphi
Copy link

ayaphi commented Feb 16, 2023

Hi,

I try to create simple sus2 and sus4 chords, but I cannot find a way to do so - I am always getting the third along, as the initializer enforces a ChordThirdType parameter (it's not optional as ChordSixthType e.g)

let sus2 = ChordType(
    third: .major,
    fifth: .perfect,
    suspended: .sus2)

print(sus2.intervals)   // [Perfect 1st, Major 3rd, Major 2nd, Perfect 5th]
let csus2 = Chord(
  type: sus2,
  key: Key(type: .c))

csus2.notation
print(csus2.keys)  // [C, E, D, G]
print(csus2.description)   // C Major  Suspended 2nd

Any ideas? Thanks.

@SebastianBoldt
Copy link

SebastianBoldt commented Jan 22, 2024

Same Issue on my side.
Any Ideas how to solve this @cemolcay ?

Even if you initialize with the correct Intervals you get the wrong representation:

.init(intervals: [.P4, .P5])

@SebastianBoldt
Copy link

Switched to a different Library. Seems to be inactive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants