1 {-# LANGUAGE Arrows #-}
3 module Arpeggiated where
10 controllerValue :: Int -> SF () Int
11 controllerValue = undefined
13 arpeggiated :: SF (Event Note) (Event Note)
14 arpeggiated = proc n -> do
15 c <- controllerValue 1 -< ()
16 n' <- fmap perfectFifth ^<< delayEvent undefined -< n
17 n'' <- fmap majorThird ^<< delayEvent undefined -< n'
18 returnA -< mergeEvents [n, n', n'']