Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
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.