From c69432d2f20fcb9e8d4c3abaa6884065f25adfc1 Mon Sep 17 00:00:00 2001 From: Kim Jeong-won Date: Tue, 27 Feb 2024 00:47:10 +0900 Subject: [PATCH] feat: change notation method for chord tension --- src/lib/notation/chord/ChordTensionNotation .svelte | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lib/notation/chord/ChordTensionNotation .svelte b/src/lib/notation/chord/ChordTensionNotation .svelte index f16fc34..7f63fd9 100644 --- a/src/lib/notation/chord/ChordTensionNotation .svelte +++ b/src/lib/notation/chord/ChordTensionNotation .svelte @@ -4,12 +4,16 @@ export let tensions: number[] = []; -{#if tensions.length > 0}{stringifyFinaleJazzChordSigns(['('])}{#each tensions as tension, idx}{#if idx !== 0}{','} 0}{#if tensions.length === 1}add{:else}{stringifyFinaleJazzChordSigns(['('])}{/if}{#each tensions as tension, idx}{#if idx !== 0}{','}{/if}{@const flat = tension === 13 || tension === 20}{@const sharp = tension === 15 || tension === 18}{#if flat}{stringifyFinaleJazzChordSigns(['Flat'])}{/if}{#if sharp}{stringifyFinaleJazzChordSigns(['Sharp'])}{/if}{stringifyFinaleJazzChordSigns( chordTensionToFinaleJazzChordSignMap[tension] - )}{/each}{stringifyFinaleJazzChordSigns([')'])}{/if} + )}{/each}{#if tensions.length > 1}{stringifyFinaleJazzChordSigns([')'])}{/if}{/if}