Forum: music.stackexchange.com
Tags: <piano><chords>
Title: Detect piano notes and chords
Question: What is a reasonably good way to detect chords in solo piano music?  Not the MIDI ones, but music generated by real piano/electronic keyboard.   I am trying to play a piano piece and check out its chords by feeding the piano output sound through microphone to my computer.

Answers:
sents: text: The best software that I've heard of is Melodyne.
text: It's capabilities are truly amazing
text: and I think it will do what you want very well.
text: Take a look.
text: It's not cheap though
text: but I think it has a free trial! http://www.celemony.com/en/melodyne/what-is-melodyne
answer_details: author: music.stackexchange.com/users/14848/e7mac
score: 5
sents: text: There is an open-source project called CLAM .It
text: has an application that automatically analyzes chords: http://clam-project.org/wiki/Chordata_tutorial
text: There are also more advanced applications that are part of the CLAM suite that can do more complex analysis.
text: Here is a demo of chordata :
answer_details: author: music.stackexchange.com/users/23287/Nathaniel M. Beaver
score: 3
sents: text: There is software for that.
text: But it is not always very accurate.
text: Especially with multiple voices (or instruments) starting at the same time.
text: Research on this started over 40 years ago: Rabiner, Lawrence, et al.
text: "A comparative performance study of several pitch detection algorithms." Acoustics, Speech and Signal Processing, IEEE Transactions on 24.5 (1976): 399-418. And has improved a lot during the last few years:
text: De La Cuadra, Patricio, Aaron Master, and Craig Sapp.
text: "
text: Efficient pitch detection techniques for interactive music.
text: " Proceedings of the 2001 International Computer Music Conference. 2001.
text: I suggest you take a look at the pitch detection plugin of the (free software)
text: Audacity here.
answer_details: author: music.stackexchange.com/users/7287/dorien
score: 2
sents: text: This is called transcription software; did you mean an app as in a mobile device app?
text: Or desktop?
text: There are many libraries that you could use if you were willing to develop your own app for either, of course, but there are also many already in existence.
text: I'm not sure how accurate they are, but you can always give a couple a shot (try searching Github or SourceForge)!
text: (Or just wait for someone else's answer)
answer_details: author: music.stackexchange.com/users/6133/ksoo
score: 1
sents: text: Ableton Live has a feature built in called "Harmony-to-MIDI" where it analyzes an audio track (could be piano, guitar, whole song.. anything) and it outputs a MIDI sequence replicating the chords played in the piece.
text: It even chooses the closest sounding synth patch to match the source.
text: Also available is Melody-to-MIDI and Rhythm-to-MIDI.
text: I'm not much of a keyboardist so I can't vouch for 100% accuracy, but it usually sounds pretty good to me.
text: It might not be worth buying the software for this alone, but if you are into recording and producing music Ableton is definitely worth a look.
text: You can try to software free for 30 days I believe.
text: Edit:
text: I just tried a program called Transcribe!
text: and it is very useful for transcribing recorded material.
text: You can load your mp3s and it will analyze the frequencies and tell you which notes are represented over time.
text: Works for piano, guitar, voice.. anything with a pitch.
text: It won't automatically transcribe all the notes, but it will plot out which notes are likely being played, then use your ears figure out which ones are correct.
answer_details: author: music.stackexchange.com/users/13110/Charles
score: 1
sents: text: A new app released today might be a sultion.
text: http://audiokit.io/
text: I dont have iOS device to check the accuracy though.
text: Will borrow one.
answer_details: author: music.stackexchange.com/users/9465/iankit
score: 0
sents: text: Honestly, I'm gonna give you the sell-out answer.
text: The best way to determine what notes and chords are being played is with your own ear.
text: I'm sorry, but with all due respect to other responders, it's extremely difficult for any software program to detect chords, specifically.
text: For basic triads, some of the best software can do the job, but so much of chord naming depends on context.
text: And isolating a fundamental frequency is no cakewalk, either.
text: For example, for simple note naming, how would a computer know that a note with the frequency of 440
text: Hz is a B♭♭ in a C diminished 7th chord?
text: The best computers currently can do is just give the most common enharmonic spellings for notes, but that creates tons of confusion.
text: Never mind the fact that even single notes can be extremely difficult to pick out of a song, and they tend to blend with their harmonics.
text: getting around that, though, at least is possible if you can just hook up your note-naming software directly to the interface of a keyboard.
text: Some other concerns bother me as well.
text: How is a computer to determine where one chord stops and ends?
text: When I play a C major triad, then play the note B, is that Cmaj7 or just a passing tone?
text: Maybe it's even part of the G major chord that follows?
text: How can a computer handle the rootless voicings?
text: Is that C♯ diminished 7th or A7♭9?
text: Is E-F-A-B the basis of G13, or maybe an enharmonic respelling for D♭7♯9
text: ♭13, an altered chord?
text: The best way I can conceive of, until AI can just perform musical analysis faster than we can, is to learn a lot of music theory, build up your aural skills, and name them yourself, because no software on the market today can get the job done more accurately than a human.
text: There's a reason Music's SE is so successful.
text: We need humans to answer most of the good questions on this site, because context determines so much of musical analysis.
text: Others have suggested slowing down the recording.
text: That's a novel idea, and whenever I transcribe from audio I make use of any way I can to slow down the notes.
text: I cannot understate how effective that is.
answer_details: author: music.stackexchange.com/users/37992/user45266
score: 0

Summary of the answers:
The best software for detecting notes and chords in music is possibly Melodyne. Ableton Live has a feature built in called "Harmony-to-MIDI" where it analyzes an audio track (could be piano, guitar, whole song.. anything) and it outputs a MIDI sequence replicating the chords played in the piece. However, the best way to determine what notes and chords are being played is with your own ear.  
The best way to identify chrods from audio may well be with your own ear. However, software programmes that may be able to help include Melodyne and Ableton Live.