djembe-0.1.1.2: Hit drums with haskell

Safe HaskellNone
LanguageHaskell2010

Types

Synopsis

Documentation

data Hit Source

A drum Hit with a tone, duration, and volume

Constructors

Hit 

Fields

_tone :: Sound
 
_dur :: Rational
 
_vol :: Rational
 

data Beat Source

Used for combining Hits and Beats

data Composition a Source

We wrap a Beat in the Composition data structure in order create a monad instance for it.

Constructors

Composition (Beat, a) 

Instances

Monad Composition Source

This is basically a specialized instance of the writer monad for composing compositions in series.

Functor Composition Source 
Applicative Composition Source 
Arbitrary Song Source 
Show a => Show (Composition a) Source 
Monoid (Composition ()) Source 

cmap :: (Hit -> Hit) -> Composition a -> Composition a Source

Lift a function on Hits over a Composition