Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone



Utilities for DeriveT.PSignals and DeriveT.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 :: DeriveT.Pitch -> DeriveT.Pitch -> Double -> DeriveT.Pitch Source #

A pitch interpolated a certain distance between two other pitches.

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

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

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

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