Returns the closest MIDI note value for a given frequency.
Syntax
freqToMidi(frequency)
Parameters
frequency
Number:
A freqeuncy, for example, the "A" above Middle C is 440Hz
Returns
Number: MIDI note value
Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!