Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

Derive.Call.PitchUtil

Description

Utilities that emit DeriveT.PSignals.

Synopsis

Documentation

interpolator call

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

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

interpolate

make_segment_from :: ControlUtil.Curve -> RealTime.RealTime -> Maybe DeriveT.Pitch -> RealTime.RealTime -> PitchOrTranspose -> Deriver DeriveT.PSignal Source #

Make a curve segment from the previous value, if there was one.

type Interpolate Source #

Arguments

 = RealTime.RealTime 
-> DeriveT.Pitch 
-> RealTime.RealTime 
-> DeriveT.Pitch

start -> starty -> end -> endy

-> DeriveT.PSignal 

segment :: ControlUtil.SRate -> ControlUtil.Curve -> RealTime.RealTime -> DeriveT.Pitch -> RealTime.RealTime -> DeriveT.Pitch -> DeriveT.PSignal Source #

Interpolate between the given points. TODO(polymorphic-signals) same as ControlUtil.segment, well except Eq use

breakpoints

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

Create line segments between the given breakpoints.