Free Touch Pricker
    Preparing search index...

    Class AbstractMatcherAbstract

    Base for classes that match rows for music

    Matchers are given a row string using match, which should immediately return whether or not the row string has matched. An internal matchCount should log a meaningful count of the matches that have occurred. Matchers should provide a text template so their results can be output.

    The Pattern class is the simplest matcher implemented so far, allowing simple patterns of bells to be matched at the start or end of rows. A more sophisticated matcher might derive from AbstractScheme to perform a full musical analysis of a touch.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    print: Print

    Accessors

    • get matchCount(): number

      Provides read access to the count of matches. This should increment for each match that occurs.

      Returns number

    Methods

    • Matches a row string.

      Parameters

      • row: string

        Row to check, provided as a string value (not a Row).

      Returns boolean

      Whether or not a match occurred.