can now set mode and anchor on voicing dictionary

This commit is contained in:
Felix Roos 2023-07-12 23:47:13 +02:00
parent 4cf3655c08
commit d8f80c058d
2 changed files with 8 additions and 8 deletions

View file

@ -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;