Moe-0.1: A FRP library based on signal functions.

FRP.Moe.Combinators

Synopsis

Documentation

sfConst :: a -> SF b aSource

Input: i1, i2, ... (ignored)

Output: x, x, ...

time :: SF () DoubleSource

Input: (), (), ...

Outputs the sequence of the current time at each sample point

noise :: (Random a, RandomGen b) => b -> SF () aSource

Input: i1, i2, ... (ignored)

Outputs a sequence of random generated numbers using g0

noiseR :: (Random a, RandomGen b) => (a, a) -> b -> SF () aSource

Input: i1, i2, ... (ignored)

Outputs a sequence of random generated numbers using g0, with lh

indicating the minimum and maximum numbers that are allowed.

rep :: Int -> SF a a -> SF a aSource

rep n sf = sf >>> sf >>> ... >>> sf (n times)

cycle :: [a] -> SF () aSource

xs: [x1, x2, x3]

Input: (), (), (), (), (), ...

Output: x1, x2, x3, x1, x2, ...

timedCycle :: [(DTime, a)] -> SF () aSource

data MemOp a Source

Constructors

Read 
Write a 

stateful :: (a -> a) -> a -> SF () aSource

stateful2 :: (a -> b -> a) -> a -> SF b aSource

integral :: SF Double DoubleSource

Simple integration

broadcast :: Functor col => col sf -> a -> col (a, sf)Source