Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

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.