diff options
author | Joris | 2022-07-09 17:35:15 +0200 |
---|---|---|
committer | Joris | 2022-07-09 17:35:15 +0200 |
commit | fadee0cda55b4b328dbe778a5d511f9222e7d50c (patch) | |
tree | ddb2bc6c4f12a365c815c0a5ad913479f05341ba /src/view/play.ts | |
parent | 56dd2ec807eda8dc328a92e1c8cf88fcaf786037 (diff) |
Add seventh chords
Diffstat (limited to 'src/view/play.ts')
-rw-r--r-- | src/view/play.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/play.ts b/src/view/play.ts index 20da6c7..f0340f7 100644 --- a/src/view/play.ts +++ b/src/view/play.ts @@ -39,8 +39,11 @@ function shiftChords(chords: Element, options: Options) { } function chordNode(options?: Options): Element { + let [base, alteration] = options ? chord.generate(options) : ['', ''] + return h('div', { className: 'g-Chord' }, - options ? chord.generate(options) : '' + base, + h('sup', {}, alteration) ) } |