powered by
Format notes for use in other music functions
formatNote(notes, default.octave = 4)
Vector, String: Input notes in the form c("C4", "D4", "Eb4")
c("C4", "D4", "Eb4")
Integer: Octave to use if missing in notes. Default = 4; i.e. "C" becomes "C4"
notes
"C"
"C4"
E.D. Gennatas
Converts sharps to flats, adds octave number if missing (Default = 4), and converts (rare) "bb" notes to regular notes
formatNote(c("D#4", "Ebb"))
Run the code above in your browser using DataLab