Safe Haskell | None |
---|---|
Language | Haskell2010 |
Csound.Typed.Render
- renderOut :: Sigs a => SE a -> IO String
- renderOutBy :: Sigs a => Options -> SE a -> IO String
- renderEff :: (Sigs a, Sigs b) => (a -> SE b) -> IO String
- renderEffBy :: (Sigs a, Sigs b) => Options -> (a -> SE b) -> IO String
- renderOut_ :: SE () -> IO String
- renderOutBy_ :: Options -> SE () -> IO String
- data Options = Options {}
- defGain :: Options -> Double
- defSampleRate :: Options -> Int
- defBlockSize :: Options -> Int
- defTabFi :: Options -> TabFi
- data TabFi = TabFi {}
- fineFi :: Int -> [(Int, Int)] -> TabFi
- coarseFi :: Int -> TabFi
- idWavs :: Int
- idMp3s :: Int
- idDoubles :: Int
- idSines :: Int
- idSines3 :: Int
- idSines2 :: Int
- idPartials :: Int
- idSines4 :: Int
- idBuzzes :: Int
- idConsts :: Int
- idLins :: Int
- idCubes :: Int
- idExps :: Int
- idSplines :: Int
- idStartEnds :: Int
- idPolys :: Int
- idChebs1 :: Int
- idChebs2 :: Int
- idBessels :: Int
- idWins :: Int
- module Csound.Dynamic.Types.Flags
Documentation
renderOut_ :: SE () -> IO String Source
Options
Csound options. The default values are
flags = def -- the only flag set by default is "no-displays" -- to supress the display of the tables sampleRate = 44100 blockSize = 64 gain = 0.5 tabFi = fineFi 13 [(idLins, 11), (idExps, 11), (idConsts, 9), (idSplines, 11), (idStartEnds, 12)] }
Constructors
Options | |
defSampleRate :: Options -> Int Source
defBlockSize :: Options -> Int Source
Table fidelity
Table size fidelity (how many points in the table by default).
fineFi :: Int -> [(Int, Int)] -> TabFi Source
Sets different table size for different GEN-routines.
fineFi n ps
where
n
is the default value for table size (size is an
power of 2) for all gen routines that are not listed in the next argumentps
.ps
is a list of pairs(genRoutineId, tableSizeDegreeOf2)
that sets the given table size for a given GEN-routine.
with this function we can set lower table sizes for tables that are usually used in the envelopes.
coarseFi :: Int -> TabFi Source
Sets the same table size for all tables.
coarseFi n
where n
is a degree of 2. For example, n = 10
sets size to 1024 points for all tables by default.
Gen identifiers
Low level Csound integer identifiers for tables. These names can be used in the function fineFi
idPartials :: Int Source
idStartEnds :: Int Source
module Csound.Dynamic.Types.Flags