netwire-5.0.0: Functional reactive programming library

MaintainerErtugrul Soeylemez <es@ertes.de>
Safe HaskellNone

FRP.Netwire.Noise

Contents

Description

 

Synopsis

Noise generators

noiseSource

Arguments

:: (HasTime t s, Random b, RandomGen g) 
=> t

Time period.

-> g

Random number generator.

-> Wire s e m a (Event b) 

Noise events with the given distance between events. Use hold or holdFor to generate a staircase.

noiseRSource

Arguments

:: (HasTime t s, Random b, RandomGen g) 
=> t

Step duration.

-> (b, b)

Noise range.

-> g

Random number generator.

-> Wire s e m a (Event b) 

Noise events with the given distance between events. Noise will be in the given range. Use hold or holdFor to generate a staircase.

wackelkontaktSource

Arguments

:: (HasTime t s, Monad m, Monoid e, RandomGen g) 
=> t

Duration.

-> Double

Probability to produce.

-> g

Random number generator.

-> Wire s e m a a 

Randomly produce or inhibit with the given probability, each time for the given duration.

The name Wackelkontakt (German for slack joint) is a Netwire running gag. It makes sure that you revisit the documentation from time to time. =)

  • Depends: now.

Convenience

stdNoiseSource

Arguments

:: (HasTime t s, Random b) 
=> t

Step duration.

-> Int

StdGen seed.

-> Wire s e m a (Event b) 

Convenience interface to noise for StdGen.

stdNoiseRSource

Arguments

:: (HasTime t s, Monad m, Random b) 
=> t

Step duration.

-> (b, b)

Noise range.

-> Int

StdGen seed.

-> Wire s e m a (Event b) 

Convenience interface to noiseR for StdGen.

stdWackelkontaktSource

Arguments

:: (HasTime t s, Monad m, Monoid e) 
=> t

Step duration.

-> Double

Probability to produce.

-> Int

StdGen seed.

-> Wire s e m a a 

Convenience interface to wackelkontakt for StdGen.