Skip to content

Commit

Permalink
s_everycycle alias
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxu committed Apr 15, 2024
1 parent 00b079a commit 5dae76f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Sound/Tidal/Stepwise.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ s_nth' tp f p = innerJoin $ (\t -> _s_nth False True t f p) <$> tp
s_every :: Pattern Int -> (Pattern a -> Pattern a) -> Pattern a -> Pattern a
s_every = s_nth'

s_everycycle :: Pattern Int -> (Pattern a -> Pattern a) -> Pattern a -> Pattern a
s_everycycle = s_nthcycle'

-- | Like @s_taper@, but returns a list of repetitions
s_taperlist :: Pattern a -> [Pattern a]
s_taperlist pat@(Pattern _ (Just t) _) = pat : map (\r -> _s_sub r pat) [1 .. t]
Expand Down

0 comments on commit 5dae76f

Please sign in to comment.