Convert a value into a FrequencyClass object.
Optional
const midi = Tone.Frequency("C3").toMidi();console.log(midi); Copy
const midi = Tone.Frequency("C3").toMidi();console.log(midi);
const hertz = Tone.Frequency(38, "midi").toFrequency();console.log(hertz); Copy
const hertz = Tone.Frequency(38, "midi").toFrequency();console.log(hertz);
Convert a value into a FrequencyClass object.