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

Clone and transpose sequence, pattern or channel #14

Open
adamrenklint opened this issue May 8, 2015 · 1 comment
Open

Clone and transpose sequence, pattern or channel #14

adamrenklint opened this issue May 8, 2015 · 1 comment

Comments

@adamrenklint
Copy link
Owner

Makes a deep clone, executes callback, passing each note to be modified or rejected.

var newPattern = oldPattern.transpose(function (note) {
  if (note.key === "A2") note.key = "A3";
  if (note.key === "B1") return false;
});
var newChannel = newPattern.channel(1).transpose(...);
var newSequence = anySequence.transpose();
@adamrenklint
Copy link
Owner Author

Is transpose an good term here, or is it confused by other meanings in music theory?

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