csound-expression-typed-0.2.7: typed core for the library csound-expression
Safe HaskellNone
LanguageHaskell2010

Csound.Typed.Render

Synopsis

Documentation

renderEff :: (Sigs a, Sigs b) => (a -> SE b) -> IO String Source #

renderEffBy :: (Sigs a, Sigs b) => Options -> (a -> SE b) -> IO String Source #

Options

data Options Source #

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)] }
scaleUI    = (1, 1)

Constructors

Options 

Fields

Table fidelity

data TabFi Source #

Table size fidelity (how many points in the table by default).

Constructors

TabFi 

Instances

Instances details
Eq TabFi Source # 
Instance details

Defined in Csound.Typed.GlobalState.Options

Methods

(==) :: TabFi -> TabFi -> Bool #

(/=) :: TabFi -> TabFi -> Bool #

Read TabFi Source # 
Instance details

Defined in Csound.Typed.GlobalState.Options

Show TabFi Source # 
Instance details

Defined in Csound.Typed.GlobalState.Options

Methods

showsPrec :: Int -> TabFi -> ShowS #

show :: TabFi -> String #

showList :: [TabFi] -> ShowS #

Default TabFi Source # 
Instance details

Defined in Csound.Typed.GlobalState.Options

Methods

def :: TabFi #

fineFi :: Int -> [(Int, Int)] -> [(String, 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 a n power of 2) for all gen routines that are not listed in the next argument ps.
  • 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 *** Integer identifiers

String identifiers

Jacko

data Jacko Source #

Describes the Jacko header. All information that is going to be set in the global settings for Jacko opcodes. The jacko opcodes allows us to easily turn our app into Jack-client. We can also do it with command line flags. But the Jacko opcodes provide more options.

see the Csound docs for details: http://csound.github.io/docs/manual/JackoOpcodes.html

Instances

Instances details
Eq Jacko Source # 
Instance details

Defined in Csound.Typed.GlobalState.Options

Methods

(==) :: Jacko -> Jacko -> Bool #

(/=) :: Jacko -> Jacko -> Bool #

Read Jacko Source # 
Instance details

Defined in Csound.Typed.GlobalState.Options

Show Jacko Source # 
Instance details

Defined in Csound.Typed.GlobalState.Options

Methods

showsPrec :: Int -> Jacko -> ShowS #

show :: Jacko -> String #

showList :: [Jacko] -> ShowS #

Default Jacko Source # 
Instance details

Defined in Csound.Typed.GlobalState.Options

Methods

def :: Jacko #

Debug trace

saveUserOptions :: Options -> IO () Source #

Saves the user options in the current directory.

If it's saved in the User's home directory it becomes global options.