refactor uses of voicings

+ fix usages of scaleTranspose
This commit is contained in:
Felix Roos 2022-12-10 21:47:58 +01:00
parent bc43fc9585
commit b81a66f07e
7 changed files with 32 additions and 14 deletions

View file

@ -1533,7 +1533,7 @@ export const { firstOf, every } = register(['firstOf', 'every'], function (n, fu
/**
* Like layer, but with a single function:
* @name _apply
* @name apply
* @memberof Pattern
* @example
* "<c3 eb3 g3>".scale('C minor').apply(scaleTranspose("0,2,4")).note()

View file

@ -31,6 +31,7 @@ export const voicingDictionaries = {
* '7alt': ['3M 7m 10m 13m 15P'],
* '7#11': ['7m 10m 13m 15P 17m'],
* }, ['C3', 'C6'])
* "<C^7 A7 Dm7 G7>".voicings('cookie').note()
*/
export const addVoicings = (name, dictionary, range = ['F3', 'A4']) => {
Object.assign(voicingDictionaries, { [name]: { dictionary, range } });