Skip to content

Commit

Permalink
first beat prob
Browse files Browse the repository at this point in the history
  • Loading branch information
christoffon committed Jul 2, 2024
1 parent 715c122 commit 6bb293c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,6 @@ func main() {

}(beatNo, totalNo, *bpm, t, val)

totalNo = totalNo + 1
beatNo = beatNo + 1

if beatNo >= *mod {
beatNo = 0
barNo = barNo + 1
c++
}

if totalNo%100 == 0 {
go func(_offset time.Time) {
off, err := getOffset()
Expand Down Expand Up @@ -208,6 +199,15 @@ func main() {
ms := time.Duration(dur.Microseconds()-drift.Microseconds()) * time.Microsecond
time.Sleep(ms)

totalNo = totalNo + 1
beatNo = beatNo + 1

if beatNo >= *mod {
beatNo = 0
barNo = barNo + 1
c++
}

//time.Sleep(time.Duration(1000 / *fps) * time.Millisecond)
}

Expand Down

0 comments on commit 6bb293c

Please sign in to comment.