#๐ Chord detection in python
43 messages ยท Page 1 of 1 (latest)
@north tapir
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Im trying to make a program that can detect guitar chords. A random chord is shown, and then the user has to play the chord. The program detects if it is played correctly, and then shows another chord.
I grabbed this code online and think its a good start
I dont have that much experience with this type of stuff but I learn fast
Do you have any specific problem?
yes, I dont know where to start
I feel like this is a pretty hard project tho
What's your experience in Python?
very basic
I know nothing about this topic, but: If you're a beginner at Python, you should probably start with simpler projects
maybe if someone can give me the steps I need to take in order to work on this project
I mean I can work with loops and functions Ive made basic programs
Have you done anything with audio?
not in python no
The first step in projects like these is to understand the problem: How does one detect chords?
Is this a ML training project? Are you using an existing tool (like Chordino?)? Is this spectrum analysis? I genuinely don't know, but googling shows a number of chord detection projects with different approaches.
alright thanks
!pypi chord-extractor
I think I dont have enough experience to do this in a months haha
Is one example
I might just make this a long project and study the theory behind everything I do
It's kinda a hard project. I know Python quite well, and I wouldn't know where to start.
I have this code as a start
This is a great idea. Studying the theory and coming up with a concept is a good plan.
so Imma start with understanding how that works
that one just uses the mic and can detect which note is played
Second: Take a look at other projects. I see some projects using a ML approach (training on recognizing chords), and others using spectrum analysis, etc
tbh, I would just google "python chord identification" or recognition
alrighty
But, I'd be looking for google hits on github
Also, use #data-science-and-ml if you have questions about implementing this (or a help thread like this). The tough part is: if you don't know how you want to do it, you really have to hope you find someone who already knows the answer/has experience.
Once you have a plan, then it's easier to help you.
This is an example of a ML approach: https://www.youtube.com/watch?v=DOOA_kaiHSo
In this video, I will show you how to use a convolutional neural network (CNN) to classify audio chords.
I will start by examining a few audio files and playing them back. Then, I will code a transform process to convert the audio files to spectrogram images. Spectrogram images are visual representations of sound waves. They can be used to iden...
Imma check that out
How I'd do this is - survey a few projects and yt videos and see how other people hve done it. Everyone does something different.
alr thanks man
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.