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
This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!