Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

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.