music-score-1.9.0: Musical score and part representation.

Copyright(c) Hans Hoglund 2012-2014
LicenseBSD-style
Maintainerhans@hanshoglund.se
Stabilityexperimental
Portabilitynon-portable (TF,GNTD)
Safe HaskellNone
LanguageHaskell2010

Music.Score.Internal.Quantize

Contents

Description

Rhythmical quantization.

Synopsis

Rhythm type

data Rhythm a Source

Constructors

Beat Duration a 
Group [Rhythm a] 
Dotted Int (Rhythm a) 
Tuplet Duration (Rhythm a) 

Instances

Functor Rhythm 
Foldable Rhythm 
Eq a => Eq (Rhythm a) 
Show a => Show (Rhythm a) 
Monoid (Rhythm a) 
Semigroup (Rhythm a) 
VectorSpace (Rhythm a) 
AdditiveGroup (Rhythm a) 
Transformable (Rhythm a) 
HasDuration (Rhythm a) 
type Scalar (Rhythm a) = Duration 

mapWithDur :: (Duration -> a -> b) -> Rhythm a -> Rhythm b Source

Quantization

dotMod :: Int -> Duration Source

Return the scaling applied to a note with the given number of dots (i.e. 32, 74 etc).

Utility