improve set presets function
This commit is contained in:
Binary file not shown.
+3
-2
@@ -144,8 +144,9 @@ function startPreset(preset) {
|
|||||||
selectedPreset = preset;
|
selectedPreset = preset;
|
||||||
bpm.value = preset.tempo;
|
bpm.value = preset.tempo;
|
||||||
|
|
||||||
stop();
|
if (!isRunning.value) {
|
||||||
start();
|
start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const sortedPresets = computed(() =>
|
const sortedPresets = computed(() =>
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ button#start {
|
|||||||
}
|
}
|
||||||
|
|
||||||
button#stop {
|
button#stop {
|
||||||
background: var(--orange);
|
background-color: var(--orange);
|
||||||
}
|
}
|
||||||
|
|
||||||
#controls {
|
#controls {
|
||||||
|
|||||||
Reference in New Issue
Block a user