Yampa-0.11.1: Library for programming hybrid systems.

Copyright (c) Antony Courtney and Henrik Nilsson Yale University 2003 BSD-style (see the LICENSE file in the distribution) ivan.perez@keera.co.uk provisional non-portable (GHC extensions) None Haskell98

FRP.Yampa.Delays

Contents

Description

SF primitives and combinators to delay signals, introducing new values in them.

Synopsis

# Basic delays

pre :: SF a a Source #

Uninitialized delay operator.

The output has an infinitesimal delay (1 sample), and the value at time zero is undefined.

iPre :: a -> SF a a Source #

Initialized delay operator.

Creates an SF that delays the input signal, introducing an infinitesimal delay (one sample), using the given argument to fill in the initial output at time zero.

fby :: b -> SF a b -> SF a b infixr 0 Source #

Lucid-Synchrone-like initialized delay (read "followed by").

Initialized delay combinator, introducing an infinitesimal delay (one sample) in given SF, using the given argument to fill in the initial output at time zero.

The difference with iPre is that fby takes an SF as argument.

# Timed delays

delay :: Time -> a -> SF a a Source #

Delay a signal by a fixed time t, using the second parameter to fill in the initial t seconds.