scamp_extensions.pitch.utilities.hertz_to_midi
- scamp_extensions.pitch.utilities.hertz_to_midi(hertz_value: Real, A: Real = 440) Real [source]
Given a frequency in hertz, returns the corresponding (floating point) MIDI pitch. The first argument can optionally be a list, tuple, or iterator, in which case this is performed on each element.
- Parameters:
hertz_value – a frequency in hertz
A – the tuning of A4 in hertz