From 7a52d1a8d27d18367dffd1feb5f999d134003645 Mon Sep 17 00:00:00 2001 From: Tom Keefe <8655118+MisterKeefe@users.noreply.github.com> Date: Mon, 4 Dec 2023 22:07:38 +0000 Subject: [PATCH] fix bug with loading sequence from URL, simplify changing progression@ --- src/routes/+page.svelte | 43 +++++----------------------------- src/routes/progressionStore.ts | 26 +++----------------- 2 files changed, 9 insertions(+), 60 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 1f4e2c8..7baeefc 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -9,17 +9,18 @@ randomizeTonic, randomizeProgression, setTonic, - previousProgression, - nextProgression, trySetProgressionFromURL } from './progressionStore'; import { relativeChordToString } from '$lib/music/relativeChord'; - import Chevron from './Chevron.svelte'; - const onKeyDown = (e: KeyboardEvent) => { + const onKeyUp = (e: KeyboardEvent) => { if (e.code == 'Space') { randomizeApp(); e.preventDefault(); + } else if (e.code == 'KeyP') { + randomizeProgression(); + } else if (e.code == 'KeyT') { + randomizeTonic(); } }; @@ -67,21 +68,7 @@