build
This commit is contained in:
parent
e694475556
commit
1182d0e45d
5 changed files with 27 additions and 15 deletions
6
docs/dist/voicings.js
vendored
6
docs/dist/voicings.js
vendored
|
|
@ -24,13 +24,11 @@ Pattern.prototype.voicings = function(range) {
|
|||
}));
|
||||
});
|
||||
};
|
||||
Pattern.prototype.rootNotes = function(octave = 2) {
|
||||
Pattern.prototype._rootNotes = function(octave = 2) {
|
||||
return this.fmap((value) => {
|
||||
const [_, root] = value.match(/^([a-gA-G][b#]?).*$/);
|
||||
return root + octave;
|
||||
});
|
||||
};
|
||||
Pattern.prototype.define("voicings", (range, pat) => pat.voicings(range), {composable: true});
|
||||
Pattern.prototype.define("rootNotes", (pat) => {
|
||||
return pat.rootNotes();
|
||||
}, {composable: true});
|
||||
Pattern.prototype.define("rootNotes", (oct, pat) => pat.rootNotes(oct), {composable: true, patternified: true});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue