docs + rename under -> duck, quak quak
This commit is contained in:
parent
3d8724c90d
commit
e05f74cef1
7 changed files with 340 additions and 247 deletions
|
|
@ -86,7 +86,7 @@ export function scaleStep(notes, offset) {
|
|||
// different ways to resolve the note to compare the anchor to (see renderVoicing)
|
||||
let modeTarget = {
|
||||
below: (v) => v.slice(-1)[0],
|
||||
under: (v) => v.slice(-1)[0],
|
||||
duck: (v) => v.slice(-1)[0],
|
||||
above: (v) => v[0],
|
||||
};
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ export function renderVoicing({ chord, dictionary, offset = 0, n, mode = 'below'
|
|||
if (n !== undefined) {
|
||||
return [scaleStep(notes, n)];
|
||||
}
|
||||
if (mode === 'under') {
|
||||
if (mode === 'duck') {
|
||||
notes = notes.filter((n) => x2midi(n) !== noteToMidi(anchor));
|
||||
}
|
||||
return notes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue