From 81c875bd14c435e26e1e156749554a983f806cfb Mon Sep 17 00:00:00 2001 From: terry feng Date: Sat, 13 Apr 2024 17:44:56 -0700 Subject: [PATCH] hack in EZscore --- src/host.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/host.ts b/src/host.ts index edc7662..098d67c 100644 --- a/src/host.ts +++ b/src/host.ts @@ -116,6 +116,36 @@ export async function startChuck() { // TODO: for debugging, make theChuck global (window as any).theChuck = theChuck; + + // TODO: EZScore HACKS @terryfeng @alexhan + await theChuck + .loadFile( + "https://raw.githubusercontent.com/tae1han/ChucKTonal/main/src/ezchord.ck" + ) + .then(() => { + theChuck.runFile("ezchord.ck"); + }); + await theChuck + .loadFile( + "https://raw.githubusercontent.com/tae1han/ChucKTonal/main/src/ezscore.ck" + ) + .then(() => { + theChuck.runFile("ezscore.ck"); + }); + await theChuck + .loadFile( + "https://raw.githubusercontent.com/tae1han/ChucKTonal/main/src/ezscale.ck" + ) + .then(() => { + theChuck.runFile("ezscale.ck"); + }); + await theChuck + .loadFile( + "https://raw.githubusercontent.com/tae1han/ChucKTonal/main/src/scoreplayer.ck" + ) + .then(() => { + theChuck.runFile("scoreplayer.ck"); + }); } /**