Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

Safe HaskellNone

Derive.Pitches

Description

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.

Synopsis

Documentation

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.