csound-expression-5.3.2: library to make electronic music

Safe HaskellNone
LanguageHaskell98

Csound.Options

Contents

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

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).

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

noTrace :: Options Source #

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

setCabbage :: Options Source #

Provides options for Cabbage VST-engine.

Flags

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

Audio file output

Realtime Audio Input/Output

MIDI File Input/Ouput

MIDI Realtime Input/Ouput

Display

Performance Configuration and Control