tools:rhythmustrainer-schwer
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
tools:rhythmustrainer-schwer [10/08/2025 16:33] – angelegt Eric Weber | tools:rhythmustrainer-schwer [12/08/2025 20:59] (aktuell) – Eric Weber | ||
---|---|---|---|
Zeile 229: | Zeile 229: | ||
<div class=" | <div class=" | ||
< | < | ||
- | < | + | < |
| | ||
<div class=" | <div class=" | ||
Zeile 237: | Zeile 237: | ||
<div class=" | <div class=" | ||
- | <div class=" | ||
- | <span class=" | ||
- | < | ||
- | </ | ||
<div class=" | <div class=" | ||
<span class=" | <span class=" | ||
< | < | ||
- | </ | ||
- | <div class=" | ||
- | <span class=" | ||
- | < | ||
</ | </ | ||
<div class=" | <div class=" | ||
Zeile 255: | Zeile 247: | ||
<div class=" | <div class=" | ||
<span class=" | <span class=" | ||
- | < | + | < |
</ | </ | ||
</ | </ | ||
Zeile 310: | Zeile 302: | ||
// Note types with their durations and symbols | // Note types with their durations and symbols | ||
const noteTypes = [ | const noteTypes = [ | ||
- | | + | { symbol: ' |
- | | + | { symbol: ' |
- | { symbol: ' | + | { symbol: ' |
- | { symbol: ' | + | |
- | { symbol: ' | + | |
]; | ]; | ||
Zeile 358: | Zeile 348: | ||
| | ||
if (validNotes.length === 0) { | if (validNotes.length === 0) { | ||
- | // If no note fits, fill with smallest possible | + | // If no note fits, fill with eighth |
while (totalDuration < targetDuration) { | while (totalDuration < targetDuration) { | ||
- | | + | currentRhythm.push(noteTypes[0]); |
- | if (remaining >= 0.25) { | + | totalDuration += 0.5; |
- | | + | |
- | totalDuration += 0.25; | + | |
- | } else { | + | |
- | break; | + | |
- | } | + | |
} | } | ||
break; | break; | ||
Zeile 415: | Zeile 400: | ||
const note = currentRhythm[i]; | const note = currentRhythm[i]; | ||
| | ||
- | // Play the note sound with appropriate duration | + | // Play the note sound |
- | | + | |
- | playBeep(523, | + | |
| | ||
currentTime += note.duration; | currentTime += note.duration; |
tools/rhythmustrainer-schwer.1754836404.txt.gz · Zuletzt geändert: von Eric Weber