scamp_extensions.pitch.utilities.midi_to_hertz
- scamp_extensions.pitch.utilities.midi_to_hertz(midi_value: Real, A: Real = 440) Real [source]
Given a MIDI pitch, returns the corresponding frequency in hertz. The first argument can optionally be a list, tuple, or iterator, in which case this is performed on each element.
- Parameters:
midi_value – a midi pitch (e.g. 60 for middle C)
A – the tuning of A4 in hertz