Hello
I am not a mathematician. I am writing a game, designed around music notes/scales, and the computer needs to process out of a string of numbers what a given chord might be. So even just a point in the direction of what kind of math might be involved, let alone the full answer is kindly welcome. The following diagram might help:
We have a chromatic scale with 12 notes, and number them from 0-11.
C C# D D# E F F# G G# A A# B
0 1 2 3 4 5 6 7 8 9 10 11 (for some reason this line will not space out properly under the note names?)
The notes for a C triad (C E G) would yield = 0 4 7.
Also, a triad could be produced from any of the other 11 notes, i.e. D triad would yield = 2 6 9.
I want to write a program that could identify whether a triad (or larger chord or different type, minor, augmented etc) has been obtained from a random generator, but without having to write out every combination for every triad and every possible chord combination with every possible starting note.
Can anybody say even what kind of field of math/computing this might be catagorized under please?
Thanks
PS Sorry its not a math question, thanks for reading!
PSS please bump thread if you already know moderator, cheers!
I am not a mathematician. I am writing a game, designed around music notes/scales, and the computer needs to process out of a string of numbers what a given chord might be. So even just a point in the direction of what kind of math might be involved, let alone the full answer is kindly welcome. The following diagram might help:
We have a chromatic scale with 12 notes, and number them from 0-11.
C C# D D# E F F# G G# A A# B
0 1 2 3 4 5 6 7 8 9 10 11 (for some reason this line will not space out properly under the note names?)
The notes for a C triad (C E G) would yield = 0 4 7.
Also, a triad could be produced from any of the other 11 notes, i.e. D triad would yield = 2 6 9.
I want to write a program that could identify whether a triad (or larger chord or different type, minor, augmented etc) has been obtained from a random generator, but without having to write out every combination for every triad and every possible chord combination with every possible starting note.
Can anybody say even what kind of field of math/computing this might be catagorized under please?
Thanks
PS Sorry its not a math question, thanks for reading!
PSS please bump thread if you already know moderator, cheers!
- :wink: