Skip to content
/ pitchor Public

Simple but practical real-time music note detector

License

Notifications You must be signed in to change notification settings

H7M3Y/pitchor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

pitchor

Simple but practical real-time music note detector with an aesthetical oneline appearance:

[#>_] G#3 : 208.70 Hz |  G#3 D4 - G3 D4 G4 D5 x D5 - - C5 x x C5 - - D5 x x D5 G3 - D5 x       

Usage

usage: pitchor [-h] [-s SIZE] [-r RATE] [-d DELTA] [-R REMAIN] [-l LOWEST] [-u UPPEST]

Simple but practical real-time music note detector

options:
  -h, --help            show this help message and exit
  -s SIZE, --size SIZE  the number of samples collected at a delta time.
  -r RATE, --rate RATE  microphone sampling rate
  -d DELTA, --delta DELTA
                        time duration of a single detection (unit: s. the same below)
  -R REMAIN, --remain REMAIN
                        time that the detected notes remain
  -l LOWEST, --lowest LOWEST
                        lower bound of detection
  -u UPPEST, --uppest UPPEST
                        upper bound of detection

Require

libraries: numpy, pyaudio, aubio

Also a microphone :)

Roadmap

  • Get pitch
  • Convert to note
  • Solve precision issue
  • Solve ambient noise issue
  • Add an waterfall layout and a buffer to stabilize vibrate notes, which make this script truly practical
  • beautify its appearance
  • Solve the Rest issue
  • Outputs to file
  • Custom arguments

About

Simple but practical real-time music note detector

Topics

Resources

License

Stars

Watchers

Forks

Languages