haskore-0.2.0.3: The Haskore Computer Music System

Safe Haskell | None

Haskore.Interface.CSound.Tutorial

# Documentation

pureToneTN :: Table Source

pureToneTable :: SigExp Source

pureTone :: Statement Source

oscPure :: SigExp -> SigExp -> SigExp Source

type TutMelody params = T (TutAttr params)Source

data TutAttr params Source

Constructors

TutAttr |

Fields

attrVelocity :: Rational
attrParameters :: params

tune1 :: TutMelody ()Source

data Instrument Source

Constructors

Instr1p0 |
Instr2p0 |
Instr1p2 Float Float |
Instr1p4 Float Float Float Float |

Instances

Eq Instrument |
Ord Instrument |
Show Instrument |

musicFromMelody :: (params -> Instrument) -> TutMelody params -> T () Instrument Source

type Pair = (Float, Float)Source

type Quadruple = (Float, Float, Float, Float)Source

attrToInstr1p0 :: () -> Instrument Source

attrToInstr2p0 :: () -> Instrument Source

attrToInstr1p2 :: Pair -> Instrument Source

attrToInstr1p4 :: Quadruple -> Instrument Source

performanceFromMusic :: T () Instrument -> T Float Float (Note () Instrument)Source

type TutOrchestra out = (Header, InstrumentTableWithAttributes out Instrument)Source

instrNum1 :: Instrument Source

instrNum2 :: Instrument Source

instrAssoc1p0 :: InstrumentSigExp out -> InstrumentAssociation out Instrument Source

instrAssoc2p0 :: InstrumentSigExp out -> InstrumentAssociation out Instrument Source

instrAssoc1p2 :: (SigExp -> SigExp -> InstrumentSigExp out) -> InstrumentAssociation out Instrument Source

instrAssoc1p4 :: (SigExp -> SigExp -> SigExp -> SigExp -> InstrumentSigExp out) -> InstrumentAssociation out Instrument Source

scored :: TutOrchestra out -> (params -> Instrument) -> TutMelody params -> T Source

example :: Name -> (TutOrchestra out -> T) -> TutOrchestra out -> (Name, T, TutOrchestra out)Source

oe1 :: InstrumentSigExp Mono Source

hdr :: Header Source

o1 :: TutOrchestra Mono Source

o22 :: TutOrchestra Mono Source

o19 :: TutOrchestra Mono Source

o15 :: TutOrchestra Mono Source

o14 :: TutOrchestra Mono Source

o13 :: TutOrchestra Mono Source

o9 :: TutOrchestra Mono Source

o8 :: TutOrchestra Mono Source

o7 :: TutOrchestra Mono Source

o4 :: TutOrchestra Mono Source

o3 :: TutOrchestra Mono Source

o2 :: TutOrchestra Mono Source

o5 :: TutOrchestra Stereo Source

o21 :: TutOrchestra Stereo Source

o20 :: TutOrchestra Stereo Source

o18 :: TutOrchestra Stereo Source

o17 :: TutOrchestra Stereo Source

o16 :: TutOrchestra Stereo Source

o12 :: TutOrchestra Stereo Source

o11 :: TutOrchestra Stereo Source

o10 :: TutOrchestra Stereo Source

o6 :: TutOrchestra Stereo Source

tut1 :: (Name, T, TutOrchestra Mono)Source

tut22 :: (Name, T, TutOrchestra Mono)Source

tut19 :: (Name, T, TutOrchestra Mono)Source

tut15 :: (Name, T, TutOrchestra Mono)Source

tut14 :: (Name, T, TutOrchestra Mono)Source

tut13 :: (Name, T, TutOrchestra Mono)Source

tut9 :: (Name, T, TutOrchestra Mono)Source

tut8 :: (Name, T, TutOrchestra Mono)Source

tut7 :: (Name, T, TutOrchestra Mono)Source

tut4 :: (Name, T, TutOrchestra Mono)Source

tut3 :: (Name, T, TutOrchestra Mono)Source

tut2 :: (Name, T, TutOrchestra Mono)Source

tut5 :: (Name, T, TutOrchestra Stereo)Source

tut21 :: (Name, T, TutOrchestra Stereo)Source

tut20 :: (Name, T, TutOrchestra Stereo)Source

tut18 :: (Name, T, TutOrchestra Stereo)Source

tut17 :: (Name, T, TutOrchestra Stereo)Source

tut16 :: (Name, T, TutOrchestra Stereo)Source

tut12 :: (Name, T, TutOrchestra Stereo)Source

tut11 :: (Name, T, TutOrchestra Stereo)Source

tut10 :: (Name, T, TutOrchestra Stereo)Source

tut6 :: (Name, T, TutOrchestra Stereo)Source

score1 :: TutOrchestra out -> [Statement]Source

score9 :: TutOrchestra out -> [Statement]Source

score8 :: TutOrchestra out -> [Statement]Source

score7 :: TutOrchestra out -> [Statement]Source

score6 :: TutOrchestra out -> [Statement]Source

score5 :: TutOrchestra out -> [Statement]Source

score4 :: TutOrchestra out -> [Statement]Source

score3 :: TutOrchestra out -> [Statement]Source

score2 :: TutOrchestra out -> [Statement]Source

csoundDir :: Name Source

twoHarmsTN :: Table Source

twoHarms :: Statement Source

oe2 :: InstrumentSigExp Mono Source

manySinesTN :: Table Source

manySinesTable :: SigExp Source

manySines :: Statement Source

lineCS :: EvalRate -> SigExp -> SigExp -> SigExp -> SigExp Source

oe3 :: InstrumentSigExp Mono Source

oe4 :: InstrumentSigExp Mono Source

