Free Touch Pricker
    Preparing search index...

    Class CustomScheme

    Custom music matching scheme with matchers defined at runtime.

    Music schemes usually assemble their AbstractMatchers when constructed. This scheme allows matchers to be provided dynamically before matching.

    const scheme = new CustomScheme(Stage.Major);
    scheme.addMatcher(new Pattern('87654321', 'Backrounds'));
    scheme.addMatcher(new Pattern('5678'));
    scheme.match('43125678'); // true (matches)
    scheme.match('13245678'); // true
    scheme.match('87654321'); // true
    scheme.matchCount; // 3

    scheme.print('text');
    // Backrounds
    // 2 5678s

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _matchers: AbstractMatcher[]

    Matchers in the set.

    _stage: Stage
    print: Print

    Accessors

    • get matchCount(): number

      Provides read access to the count of matches.

      Returns number

    Methods