sonic-weave
    Preparing search index...

    Function parseScaleWorkshop2Line

    • Parse a string to the Interval it represents.

      Parameters

      • input: string

        A string to parse.

      • OptionalnumberOfComponents: number

        Number of components to use for the Interval instance's TimeMonzo prime exponent part.

      • admitBareNumbers: boolean = false

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

      • universalMinus: boolean = true

        Allow unary minus in front of any supported Scale Workshop 2 line type instead of restricting it to cents values.

      Returns Interval

      Interval instance constructed from the input string.

      An error if the input cannot be interpreted as a supported Scale Workshop 2 interval line.