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

Safe HaskellNone

Derive.Call.ScaleDegree

Contents

Description

Create val calls for scale degrees. These are the calls that a scale brings into scope, so they should be referenced from scale_note_to_call implementations.

Synopsis

equal tempered

scale_degree :: BaseTypes.Scale -> Scale.PitchNn -> Scale.PitchNote -> ValCall Source #

Create a pitch val call for the given scale degree. This is intended to be used by scales to generate their calls, but of course each scale may define calls in its own way.

pitch_expr :: Double -> Pitch.Note -> Pitch.Note Source #

Convert a note and frac arg into a tracklang expression representing that note.

just

type NamedIntervals = Map Text Rational Source #

Map from named intervals to the interval's ratio.

scale_degree_just Source #

Arguments

:: BaseTypes.Scale 
-> NamedIntervals 
-> Pitch.Hz

add an arbitrary extra interval to the output

-> Scale.PitchNn 
-> Scale.PitchNote 
-> ValCall 

A fancier version of scale_degree that takes interval arguments.