coolEnvTN :: Table Source

coolEnvTable :: SigExp Source

coolEnv :: Statement Source

oscCoolEnv :: SigExp -> SigExp -> SigExp Source

tune2 :: TutMelody Pair Source

triangleTN :: Table Source

sawtoothTN :: Table Source

squareTN :: Table Source

triangleT :: Statement Source

sawtoothT :: Statement Source

squareT :: Statement Source

oe5 :: SigExp -> SigExp -> InstrumentSigExp Stereo Source

oe6 :: InstrumentSigExp Stereo Source

oe7 :: InstrumentSigExp Stereo Source

oe8 :: InstrumentSigExp Mono Source

oe9 :: InstrumentSigExp Mono Source

oe10 :: InstrumentSigExp Mono Source

oe11 :: SigExp -> SigExp -> SigExp -> SigExp -> InstrumentSigExp Stereo Source

emChord :: Float -> Float -> Float -> Float -> TutMelody Quadruple Source

dChord :: Float -> Float -> Float -> Float -> TutMelody Quadruple Source

gChord :: Float -> Float -> Float -> Float -> TutMelody Quadruple Source

cChord :: Float -> Float -> Float -> Float -> TutMelody Quadruple Source

quickChord :: [Dur -> TutAttr Quadruple -> TutMelody Quadruple] -> Float -> Float -> Float -> Float -> TutMelody Quadruple Source

tune3 :: TutMelody Quadruple Source

oe12 :: SigExp -> SigExp -> SigExp -> SigExp -> InstrumentSigExp Stereo Source

oe13 :: SigExp -> SigExp -> SigExp -> SigExp -> InstrumentSigExp Stereo Source

oe14 :: InstrumentSigExp Mono Source

oe15 :: InstrumentSigExp Mono Source

oe16 :: InstrumentSigExp Mono Source

midHumpTN :: Table Source

midHump :: Statement Source

oe17 :: InstrumentSigExp Stereo Source

ping :: SigExp -> SigExp -> SigExp Source

oe18 :: InstrumentSigExp Stereo Source

oe19 :: InstrumentSigExp Stereo Source

oe20 :: InstrumentSigExp Mono Source

oe21 :: SigExp -> SigExp -> SigExp -> SigExp -> InstrumentSigExp Stereo Source

lowPass :: EvalRate -> SigExp -> SigExp -> SigExp Source

highPass :: EvalRate -> SigExp -> SigExp -> SigExp Source

oe22 :: InstrumentSigExp Stereo Source

oe23 :: InstrumentSigExp Mono Source

test :: Output out => (Name, T, TutOrchestra out) -> IO ExitCode Source

toOrchestra :: Output out => TutOrchestra out -> T outSource

play :: Output out => FilePath -> (Name, T, TutOrchestra out) -> IO ExitCode Source

piano :: (Name, T, TutOrchestra Mono)Source

flute :: (Name, T, TutOrchestra Mono)Source

reedy :: (Name, T, TutOrchestra Mono)Source

pianoOrc :: TutOrchestra Mono Source

fluteOrc :: TutOrchestra Mono Source

reedyOrc :: TutOrchestra Mono Source

pianoScore :: TutOrchestra out -> T Source

fluteScore :: TutOrchestra out -> T Source

reedyScore :: TutOrchestra out -> T Source

pianoEnv :: Statement Source

fluteWave :: Statement Source

reedyWave :: Statement Source

pianoWave :: Statement Source

fluteEnv :: Statement Source

reedyEnv :: Statement Source

pianoEnvTN :: Table Source

fluteWaveTN :: Table Source

reedyWaveTN :: Table Source

pianoWaveTN :: Table Source

fluteEnvTN :: Table Source

reedyEnvTN :: Table Source

pianoEnvTable :: SigExp Source

fluteWaveTable :: SigExp Source

reedyWaveTable :: SigExp Source

pianoWaveTable :: SigExp Source

fluteEnvTable :: SigExp Source

reedyEnvTable :: SigExp Source

pianoOE :: InstrumentSigExp Mono Source

reedyOE :: InstrumentSigExp Mono Source

reedy2OE :: InstrumentSigExp Stereo Source

reedy2Orc :: TutOrchestra Stereo Source

reedy2 :: (Name, T, TutOrchestra Stereo)Source

fluteTune :: TutMelody Pair Source

fluteOE :: SigExp -> SigExp -> InstrumentSigExp Mono Source

voice' :: SigExp -> SigExp -> SigExp -> SigExp -> SigExp -> SigExp -> SigExp -> SigExp -> SigExp Source

data Phoneme Source

Constructors

Eee |
Ihh |
Ehh |
Aaa |
Ahh |
Aww |
Ohh |
Uhh |
Uuu |
Ooo |
Rrr |
Lll |
Mmm |
Nnn |
Nng |
Ngg |
Fff |
Sss |
Thh |
Shh |
Xxx |
Hee |
Hoo |
Hah |
Bbb |
Ddd |
Jjj |
Ggg |
Vvv |
Zzz |
Thz |
Zhh |

Instances

Enum Phoneme |
Eq Phoneme |
Ord Phoneme |
Show Phoneme |

voiceTune :: TutMelody Pair Source

voiceVibWaveTN :: Table Source

voiceWaveTN :: Table Source

voiceVibWaveTable :: SigExp Source

voiceWaveTable :: SigExp Source

voiceWave :: Statement Source

voiceVibWave :: Statement Source

voiceScore :: TutOrchestra out -> T Source

voiceOE :: SigExp -> SigExp -> InstrumentSigExp Mono Source

voiceOrc :: TutOrchestra Mono Source

voice :: (Name, T, TutOrchestra Mono)Source