AudioKit / Tonic

Swift library for music theory
https://www.audiokit.io/Tonic/
MIT License
154 stars 21 forks source link

chord table collisions #42

Open wtholliday opened 7 months ago

wtholliday commented 7 months ago

macOS Version(s) Used to Build

macOS 13 Ventura

Xcode Version(s)

Xcode 14

Description

Add code to check for collisions. You'll find multiple chords map to the same NoteSets so the table will need to contain multiple chords for each NoteSet ([NoteSet: [Chord]]). There aren't actually any hash collisions.

For example:

notes for C𝄫sus4: [C𝄫, F𝄫, G𝄫]
notes for F𝄫sus2: [C𝄫, F𝄫, G𝄫]

Crash Logs, Screenshots or Other Attachments (if applicable)

No response