#๐Ÿ”’ Chord detection in python

43 messages ยท Page 1 of 1 (latest)

willow patrolBOT
#

@north tapir

Python help channel opened

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.

north tapir
#

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

lime parrot
#

Do you have any specific problem?

north tapir
#

yes, I dont know where to start

north tapir
#

I feel like this is a pretty hard project tho

sturdy mirage
north tapir
#

very basic

sturdy mirage
#

I know nothing about this topic, but: If you're a beginner at Python, you should probably start with simpler projects

north tapir
#

maybe if someone can give me the steps I need to take in order to work on this project

north tapir
sturdy mirage
north tapir
#

not in python no

sturdy mirage
#

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.

north tapir
#

alright thanks

sturdy mirage
#

!pypi chord-extractor

willow patrolBOT
#

Python library for extracting chords from multiple sound file formats

Released on <t:1667588871:D>.

north tapir
#

I think I dont have enough experience to do this in a months haha

sturdy mirage
#

Is one example

north tapir
#

I might just make this a long project and study the theory behind everything I do

sturdy mirage
north tapir
sturdy mirage
north tapir
#

so Imma start with understanding how that works

#

that one just uses the mic and can detect which note is played

sturdy mirage
#

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

north tapir
#

where can I find projects the best way

#

any site recommendation?

#

github?

sturdy mirage
#

tbh, I would just google "python chord identification" or recognition

north tapir
#

alrighty

sturdy mirage
#

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...

โ–ถ Play video
north tapir
#

Imma check that out

sturdy mirage
north tapir
#

alr thanks man

willow patrolBOT
#
Python help channel closed

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.