Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Custom match function #3

Closed
adamrenklint opened this issue Mar 20, 2015 · 0 comments
Closed

Custom match function #3

adamrenklint opened this issue Mar 20, 2015 · 0 comments

Comments

@adamrenklint
Copy link
Owner

Allow custom match function to be passed, for resolving completely custom expressions:

var expanded = expr(notes, barsPerLoop, beatsPerBar, function (position, frags) {
  if (position === "1.1.01") return true;
  if (frags.bar === 2 || frags.beat === 3) return true;
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant