API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeInputAlternation
One SequenceAction step (or the whole binding a ChordAction accepts) satisfied by any ONE of several alternatives rather than requiring all of them - the array-form equivalent of a `'|'`-separated group of `'+'`-joined chord tokens, e.g. `'A+B|C'`. Every alternative is wrapped in its own array, even a single-channel one (`[[A], [B, C]]`), so this shape is never ambiguous with a plain InputChord (`[A, B]`, meaning "A and B required together", not "A or B"): an InputChord's entries are bare channels, an InputAlternation's are themselves channel arrays. Mixing the two shapes within one step - some entries bare, some nested - is rejected.
import { InputAlternation } from '@codexo/exojs'One SequenceAction step (or the whole binding a ChordAction accepts) satisfied by any ONE of several alternatives rather than requiring all of them - the array-form equivalent of a `'|'`-separated group of `'+'`-joined chord tokens, e.g. `'A+B|C'`.
Every alternative is wrapped in its own array, even a single-channel one (`[[A], [B, C]]`), so this shape is never ambiguous with a plain InputChord (`[A, B]`, meaning "A and B required together", not "A or B"): an InputChord's entries are bare channels, an InputAlternation's are themselves channel arrays. Mixing the two shapes within one step - some entries bare, some nested - is rejected.