Karya, built on 2018-02-23T20:23:55 (patch cf8565b7ac832266878af99a942555d139065f12)

Safe HaskellNone



Utilities for BaseTypes.PSignals and BaseTypes.Pitchs.

Functions here can't go into Derive.PSignal itself due to circular imports---PSignal is a low level module imported by other low level modules like Derive.Score.



interpolated :: BaseTypes.Pitch -> BaseTypes.Pitch -> Double -> BaseTypes.Pitch Source #

A pitch interpolated a certain distance between two other pitches.

pitch_nn :: BaseTypes.Transposed -> Deriver Pitch.NoteNumber Source #

Convert a Pitch to a NoteNumber, throwing an exception if the pitch failed.

modify_hz :: BaseTypes.Scale -> (Pitch.Hz -> Pitch.Hz) -> BaseTypes.Pitch -> BaseTypes.Pitch Source #

Modify a pitch by hz. Its symbolic pitch will remain the same.