Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
Safe HaskellSafe-Inferred

Derive.Pitches

Description

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.

Synopsis

Documentation

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.