haskore-0.2.0.3: The Haskore Computer Music System

Safe Haskell | Safe-Inferred

Haskore.Interface.CSound.Generator

Synopsis

- data T
  - = Routine Number [Parameter]
  - | SoundFile SFName SkipTime ChanNum
- type SFName = String
- type SkipTime = Time
- type ChanNum = Float
- type Number = Int
- type Parameter = Float
- soundFile :: SFName -> SkipTime -> ChanNum -> T
- tableValues :: [Parameter] -> T
- polynomial :: Interval -> Coefficients -> T
- type Interval = (Float, Float)
- type Coefficients = [Float]
- exponential1 :: StartPt -> [(SegLength, EndPt)] -> T
- type StartPt = Float
- type SegLength = Float
- type EndPt = Float
- exponential2 :: [Point] -> T
- type Point = (Float, Float)
- cubic :: StartPt -> [(SegLength, EndPt)] -> T
- lineSeg1 :: StartPt -> [(SegLength, EndPt)] -> T
- lineSeg2 :: [Point] -> T
- cubicSpline :: StartPt -> [(SegLength, EndPt)] -> T
- compSine1 :: [PStrength] -> T
- type PStrength = Float
- compSine2 :: [(PNum, PStrength, PhaseOffset)] -> T
- type PNum = Float
- type PhaseOffset = Float
- compSine3 :: [(PNum, PStrength, PhaseOffset, DCOffset)] -> T
- type DCOffset = Float
- cosineHarms :: NHarms -> LowestHarm -> Mult -> T
- type NHarms = Int
- type LowestHarm = Int
- type Mult = Float
- randomTable :: RandDist -> T
- data RandDist
  - = Uniform
  - | Linear
  - | Triangular
  - | Expon
  - | BiExpon
  - | Gaussian
  - | Cauchy
  - | PosCauchy
- toStatementWords :: T -> [String]

# Documentation

data T Source

Constructors

Routine Number [Parameter] |
SoundFile SFName SkipTime ChanNum |

Instances

Show T |

type SFName = String Source

type SkipTime = Time Source

type ChanNum = Float Source

type Number = Int Source

type Parameter = Float Source

soundFile :: SFName -> SkipTime -> ChanNum -> T Source

tableValues :: [Parameter] -> T Source

polynomial :: Interval -> Coefficients -> T Source

type Interval = (Float, Float)Source

type Coefficients = [Float]Source

exponential1 :: StartPt -> [(SegLength, EndPt)] -> T Source

type StartPt = Float Source

type SegLength = Float Source

type EndPt = Float Source

exponential2 :: [Point] -> T Source

type Point = (Float, Float)Source

coordinates. The folowing pair will determine the next local minimum/maximum, followed by the second point of inflexion, etc. begin{haskelllisting}

cubic :: StartPt -> [(SegLength, EndPt)] -> T Source

lineSeg1 :: StartPt -> [(SegLength, EndPt)] -> T Source

lineSeg2 :: [Point] -> T Source

cubicSpline :: StartPt -> [(SegLength, EndPt)] -> T Source

compSine1 :: [PStrength] -> T Source

type PStrength = Float Source

compSine2 :: [(PNum, PStrength, PhaseOffset)] -> T Source

type PNum = Float Source

type PhaseOffset = Float Source

compSine3 :: [(PNum, PStrength, PhaseOffset, DCOffset)] -> T Source

type DCOffset = Float Source

where $r$ is the multiplier). begin{haskelllisting}

cosineHarms :: NHarms -> LowestHarm -> Mult -> T Source

type NHarms = Int Source

type LowestHarm = Int Source

type Mult = Float Source

randomTable :: RandDist -> T Source

data RandDist Source

Constructors

Uniform |
Linear |
Triangular |
Expon |
BiExpon |
Gaussian |
Cauchy |
PosCauchy |

Instances

Enum RandDist |
Eq RandDist |
Ord RandDist |
Show RandDist |

toStatementWords :: T -> [String]Source