temporal-music-notation-western-0.2: western music notation

Safe HaskellSafe-Infered

Temporal.Music.Western.P12

Contents

Description

Western twelve-tone scale.

Synopsis

Documentation

tone :: Step -> Score (Note a)Source

Constructs Score with one note. Scale is set to equal tempered scale (from c1).

Steps

Step defines a value of type score (hence Track), so we can transform them on the fly:

 qn $ line [forte c, d, e, low b, forte $ bn d]

c, bf, af, gf, ff, ef, df, cf, bs, as, gs, fs, es, ds, cs, b, a, g, f, e, d :: Score (Note a)Source

Scales

eqt :: Hz -> Scale

12 tone equal temperament scale

pyth :: Hz -> Scale

pythagorean scale

hind :: Hz -> Scale

hindemithean scale with mean of fs and gb for tritone

hindFs :: Hz -> Scale

hindemithean scale with fs for tritone

hindGb :: Hz -> Scale

hindemithean scale with gb for tritone

Examples

Little example of usage:

 import Temporal.Music.Western.P12

 res :: Score ()
 res = stretch 0.2 $ chord [
            qn $ line [c, c, bn g, e, dbn f],
            low $ line [c, c, d, low a]]