Function Frequency

  • Convert a value into a FrequencyClass object.

    Parameters

    Returns FrequencyClass

    Example

    const midi = Tone.Frequency("C3").toMidi();
    console.log(midi);

    Example

    const hertz = Tone.Frequency(38, "midi").toFrequency();
    console.log(hertz);