powered by
Get notes (in scientific pitch notation) from frequencies. The note with the closest frequency is returned.
getNotes(frequencies, minOctave = 0, maxOctave = 8, option = "b")
a character vector of notes
numeric vector, frequencies in Hz
integer, smallest (lowest-pitched) octave
integer, largest (highest-pitched) octave
character, use 'b' or '#' in note names?
# example code getNotes(seq(440,10000,100)) getNotes(seq(440,10000,100),maxOctave=10,option='#')
Run the code above in your browser using DataLab