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

Safe HaskellNone

Derive.Call.PitchUtil

Contents

Description

Utilities that emit BaseTypes.PSignals.

Synopsis

Documentation

interpolator call

from_env :: Sig.Parser (Maybe BaseTypes.Pitch) Source #

Use this for calls that start from the previous value, to give a way to override that behaviour.

interpolate

type Interpolate Source #

Arguments

 = Bool

include the initial sample or not

-> RealTime.RealTime 
-> BaseTypes.Pitch 
-> RealTime.RealTime 
-> BaseTypes.Pitch

start -> starty -> end -> endy

-> BaseTypes.PSignal 

interpolate_segment :: ControlUtil.SRate -> ControlUtil.Curve -> Interpolate Source #

This defaults some arguments to segment so its more convenient to pass around as a standalone creator of segments.

segment Source #

Arguments

:: ControlUtil.SRate 
-> Bool

include the initial sample

-> Bool

add a sample at end time if one doesn't naturally land there

-> ControlUtil.Curve 
-> RealTime.RealTime 
-> BaseTypes.Pitch 
-> RealTime.RealTime 
-> BaseTypes.Pitch 
-> BaseTypes.PSignal 

Interpolate between the given points.

breakpoints

breakpoints :: ControlUtil.SRate -> ControlUtil.Curve -> [(RealTime.RealTime, BaseTypes.Pitch)] -> BaseTypes.PSignal Source #

Create line segments between the given breakpoints.