• Parse a string to the Interval it represents.

    Parameters

    • input: string

      A string to parse.

    • numberOfComponents: number

      Number of components to use for the Interval instance's monzo vector part.

    • Optional options: IntervalOptions

      Formatting options.

    • admitBareNumbers: boolean = false

      Interprete bare numbers as n/1 ratios instead of throwing an error.

    • universalMinus: boolean = true

      Allow unary minus operator in front of every line type.

    Returns Interval

    Interval instance constructed from the input string.

    Throws

    An error if the input cannot be interpreted as an interval.

Generated using TypeDoc