Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/components/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,13 @@ function App() {
if (intervalsInCount) {
const newIntervals = [...intervalsInCount];
const current = newIntervals[currentIndex];
current.time--; // assume: interval at currentIndex is of non-zero time
// current.time--; // assume: interval at currentIndex is of non-zero time
current.time--;

while (current.time <= 3 && current.time > 0) {
ring.play(NOTES.e5, 1, 0.08);
break;
}
if (current.time === 0) {
const lastIndex = newIntervals.length - 1;
if (currentIndex === lastIndex) {
Expand Down