csound-sampler-0.0.10.2: A musical sampler based on Csound
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Instances details
Applicative Sample Source # 
Instance details

Defined in Csound.Sam.Core

Methods

pure :: a -> Sample a #

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

liftA2 :: (a -> b -> c) -> Sample a -> Sample b -> Sample c #

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

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

Functor Sample Source # 
Instance details

Defined in Csound.Sam.Core

Methods

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

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

RenderCsd Sam Source # 
Instance details

Defined in Csound.Sam.Core

Compose Sam Source # 
Instance details

Defined in Csound.Sam

Delay Sam Source # 
Instance details

Defined in Csound.Sam

Methods

del :: DurOf Sam -> Sam -> Sam #

Harmony Sam Source # 
Instance details

Defined in Csound.Sam

Methods

har :: [Sam] -> Sam #

(=:=) :: Sam -> Sam -> Sam #

Limit Sam Source # 
Instance details

Defined in Csound.Sam

Methods

lim :: DurOf Sam -> Sam -> Sam #

Loop Sam Source # 
Instance details

Defined in Csound.Sam

Methods

loop :: Sam -> Sam #

Melody Sam Source # 
Instance details

Defined in Csound.Sam

Methods

mel :: [Sam] -> Sam #

(+:+) :: Sam -> Sam -> Sam #

Rest Sam Source # 
Instance details

Defined in Csound.Sam

Methods

rest :: DurOf Sam -> Sam #

Stretch Sam Source # 
Instance details

Defined in Csound.Sam

Methods

str :: DurOf Sam -> Sam -> Sam #

At Sig Sig2 Sam Source # 
Instance details

Defined in Csound.Sam

Associated Types

type AtOut Sig Sig2 Sam #

Methods

at :: (Sig -> Sig2) -> Sam -> AtOut Sig Sig2 Sam #

At Sig2 Sig2 Sam Source # 
Instance details

Defined in Csound.Sam

Associated Types

type AtOut Sig2 Sig2 Sam #

Methods

at :: (Sig2 -> Sig2) -> Sam -> AtOut Sig2 Sig2 Sam #

MixAt Sig Sig2 Sam Source # 
Instance details

Defined in Csound.Sam

Methods

mixAt :: Sig -> (Sig -> Sig2) -> Sam -> AtOut Sig Sig2 Sam #

MixAt Sig2 Sig2 Sam Source # 
Instance details

Defined in Csound.Sam

Methods

mixAt :: Sig -> (Sig2 -> Sig2) -> Sam -> AtOut Sig2 Sig2 Sam #

At Sig (SE Sig) Sam Source # 
Instance details

Defined in Csound.Sam

Associated Types

type AtOut Sig (SE Sig) Sam #

Methods

at :: (Sig -> SE Sig) -> Sam -> AtOut Sig (SE Sig) Sam #

At Sig (SE Sig2) Sam Source # 
Instance details

Defined in Csound.Sam

Associated Types

type AtOut Sig (SE Sig2) Sam #

Methods

at :: (Sig -> SE Sig2) -> Sam -> AtOut Sig (SE Sig2) Sam #

At Sig2 (SE Sig2) Sam Source # 
Instance details

Defined in Csound.Sam

Associated Types

type AtOut Sig2 (SE Sig2) Sam #

Methods

at :: (Sig2 -> SE Sig2) -> Sam -> AtOut Sig2 (SE Sig2) Sam #

MixAt Sig (SE Sig) Sam Source # 
Instance details

Defined in Csound.Sam

Methods

mixAt :: Sig -> (Sig -> SE Sig) -> Sam -> AtOut Sig (SE Sig) Sam #

MixAt Sig (SE Sig2) Sam Source # 
Instance details

Defined in Csound.Sam

Methods

mixAt :: Sig -> (Sig -> SE Sig2) -> Sam -> AtOut Sig (SE Sig2) Sam #

MixAt Sig2 (SE Sig2) Sam Source # 
Instance details

Defined in Csound.Sam

Methods

mixAt :: Sig -> (Sig2 -> SE Sig2) -> Sam -> AtOut Sig2 (SE Sig2) Sam #

Num a => Num (Sample a) Source # 
Instance details

Defined in Csound.Sam.Core

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 #

Fractional a => Fractional (Sample a) Source # 
Instance details

Defined in Csound.Sam.Core

Methods

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

recip :: Sample a -> Sample a #

fromRational :: Rational -> Sample a #

RenderCsd (SE (Source Sam)) Source # 
Instance details

Defined in Csound.Sam.Core

RenderCsd (SE Sam) Source # 
Instance details

Defined in Csound.Sam.Core

RenderCsd (Source Sam) Source # 
Instance details

Defined in Csound.Sam.Core

BindSig2 a => BindSig2 (Sample a) Source # 
Instance details

Defined in Csound.Sam.Core

Methods

bindSig2 :: (Sig2 -> SE Sig2) -> Sample a -> SE (Sample a) #

SigSpace a => SigSpace (Sample a) Source # 
Instance details

Defined in Csound.Sam.Core

Methods

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

SigSpace2 a => SigSpace2 (Sample a) Source # 
Instance details

Defined in Csound.Sam.Core

Methods

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

type DurOf Sam Source # 
Instance details

Defined in Csound.Sam

type DurOf Sam = Sig
type AtOut Sig Sig2 Sam Source # 
Instance details

Defined in Csound.Sam

type AtOut Sig2 Sig2 Sam Source # 
Instance details

Defined in Csound.Sam

type AtOut Sig (SE Sig) Sam Source # 
Instance details

Defined in Csound.Sam

type AtOut Sig (SE Sig) Sam = Sam
type AtOut Sig (SE Sig2) Sam Source # 
Instance details

Defined in Csound.Sam

type AtOut Sig (SE Sig2) Sam = Sam
type AtOut Sig2 (SE Sig2) Sam Source # 
Instance details

Defined in Csound.Sam

type AtOut Sig2 (SE Sig2) Sam = Sam

data S a Source #

Constructors

S 

Fields

Instances

Instances details
Applicative S Source # 
Instance details

Defined in Csound.Sam.Core

Methods

pure :: a -> S a #

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

liftA2 :: (a -> b -> c) -> S a -> S b -> S c #

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

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

Functor S Source # 
Instance details

Defined in Csound.Sam.Core

Methods

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

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

data Dur Source #

Constructors

Dur Sig 
InfDur 

type Bpm = Sig 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 #