csound-expression-5.3.4: library to make electronic music
Safe HaskellNone
LanguageHaskell2010

Csound.Options

Synopsis

Documentation

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

Constructors

Options 

Fields

Instances

Instances details
Eq Options 
Instance details

Defined in Csound.Typed.GlobalState.Options

Methods

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

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

Read Options 
Instance details

Defined in Csound.Typed.GlobalState.Options

Show Options 
Instance details

Defined in Csound.Typed.GlobalState.Options

Semigroup Options 
Instance details

Defined in Csound.Typed.GlobalState.Options

Monoid Options 
Instance details

Defined in Csound.Typed.GlobalState.Options

Default Options 
Instance details

Defined in Csound.Typed.GlobalState.Options

Methods

def :: Options #

Shortcuts

setDur :: Sigs a => D -> a -> a #

Sets the global duration of the file or output signal to the given value. It should be used only once! The proper place is in the top-most expression before sending to dac or writeWav.

setRates :: Int -> Int -> Options Source #

Sets sample rate and block size

setRates sampleRate blockSize

setBufs :: Int -> Int -> Options Source #

Sets hardware and software buffers.

setBufs hardwareBuf ioBuf

setGain :: Double -> Options Source #

Sets the default gain for the output signal (should be in range 0 to 1).

setJack :: String -> Options Source #

Runs as JACK unit with given name (first argument).

setJackConnect :: [(String, String)] -> Options Source #

Defines what ports we should connect after application is launched

It invokes jack_connect for every pair of port-names in the list.

setAlsa :: Options Source #

Sets real-time driver to Alsa (use on Linux).

setCoreAudio :: Options Source #

Sets real-time driver to Core Audio (use on OSX).

setMme :: Options Source #

Sets real-time driver to Mme (use on Windows).

setOutput :: String -> Options Source #

Set's the output name of the device or file.

setInput :: String -> Options Source #

Set's the input name of the device or file.

setDac :: Options Source #

Sends output to speakers.

setAdc :: Options Source #

Reads input from audio-card inputs.

setDacBy :: String -> Options Source #

Provides name identifier for dac.

setAdcBy :: String -> Options Source #

Provides name identifier for adc.

setThru :: Options Source #

Sets both dac and adc.

setSilent :: Options Source #

Sets the output to nosound.

setMidiDevice :: String -> Options Source #

Sets midi device. It's an string identifier of the device.

Read MIDI events from device DEVICE. If using ALSA MIDI (-+rtmidi=alsa), devices are selected by name and not number. So, you need to use an option like -M hw:CARD,DEVICE where CARD and DEVICE are the card and device numbers (e.g. -M hw:1,0). In the case of PortMidi and MME, DEVICE should be a number, and if it is out of range, an error occurs and the valid device numbers are printed. When using PortMidi, you can use '-Ma' to enable all devices. This is also convenient when you don't have devices as it will not generate an error.

setMa :: Options Source #

Sets midi device to all.

setMessageLevel :: Int -> Options Source #

Sets message level. For input integer value consult the Csound docs

http://csound.com/docs/manual/CommandFlagsCategory.html

noMessages :: Options Source #

Sets the tracing or debug info of csound console to minimum.

setCabbage :: Options Source #

Provides options for Cabbage VST-engine.

setJacko :: Jacko -> Options Source #

Defines a header for a Jacko opcodes. The Jacko opcodes allow for greater flexibility with definition of Jack-client. See the Csound docs for details and the datatype Jacko.

csound doc: <http://csound.github.io/docs/manual/JackoOpcodes.html>

Flags

Csound's command line flags. See original documentation for detailed overview: http://www.csounds.com/manual/html/CommandFlagsCategory.html

data Flags #

Instances

Instances details
Eq Flags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

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

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

Read Flags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Show Flags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

showsPrec :: Int -> Flags -> ShowS #

show :: Flags -> String #

showList :: [Flags] -> ShowS #

Semigroup Flags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

(<>) :: Flags -> Flags -> Flags #

sconcat :: NonEmpty Flags -> Flags #

stimes :: Integral b => b -> Flags -> Flags #

Monoid Flags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

mempty :: Flags #

mappend :: Flags -> Flags -> Flags #

mconcat :: [Flags] -> Flags #

Default Flags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

def :: Flags #

Pretty Flags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

pretty :: Flags -> Doc #

prettyList :: [Flags] -> Doc #

Audio file output

data AudioFileOutput #

