tools:rhythmustrainer-extrem
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Nächste Überarbeitung | Vorherige Überarbeitung | ||
tools:rhythmustrainer-extrem [12/08/2025 20:58] – angelegt Eric Weber | tools:rhythmustrainer-extrem [18/08/2025 14:36] (aktuell) – Eric Weber | ||
---|---|---|---|
Zeile 6: | Zeile 6: | ||
< | < | ||
< | < | ||
+ | @font-face { | ||
+ | font-family: | ||
+ | src: url(' | ||
+ | src: url(' | ||
+ | src: url(' | ||
+ | font-weight: | ||
+ | font-style: normal; | ||
+ | } | ||
.rhythm-trainer { | .rhythm-trainer { | ||
font-family: | font-family: | ||
Zeile 358: | Zeile 366: | ||
| | ||
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 418: | ||
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-extrem.1755025127.txt.gz · Zuletzt geändert: von Eric Weber