Skip to content

Commit

Permalink
fix steptaper
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxu committed Apr 11, 2024
1 parent b5ac6f7 commit 31ac616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sound/Tidal/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ fastcat = fastCat
-}
timeCat :: [(Time, Pattern a)] -> Pattern a
timeCat ((_,p):[]) = p
timeCat tps = setTactus total $ stack $ map (\(s,e,p) -> compressArc (Arc (s/total) (e/total)) p) $ arrange 0 tps
timeCat tps = setTactus total $ stack $ map (\(s,e,p) -> compressArc (Arc (s/total) (e/total)) p) $ arrange 0 $ filter (\(t, _) -> t > 0) $ tps
where total = sum $ map fst tps
arrange :: Time -> [(Time, Pattern a)] -> [(Time, Time, Pattern a)]
arrange _ [] = []
Expand Down

0 comments on commit 31ac616

Please sign in to comment.