Skip to content

Commit

Permalink
fix: Timing in attractor
Browse files Browse the repository at this point in the history
  • Loading branch information
designerzen committed Sep 30, 2024
1 parent 245069d commit 807487d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/attractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ export default class Attractor{
{
this.barCounter++

if (this.barCounter%BARS_BEFORE_CHANGING_DRUMS)
if (this.barCounter%BARS_BEFORE_CHANGING_DRUMS === 0)
{
this.application.setRandomDrumPattern()
}

// toggles disco mode!
if (this.barCounter%BARS_BEFORE_TOGGLING_DISCO)
if (this.barCounter%BARS_BEFORE_TOGGLING_DISCO === 0)
{
// toggle if no arg passed
this.application.setDiscoMode()
Expand Down

0 comments on commit 807487d

Please sign in to comment.