Skip to content

Commit

Permalink
alt
Browse files Browse the repository at this point in the history
  • Loading branch information
ejconlon committed Feb 17, 2024
1 parent c5a6ba9 commit 28be946
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions minipat-dirt/src/Minipat/Dirt/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ module Minipat.Dirt.Prelude
, slowList
, fastAppend
, slowAppend
, alt
, rand
)
where

Expand Down Expand Up @@ -186,6 +188,12 @@ fastAppend s1 s2 = estreamSeq [(s1, 1), (s2, 1)]
slowAppend :: S a -> S a -> S a
slowAppend s1 s2 = slowBy 2 (fastAppend s1 s2)

alt :: Seq (S a) -> S a
alt = estreamAlt

rand :: Seq (S a) -> S a
rand = estreamRand

-- TODO
-- seqPLoop :: Seq (CycleTime, CycleTime, S a) -> S a
-- rev :: S a -> S a
Expand Down

0 comments on commit 28be946

Please sign in to comment.