can now set mode and anchor on voicing dictionary
This commit is contained in:
parent
4cf3655c08
commit
d8f80c058d
2 changed files with 8 additions and 8 deletions
|
|
@ -90,7 +90,7 @@ let modeTarget = {
|
|||
above: (v) => v[0],
|
||||
};
|
||||
|
||||
export function renderVoicing({ chord, dictionary, offset = 0, n, mode = 'above', anchor = 'c4' }) {
|
||||
export function renderVoicing({ chord, dictionary, offset = 0, n, mode = 'below', anchor = 'c5' }) {
|
||||
const [root, symbol] = tokenizeChord(chord);
|
||||
const rootChroma = pc2chroma(root);
|
||||
anchor = anchor?.note || anchor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue