haskore-0.2.0.3: The Haskore Computer Music System

Safe Haskell | None

Haskore.Interface.CSound.Score

# Documentation

type T = [Statement]Source

data Statement Source

Constructors

Tempo Bpm |
Note Instrument StartTime Duration Pch Volume [PField] |
Table Table CreatTime TableSize Normalize T |

Instances

Show Statement |

type Bpm = Int Source

type StartTime = Time Source

type Duration = Time Source

data Pch Source

Constructors

AbsPch Absolute |
Cps Float |

Instances

Show Pch |

type Volume = Float Source

type Table = Int Source

type CreatTime = Time Source

type TableSize = Int Source

type Normalize = Bool Source

simpleSine :: Table -> Statement Source

whiteNoise :: Table -> Statement Source

triangle :: Table -> Statement Source

sawtooth :: Table -> Statement Source

square :: Table -> Statement Source

compSine :: Table -> [PStrength] -> Statement Source

fromPerformanceBE :: (C time, Num time) => (time -> Time) -> T time T -> T Source

saveIA :: T -> IO ()Source

fromRhythmicMusic :: (RealFrac time, C time, RealFrac dyn, Ord drum, Ord instr) => Tables -> (SoundTable drum, SoundTable instr, T time dyn (Note drum instr), T drum instr) -> T Source

type Tables = T Source

fromRhythmicPerformance :: (RealFrac time, C time, RealFrac dyn, Ord drum, Ord instr) => SoundTable drum -> SoundTable instr -> T time dyn (Note drum instr) -> T Source

fromRhythmicPerformanceMap :: (RealFrac time, C time, RealFrac dyn) => ToSound drum -> ToSound instr -> T time dyn (Note drum instr) -> T Source

fromRhythmicPerformanceWithAttributes :: (RealFrac time, C time, RealFrac dyn) => DrumTableWithAttributes out drum -> InstrumentTableWithAttributes out instr -> T time dyn (Note drum instr) -> T Source

noteToStatement :: (time -> Time) -> time -> time -> T -> Statement Source

save :: FilePath -> T -> IO ()Source

toString :: T -> String Source

statementToString :: Statement -> String Source

statementToWords :: Statement -> [String]Source

pchToString :: Pch -> String Source