csound-sampler-0.0.3: A musical sampler based on Csound

Safe HaskellNone
LanguageHaskell98

Csound.Sam.Core

Description

The core types/ They are not imported by default.

Synopsis

Documentation

type Sam = Sample Sig2 Source

The main type. A stereo sample.

newtype Sample a Source

The generic type for samples.

Constructors

Sam 

Fields

unSam :: ReaderT Bpm SE (S a)
 

data S a Source

Constructors

S 

Fields

samSig :: a
 
samDur :: Dur
 

Instances

data Dur Source

Constructors

Dur D 
InfDur 

type Bpm = D Source

The Beats Per Minute measure (BPM). Almost all values are measured in BPMs.

liftSam :: Sample (SE a) -> Sample a Source

Hides the effects inside sample.

mapBpm :: (Bpm -> Sig2 -> Sig2) -> Sam -> Sam Source

Transforms the sample with BPM.

bindSam :: (Sig2 -> SE Sig2) -> Sam -> Sam Source

Lifts bind on stereo signals to samples.

bindBpm :: (Bpm -> Sig2 -> SE Sig2) -> Sam -> Sam Source

Lifts bind on stereo signals to samples with BPM.