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