[aubio-user] Python aubio module: pitch

Paul Brossier piem at aubio.org
Sun Nov 27 11:44:47 CET 2016


Hi Jennifer,

By default, the pitch is expressed in Hz. In this example, demo_pitch.py
sets the output unit to "midi", the midi note number.

The output unit can be set with `pitchinstance.set_unit(output_unit)`,
`output_unit` being one of "Hz", "midi", "cent", or "bin".

Best, Paul

On 11/27/2016 04:39 AM, Jennifer Lee wrote:
> Hi, 
> 
> This is Jennifer Lee, a CMU college student working on a Python project using aubio. I’m looking at your python file, demo_pitch.py, to capture the pitch of an audio wav file into an array. However, I don’t how aubio is measuring the pitch. Is it in Hz? kHz? Or is there a different metric aubio uses?
> Thank you.
> 
> Best,
> Jennifer Lee
> _______________________________________________
> aubio-user mailing list
> aubio-user at aubio.org
> https://lists.aubio.org/listinfo/aubio-user
> 



More information about the aubio-user mailing list