temporal-music-notation-0.2.1: music notation

Safe HaskellSafe-Infered

Temporal.Music.Note

Contents

Description

This module gives an example of complete musical structure. It defines the notion of note.

Synopsis

Types

data Note a Source

Note has volume, pitch and some timbral paramters.

Constructors

Note 

Instances

Functor Note 
Eq a => Eq (Note a) 
Show a => Show (Note a) 
Default (Note a) 
VolumeLike (Note a) 
PitchLike (Note a) 

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

Constructs default Note with given step value.

mapNoteParam :: (Maybe a -> Maybe b) -> Note a -> Note bSource

Updates note's timbral paramters.

data Drum a Source

Drum has only pitch and some timbral paramters.

Constructors

Drum 

Fields

drumVolume :: Volume
 
drumParam :: Maybe a
 

Instances

Functor Drum 
Eq a => Eq (Drum a) 
Show a => Show (Drum a) 
Default (Drum a) 
VolumeLike (Drum a) 

bam :: Accent -> Score (Drum a)Source

Constructs drum note with given accent. Level is set to the default value.

mapDrumParam :: (Maybe a -> Maybe b) -> Drum a -> Drum bSource

Updates drum-note's timbral paramters.

Shortcuts

Note shortcuts

Function n[i] is equivalent to call note i.

n0, n23, n22, n21, n20, n19, n18, n17, n16, n15, n14, n13, n12, n11, n10, n9, n8, n7, n6, n5, n4, n3, n2, n1 :: Score (Note a)Source

Drum shortcuts

See Temporal.Music.Score shortcuts for naming conventions.

bd, td, sd, ed, qd, hd, wd :: Accent -> Score (Drum a)Source