midi_to_freq | R Documentation |
Converts MIDI note numbers to frequencies (Hz), optionally using stretched octaves. Corresponds to Equation 1 of Parncutt & Strasburger (1994), but with Hz instead of kHz.
midi_to_freq(midi, stretched_octave = FALSE, tuning_ref_Hz = 440)
midi |
Numeric vector of MIDI note numbers |
stretched_octave |
Logical scalar; whether or not to use a stretched octave. Default is |
tuning_ref_Hz |
The tuning reference point in Hz, should correspond to the frequency of the A above middle C (typically 440 Hz) |
Numeric vector of frequencies in Hz
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.