Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Derive.Call.Prelude.SignalTransform

Contents

Description

Transformers on control and pitch signals.

Synopsis

note

pitch

control

slew_limiter :: RealTime.RealTime -> Signal.Y -> Signal.Control -> Signal.Control Source #

Smooth the signal by not allowing the signal to change faster than the given slope.

slope_segment :: RealTime.RealTime -> Signal.Y -> Signal.Y -> (RealTime.RealTime, Signal.Y) -> Maybe RealTime.RealTime -> Signal.Control Source #

Produce a segment up to but not including the next sample.

smooth Source #

Arguments

:: ControlUtil.Curve 
-> RealTime.RealTime 
-> RealTime.RealTime

If negative, each segment is from this much before the original sample until the sample. If positive, it starts on the sample. If samples are too close, the segments are shortened correspondingly.

-> Signal.Control 
-> Signal.Control 

Use the function to create a segment between each point in the signal.

smooth_relative :: ControlUtil.Curve -> RealTime.RealTime -> Typecheck.Function -> Signal.Control -> Signal.Control Source #

Like smooth, but the transition time is a 0--1 proportion of the available time, rather than an absolute time.