mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
revert changing existing addVoicings
+ add registerVoicings for the new logic
This commit is contained in:
parent
d8f80c058d
commit
e5251422fe
@ -78,7 +78,12 @@ export const setVoicingRange = (name, range) => addVoicings(name, voicingRegistr
|
||||
* }, ['C3', 'C6'])
|
||||
* "<C^7 A7 Dm7 G7>".voicings('cookie').note()
|
||||
*/
|
||||
export const addVoicings = (name, dictionary, options = {}) => {
|
||||
export const addVoicings = (name, dictionary, range = ['F3', 'A4']) => {
|
||||
Object.assign(voicingRegistry, { [name]: { dictionary, range } });
|
||||
};
|
||||
|
||||
// new call signature
|
||||
export const registerVoicings = (name, dictionary, options = {}) => {
|
||||
Object.assign(voicingRegistry, { [name]: { dictionary, ...options } });
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user