csound-sampler-0.0.8.0: 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

Instances

Functor Sample Source # 

Methods

fmap :: (a -> b) -> Sample a -> Sample b #

(<$) :: a -> Sample b -> Sample a #

Applicative Sample Source # 

Methods

pure :: a -> Sample a #

(<*>) :: Sample (a -> b) -> Sample a -> Sample b #

(*>) :: Sample a -> Sample b -> Sample b #

(<*) :: Sample a -> Sample b -> Sample a #

RenderCsd Sam Source # 

Methods

renderCsdBy :: Options -> Sam -> IO String #

Fractional a => Fractional (Sample a) Source # 

Methods

(/) :: Sample a -> Sample a -> Sample a #

recip :: Sample a -> Sample a #

fromRational :: Rational -> Sample a #

Num a => Num (Sample a) Source # 

Methods

(+) :: Sample a -> Sample a -> Sample a #

(-) :: Sample a -> Sample a -> Sample a #

(*) :: Sample a -> Sample a -> Sample a #

negate :: Sample a -> Sample a #

abs :: Sample a -> Sample a #

signum :: Sample a -> Sample a #

fromInteger :: Integer -> Sample a #

RenderCsd (Source Sam) Source # 
SigSpace a => SigSpace (Sample a) Source # 

Methods

mapSig :: (Sig -> Sig) -> Sample a -> Sample a #

type DurOf Sam # 
type DurOf Sam = D
type AtOut Sig2 Sig2 Sam # 
type AtOut Sig Sig2 Sam # 
type AtOut Sig2 (SE Sig2) Sam # 
type AtOut Sig2 (SE Sig2) Sam = Sam
type AtOut Sig (SE Sig2) Sam # 
type AtOut Sig (SE Sig2) Sam = Sam
type AtOut Sig (SE Sig) Sam # 
type AtOut Sig (SE Sig) Sam = Sam

data S a Source #

Constructors

S 

Fields

Instances

Functor S Source # 

Methods

fmap :: (a -> b) -> S a -> S b #

(<$) :: a -> S b -> S a #

Applicative S Source # 

Methods

pure :: a -> S a #

(<*>) :: S (a -> b) -> S a -> S b #

(*>) :: S a -> S b -> S b #

(<*) :: S a -> S b -> S a #

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 -> a -> b) -> Sample a -> Sample b Source #

Transforms the sample with BPM.

mapBpm2 :: (Bpm -> a -> b -> c) -> Sample a -> Sample b -> Sample c Source #

Transforms the sample with BPM.

bindSam :: (a -> SE b) -> Sample a -> Sample b Source #

Lifts bind on stereo signals to samples.

bindBpm :: (Bpm -> a -> SE b) -> Sample a -> Sample b Source #

Lifts bind on stereo signals to samples with BPM.

bindBpm2 :: (Bpm -> a -> b -> SE c) -> Sample a -> Sample b -> Sample c Source #

Lifts bind on stereo signals to samples with BPM.

withBpm :: (Bpm -> Sample a) -> Sample a Source #