Skip to content

Commit

Permalink
feat: change notation method for chord tension
Browse files Browse the repository at this point in the history
  • Loading branch information
threedalpeng committed Feb 26, 2024
1 parent 7de862f commit c69432d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/lib/notation/chord/ChordTensionNotation .svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
export let tensions: number[] = [];
</script>

{#if tensions.length > 0}<span class="align-super mr-4">{stringifyFinaleJazzChordSigns(['('])}</span
>{#each tensions as tension, idx}{#if idx !== 0}<span class="font-jazz align-super">{','}</span
{#if tensions.length > 0}{#if tensions.length === 1}<span class="align-[0.20em]">add</span
>{:else}<span class="mr-4 align-super">{stringifyFinaleJazzChordSigns(['('])}</span
>{/if}{#each tensions as tension, idx}{#if idx !== 0}<span class="mr-1 align-[0.20em] font-jazz"
>{','}</span
>{/if}{@const flat = tension === 13 || tension === 20}{@const sharp =
tension === 15 || tension === 18}{#if flat}<span class="align-super"
>{stringifyFinaleJazzChordSigns(['Flat'])}</span
>{/if}{#if sharp}<span class="align-super">{stringifyFinaleJazzChordSigns(['Sharp'])}</span
>{/if}{stringifyFinaleJazzChordSigns(
chordTensionToFinaleJazzChordSignMap[tension]
)}{/each}<span class="align-super ml-2">{stringifyFinaleJazzChordSigns([')'])}</span>{/if}
)}{/each}{#if tensions.length > 1}<span class="ml-2 align-super"
>{stringifyFinaleJazzChordSigns([')'])}</span
>{/if}{/if}

0 comments on commit c69432d

Please sign in to comment.