Skip to content

Commit

Permalink
Merge pull request #1134 from geikha/beat-struct
Browse files Browse the repository at this point in the history
[redo] fix beat function for "step sequencer" style notation (error on last fractional notes)
  • Loading branch information
yaxu authored Jan 31, 2025
2 parents f9ea470 + 4b80c6f commit 08f0416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sound/Tidal/UI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ __beat :: (Pattern (Pattern a) -> Pattern a) -> Time -> Time -> Pattern a -> Pat
__beat usejoin t d p = usejoin $ compress (s, e) . pure <$> p
where
s = t' / d
e = (t' + 1) / d
e = min 1 $ (t' + 1) / d
t' = t `mod'` d

-- |
Expand Down

0 comments on commit 08f0416

Please sign in to comment.