Skip to content

Commit 27b6558

Browse files
committed
fix(core): fix chord root in fromNotes builder
1 parent 85589b5 commit 27b6558

File tree

6 files changed

+5
-2332
lines changed

6 files changed

+5
-2332
lines changed

docs/js/docma-web.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/Chord.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export class Chord extends HarmonyBase {
222222
const intervals = `1P ${intervalsArray.join(' ')}`;
223223
const symbol = this.findChordSymbol(intervals) as ChordSymbol | undefined;
224224

225-
return new Chord('A', intervals as ChordIntervals, octaves, { symbol });
225+
return new Chord(root, intervals as ChordIntervals, octaves, { symbol });
226226
}
227227

228228
/**

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"test": "npm run lint:quiet && vitest run",
2121
"test:watch": "vitest watch",
22-
"test:update": "vitest -u",
22+
"test:update": "vitest run -u",
2323
"test:coverage": "vitest run --coverage",
2424
"todos": "leasot -x lib/**/*.ts",
2525
"lint": "eslint lib test",

0 commit comments

Comments
 (0)