Function hasMarginConstantStructure

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

    Parameters

    • scaleCents: number[]

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

    • margin: number

      Margin of equivalence between two intervals measured in cents.

    Returns boolean

    true if the scale definitely has constant structure. (A false result may convert to true using a smaller margin.)