netwire-5.0.1: Functional reactive programming library

Copyright(c) 2013 Ertugrul Soeylemez
LicenseBSD3
MaintainerErtugrul Soeylemez <es@ertes.de>
Safe HaskellNone
LanguageHaskell2010

FRP.Netwire.Noise

Contents

Description

 

Synopsis

Noise generators

noise Source

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.

noiseR Source

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.

wackelkontakt Source

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

stdNoise Source

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.

stdNoiseR Source

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.

stdWackelkontakt Source

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.