Skip to content

Commit

Permalink
Update audio_bytebeats.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
CardealRusso authored Oct 17, 2024
1 parent fc5460f commit cb3a5f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/audio_bytebeats.nim
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ proc generateAudio(n: int): seq[float32] =

while app.loop and app.keys[27] == 0:
t.inc
if app.mouse.mclick[0] == 1:
currentBeat = (currentBeat + 1) mod byteBeats.len
if app.mouse.mclick[0] == 1 or app.mouse.mclick[1] == 1:
currentBeat = (currentBeat + (if app.mouse.mclick[0] == 1: 1 else: -1) + byteBeats.len) mod byteBeats.len
echo "Switched to ByteBeat ", currentBeat + 1

if app_audio.available > 0:
Expand Down

0 comments on commit cb3a5f9

Please sign in to comment.