Skip to content

Commit

Permalink
chore: remove logs and changes design a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
threedalpeng committed Feb 26, 2024
1 parent 843aa42 commit 6a4fc3a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/lib/device/metronome/MetronomeOptions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
min={20}
/>
</div>
<div class="tooltip tooltip-right min-h-0" data-tip="Only last 5 taps will be calculated">
<div class="tooltip tooltip-bottom min-h-0" data-tip="Only last 5 taps will be calculated">
<button
class="btn btn-square btn-primary aspect-square h-10 min-h-0 p-0"
on:click={(e) => {
Expand Down
2 changes: 0 additions & 2 deletions src/lib/practice/RandomBox/RandomBoxProvider.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
const randomBox = setRandomBoxContext(new RandomBox<T>(items));
$: randomBox.items = items;
console.log(randomBox);
onDestroy(() => {
randomBox.destroy();
});
Expand Down
1 change: 0 additions & 1 deletion src/lib/timer/tick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ export class AudioClockTimer {

const cleanupIdList = this.#cleanupSchedules.getAll(tickState.tickPassed);
if (cleanupIdList) {
console.log(cleanupIdList);
cleanupIdList.forEach((id) => {
const event = this.#events.get(id);
if (event && event.cleanup) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
timer.beatPerBar = practice.tempo.beatPerBar;
timer.signatureUnit = practice.tempo.signatureUnit;
}
console.log(timer);
</script>

<MetronomeProvider {timer}>
Expand Down
7 changes: 3 additions & 4 deletions src/routes/practice/(practice)/[category]/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
}
// preload soundfont
guitarSoundfont.load.then(() => {
console.count('afterload');
currentScheduleIdList.forEach((id) => {
timer.cancelSchedule(id);
});
Expand All @@ -74,7 +73,6 @@
const boardScheduleId = timer.scheduleOnTempo({
time: board.time,
animation: () => {
console.log('replace board');
currentActiveFingers.clear();
currentBoard = board;
}
Expand All @@ -101,7 +99,6 @@
currentActiveFingers = currentActiveFingers;
nextNotes = nextThreeFingers;
return () => {
console.log('?');
currentActiveFingers.delete(note.position);
currentActiveFingers = currentActiveFingers;
};
Expand Down Expand Up @@ -133,7 +130,9 @@
</div>
</div>
<div class="relative flex h-full flex-col items-center justify-center">
<FingerBoard class="" readonly {fingers} {fretRange}></FingerBoard>
<button on:click={replaceScore}>
<FingerBoard class="max-w-[100vw]" readonly {fingers} {fretRange}></FingerBoard>
</button>
<MetronomeBeats class="p-20" />
<MetronomePlayButton class="h-20" />
</div>
Expand Down

0 comments on commit 6a4fc3a

Please sign in to comment.