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'); // truescheme.match('87654321'); // truescheme.matchCount; // 3scheme.print('text');// Backrounds// 2 5678s Copy
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'); // truescheme.match('87654321'); // truescheme.matchCount; // 3scheme.print('text');// Backrounds// 2 5678s
Constructor.
Protected
Matchers in the set.
Provides read access to the count of matches.
Provides read access to matchers
Add a matcher for use when analysing music.
Create matchers for this scheme/stage.
Matches a row string.
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.