Safe Haskell | Safe-Inferred |
---|
Utilities that emit DeriveT.PSignal
s.
Synopsis
- type PitchOrTranspose = Either DeriveT.Pitch Pitch.Transpose
- resolve_pitch_transpose :: DeriveT.Pitch -> PitchOrTranspose -> DeriveT.Pitch
- interpolator_call :: Text -> ControlUtil.CurveD -> ControlUtil.InterpolatorTime Pitch -> Generator Pitch
- pitch_arg :: Sig.Parser PitchOrTranspose
- from_env :: Sig.Parser (Maybe DeriveT.Pitch)
- prev_val :: Maybe DeriveT.Pitch -> PitchArgs -> Maybe DeriveT.Pitch
- interpolator_variations :: [(Expr.Symbol, Generator Pitch)]
- make_segment_from :: ControlUtil.Curve -> RealTime.RealTime -> Maybe DeriveT.Pitch -> RealTime.RealTime -> PitchOrTranspose -> Deriver DeriveT.PSignal
- make_segment :: ControlUtil.Curve -> RealTime.RealTime -> DeriveT.Pitch -> RealTime.RealTime -> DeriveT.Pitch -> Deriver DeriveT.PSignal
- type Interpolate = RealTime.RealTime -> DeriveT.Pitch -> RealTime.RealTime -> DeriveT.Pitch -> DeriveT.PSignal
- segment :: ControlUtil.SRate -> ControlUtil.Curve -> RealTime.RealTime -> DeriveT.Pitch -> RealTime.RealTime -> DeriveT.Pitch -> DeriveT.PSignal
- breakpoints :: ControlUtil.SRate -> ControlUtil.Curve -> [(RealTime.RealTime, DeriveT.Pitch)] -> DeriveT.PSignal
Documentation
interpolator call
interpolator_call :: Text -> ControlUtil.CurveD -> ControlUtil.InterpolatorTime Pitch -> Generator Pitch Source #
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.
prev_val :: Maybe DeriveT.Pitch -> PitchArgs -> Maybe DeriveT.Pitch Source #
interpolator_variations :: [(Expr.Symbol, Generator Pitch)] Source #
Pitch version of ControlUtil.interpolator_variations
.
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.
make_segment :: ControlUtil.Curve -> RealTime.RealTime -> DeriveT.Pitch -> RealTime.RealTime -> DeriveT.Pitch -> Deriver DeriveT.PSignal Source #
type Interpolate Source #
= 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.