Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxu committed Jan 17, 2025
1 parent 50b443e commit 85ff62b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Sound/Tidal/Control.hs
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,6 @@ striate' :: Pattern Int -> Pattern Double -> ControlPattern -> ControlPattern
striate' = striateBy

_striateBy :: Int -> Double -> ControlPattern -> ControlPattern
-- _striateBy n f p = fastcat $ map (offset . fromIntegral) [0 .. n-1]
-- where offset i = p # P.begin (pure (slot * i) :: Pattern Double) # P.end (pure ((slot * i) + f) :: Pattern Double)
-- slot = (1 - f) / fromIntegral n
-- _striateBy :: Int -> Double -> ControlPattern -> ControlPattern
-- _striateBy n f p = fastcat $ map (offset) [0 .. n-1]
-- where offset i = p # P.begin (pure (slot * i) :: Pattern Double) # P.end (pure ((slot * i) + f) :: Pattern Double)
-- slot = (1 - f) / fromIntegral (n-1)
_striateBy n f p = keepTactus (withTactus (* toRational n) p) $ fastcat $ map (offset . fromIntegral) [0 .. n-1]
where offset i = mergePlayRange (slot*i, (slot*i)+f) <$> p
slot = (1 - f) / fromIntegral (n-1)
Expand Down

0 comments on commit 85ff62b

Please sign in to comment.