Skip to content

rchitale7/Physics4BL-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions for running note classification code:

  1. Create a directory called sound_samples. (Path: Physics4BL-Project/sound_samples)
  2. Download and unzip each instrument zip file
  3. Run the following command on each instrument directory to move samples that don't match the string called "filter" to another directory:

find . -maxdepth 1 -type f -not -name "*filter*" -exec mv {} /path/to/dir \;

Alternatively, you can remove these unwanted files:

find . -maxdepth 1 -type f -not -name "*filter*" -exec rm -rf {} \;

  1. Move each instrument directory to the sound_samples folder
  2. note_classification/note_classification_code.py will now read .wav files from sound_samples directory. (e.g. to read a trumpet sound file, we would read from the path: Physics4BL-Project/sound_samples/trumpet/{name of trumpet file}.wav)
  3. To run the classification, do:

cd note_classification

python note_classification_code.py

Instructions for running guitar_tuner/guitar_tuner.py

  1. pip install sounddevice

    or

    pip3 install sounddevice

  2. cd guitar_tuner

  3. python tuner.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages