Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

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

 = 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 :: ControlUtil.SRate -> ControlUtil.Curve -> RealTime.RealTime -> BaseTypes.Pitch -> RealTime.RealTime -> BaseTypes.Pitch -> BaseTypes.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, BaseTypes.Pitch)] -> BaseTypes.PSignal Source #

Create line segments between the given breakpoints.