Function intervalToFrequencyRatio

  • Convert an interval (in semitones) to a frequency ratio.

    Parameters

    • interval: number

      the number of semitones above the base note

    Returns number

    Example

    Tone.intervalToFrequencyRatio(0); // 1
    Tone.intervalToFrequencyRatio(12); // 2
    Tone.intervalToFrequencyRatio(-12); // 0.5