data FormatType #

Constructors

Aiff 
Au 
Avr 
Caf 
Flac 
Htk 
Ircam 
Mat4 
Mat5 
Nis 
Paf 
Pvf 
Raw 
Sd2 
Sds 
Svx 
Voc 
W64 
Wav 
Wavex 
Xi 

data Dither #

Constructors

Triangular 
Uniform 

Instances

Instances details
Eq Dither 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

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

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

Read Dither 
Instance details

Defined in Csound.Dynamic.Types.Flags

Show Dither 
Instance details

Defined in Csound.Dynamic.Types.Flags

Pretty Dither 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

pretty :: Dither -> Doc #

prettyList :: [Dither] -> Doc #

data IdTags #

Instances

Instances details
Eq IdTags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

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

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

Read IdTags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Show IdTags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Semigroup IdTags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Monoid IdTags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Default IdTags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

def :: IdTags #

Pretty IdTags 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

pretty :: IdTags -> Doc #

prettyList :: [IdTags] -> Doc #

Realtime Audio Input/Output

data Rtaudio #

Instances

Instances details
Eq Rtaudio 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

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

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

Read Rtaudio 
Instance details

Defined in Csound.Dynamic.Types.Flags

Show Rtaudio 
Instance details

Defined in Csound.Dynamic.Types.Flags

Pretty Rtaudio 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

pretty :: Rtaudio -> Doc #

prettyList :: [Rtaudio] -> Doc #

MIDI File Input/Ouput

data MidiIO #

Instances

Instances details
Eq MidiIO 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

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

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

Read MidiIO 
Instance details

Defined in Csound.Dynamic.Types.Flags

Show MidiIO 
Instance details

Defined in Csound.Dynamic.Types.Flags

Semigroup MidiIO 
Instance details

Defined in Csound.Dynamic.Types.Flags

Monoid MidiIO 
Instance details

Defined in Csound.Dynamic.Types.Flags

Default MidiIO 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

def :: MidiIO #

Pretty MidiIO 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

pretty :: MidiIO -> Doc #

prettyList :: [MidiIO] -> Doc #

MIDI Realtime Input/Ouput

data MidiRT #

Instances

Instances details
Eq MidiRT 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

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

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

Read MidiRT 
Instance details

Defined in Csound.Dynamic.Types.Flags

Show MidiRT 
Instance details

Defined in Csound.Dynamic.Types.Flags

Semigroup MidiRT 
Instance details

Defined in Csound.Dynamic.Types.Flags

Monoid MidiRT 
Instance details

Defined in Csound.Dynamic.Types.Flags

Default MidiRT 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

def :: MidiRT #

Pretty MidiRT 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

pretty :: MidiRT -> Doc #

prettyList :: [MidiRT] -> Doc #

data Rtmidi #

Instances

Instances details
Eq Rtmidi 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

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

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

Read Rtmidi 
Instance details

Defined in Csound.Dynamic.Types.Flags

Show Rtmidi 
Instance details

Defined in Csound.Dynamic.Types.Flags

Pretty Rtmidi 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

pretty :: Rtmidi -> Doc #

prettyList :: [Rtmidi] -> Doc #

Display

data Displays #

Instances

Instances details
Eq Displays 
Instance details

Defined in Csound.Dynamic.Types.Flags

Read Displays 
Instance details

Defined in Csound.Dynamic.Types.Flags

Show Displays 
Instance details

Defined in Csound.Dynamic.Types.Flags

Semigroup Displays 
Instance details

Defined in Csound.Dynamic.Types.Flags

Monoid Displays 
Instance details

Defined in Csound.Dynamic.Types.Flags

Default Displays 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

def :: Displays #

Pretty Displays 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

pretty :: Displays -> Doc #

prettyList :: [Displays] -> Doc #

Performance Configuration and Control

data Config #

Instances

Instances details
Eq Config 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

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

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

Read Config 
Instance details

Defined in Csound.Dynamic.Types.Flags

Show Config 
Instance details

Defined in Csound.Dynamic.Types.Flags

Semigroup Config 
Instance details

Defined in Csound.Dynamic.Types.Flags

Monoid Config 
Instance details

Defined in Csound.Dynamic.Types.Flags

Default Config 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

def :: Config #

Pretty Config 
Instance details

Defined in Csound.Dynamic.Types.Flags

Methods

pretty :: Config -> Doc #

prettyList :: [Config] -> Doc #