Function falsifyConstantStructure

  • Determine if an equally tempered scale has constant structure i.e. you can tell the interval class from the size of an interval.

    Parameters

    • steps: number[]

      Musical intervals measured in steps not including the implicit 0 at the start, but including the interval of repetition at the end.

    Returns [[number, number], [number, number]] | null

    A pair of pairs of indices that have the same stepspan but different subtension. null if the scale has constant structure.