sonic-weave
    Preparing search index...

    Function parseChord

    • Parse a list of intervals separated by '|', '&', ':', ';', ',' or whitespace.

      Parameters

      • input: string

        User input in a context that expects a chord.

      • includePrelude: boolean = true

        Whether or not to include the extended standard library. Passing in false results in a faster start-up time.

      Returns Interval[]

      An array containing only the parsed Interval instances, skipping non-interval values produced while evaluating the chord expression.

      An error if the chord syntax is invalid or evaluation fails before interval results can be collected.