Skip to content

Console application outputs musical chord name from musical note input

Notifications You must be signed in to change notification settings

ManuelVargas1251/ChordFinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Programming language Build Status Version

Chord Finder

This program should be able to display the chord name of the user inputted notes. This could help beginner musicians more quickly understand what chords they are playing.

To compile:

cpp -o chord chord_v8.cpp

To run:

./chord

Array Setup

In order to read both sharps and flats I made 2 "dictionaries"; one for sharps and one for flats. The program will run through both arrays and grab which ever values match. Double accidentals aren't an acceptable parameter yet.

0 1 2 3 4 5 6 7 8 9 10 11
Sharps A A# B C C# D D# E F F# G G#
Flats A Bb B C Db D Eb E F Gb G Ab

Example

Currently supports up to 4 notes but not all chords combinations have been defined.

Input:

A C# E

Output:

A major

Inversions

Inversions are also supported but only up to the Second Inversion.

Input:

E A C#

Output:

A major, 2nd Inversion

Development

Currently I'm working on adding 7th chords as well as their inversions (third inversions). Also adding intervals when only two notes are inputted. Lastly I'd like to be able to define extended chords (11 & 13 chords) with only 4 notes:

Input:

G F A E

Output:

G 13

Since the last update I realized I could probably make tons of improvments in my code and port this to java and make an app out of it so this update will probably be the last.

About

Console application outputs musical chord name from musical note input

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages