| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Csound.Options
Synopsis
- data Options = Options {}
- setDur :: Sigs a => D -> a -> a
- setRates :: Int -> Int -> Options
- setBufs :: Int -> Int -> Options
- setGain :: Double -> Options
- setJack :: Text -> Options
- setJackConnect :: [(Text, Text)] -> Options
- setAlsa :: Options
- setCoreAudio :: Options
- setMme :: Options
- setOutput :: Text -> Options
- setInput :: Text -> Options
- setDac :: Options
- setAdc :: Options
- setDacBy :: Text -> Options
- setAdcBy :: Text -> Options
- setThru :: Options
- setSilent :: Options
- setMidiDevice :: Text -> Options
- setMa :: Options
- setMessageLevel :: Int -> Options
- noMessages :: Options
- setTrace :: Options
- setCabbage :: Options
- setJacko :: Jacko -> Options
- setDebugTrace :: Options
- setVerbatimFlags :: Text -> Options
- data Flags = Flags {}
- data AudioFileOutput = AudioFileOutput {
- formatSamples :: Maybe FormatSamples
- formatType :: Maybe FormatType
- output :: Maybe Text
- input :: Maybe Text
- nosound :: Bool
- nopeaks :: Bool
- dither :: Maybe Dither
- data FormatHeader
- data FormatSamples
- data FormatType
- data Dither
- data IdTags = IdTags {}
- data Rtaudio
- = PortAudio
- | Alsa
- | Jack {
- jackClient :: Text
- jackInport :: Text
- jackOutport :: Text
- | Mme
- | CoreAudio
- | NoRtaudio
- data PulseAudio = PulseAudio {}
- data MidiIO = MidiIO {}
- data MidiRT = MidiRT {
- midiDevice :: Maybe Text
- midiKey :: Maybe Int
- midiKeyCps :: Maybe Int
- midiKeyOct :: Maybe Int
- midiKeyPch :: Maybe Int
- midiVelocity :: Maybe Int
- midiVelocityAmp :: Maybe Int
- midiOutDevice :: Maybe Text
- data Rtmidi
- data Displays = Displays {
- csdLineNums :: Maybe Int
- displayMode :: Maybe DisplayMode
- displayHeartbeat :: Maybe Int
- messageLevel :: Maybe Int
- mAmps :: Maybe Int
- mRange :: Maybe Int
- mWarnings :: Maybe Int
- mDb :: Maybe Int
- mColours :: Maybe Int
- mBenchmarks :: Maybe Int
- msgColor :: Bool
- displayVerbose :: Bool
- listOpcodes :: Maybe Int
- data DisplayMode
- data Config = Config {}
Documentation
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).
setJackConnect :: [(Text, Text)] -> 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.
setCoreAudio :: Options Source #
Sets real-time driver to Core Audio (use on OSX).
setMidiDevice :: Text -> 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.
setMessageLevel :: Int -> Options Source #
Sets message level. For input integer value consult the Csound docs
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>
setVerbatimFlags :: Text -> Options #
Flags
Csound's command line flags. See original documentation for detailed overview: http://www.csounds.com/manual/html/CommandFlagsCategory.html
Constructors
| Flags | |
Fields
| |
Audio file output
data AudioFileOutput #
Constructors
| AudioFileOutput | |
Fields
| |
Instances
data FormatHeader #
Constructors
| NoHeader | |
| RewriteHeader |
Instances
| Read FormatHeader | |
Defined in Csound.Dynamic.Types.Flags Methods readsPrec :: Int -> ReadS FormatHeader # readList :: ReadS [FormatHeader] # | |
| Show FormatHeader | |
Defined in Csound.Dynamic.Types.Flags Methods showsPrec :: Int -> FormatHeader -> ShowS # show :: FormatHeader -> String # showList :: [FormatHeader] -> ShowS # | |
| Eq FormatHeader | |
Defined in Csound.Dynamic.Types.Flags | |
data FormatSamples #
Instances
| Read FormatSamples | |
Defined in Csound.Dynamic.Types.Flags Methods readsPrec :: Int -> ReadS FormatSamples # readList :: ReadS [FormatSamples] # | |
| Show FormatSamples | |
Defined in Csound.Dynamic.Types.Flags Methods showsPrec :: Int -> FormatSamples -> ShowS # show :: FormatSamples -> String # showList :: [FormatSamples] -> ShowS # | |
| Eq FormatSamples | |
Defined in Csound.Dynamic.Types.Flags Methods (==) :: FormatSamples -> FormatSamples -> Bool # (/=) :: FormatSamples -> FormatSamples -> Bool # | |
data FormatType #
Constructors
| Aiff | |
| Au | |
| Avr | |
| Caf | |
| Flac | |
| Htk | |
| Ircam | |
| Mat4 | |
| Mat5 | |
| Nis | |
| Paf | |
| Pvf | |
| Raw | |
| Sd2 | |
| Sds | |
| Svx | |
| Voc | |
| W64 | |
| Wav | |
| Wavex | |
| Xi |
Instances
| Read FormatType | |
Defined in Csound.Dynamic.Types.Flags Methods readsPrec :: Int -> ReadS FormatType # readList :: ReadS [FormatType] # readPrec :: ReadPrec FormatType # readListPrec :: ReadPrec [FormatType] # | |
| Show FormatType | |
Defined in Csound.Dynamic.Types.Flags Methods showsPrec :: Int -> FormatType -> ShowS # show :: FormatType -> String # showList :: [FormatType] -> ShowS # | |
| Eq FormatType | |
Defined in Csound.Dynamic.Types.Flags | |
Constructors
| Triangular | |
| Uniform |
Constructors
| IdTags | |
Realtime Audio Input/Output
Constructors
| PortAudio | |
| Alsa | |
| Jack | |
Fields
| |
| Mme | |
| CoreAudio | |
| NoRtaudio | |
data PulseAudio #
Instances
| Read PulseAudio | |
Defined in Csound.Dynamic.Types.Flags Methods readsPrec :: Int -> ReadS PulseAudio # readList :: ReadS [PulseAudio] # readPrec :: ReadPrec PulseAudio # readListPrec :: ReadPrec [PulseAudio] # | |
| Show PulseAudio | |
Defined in Csound.Dynamic.Types.Flags Methods showsPrec :: Int -> PulseAudio -> ShowS # show :: PulseAudio -> String # showList :: [PulseAudio] -> ShowS # | |
| Eq PulseAudio | |
Defined in Csound.Dynamic.Types.Flags | |
| Pretty PulseAudio | |
Defined in Csound.Dynamic.Types.Flags | |
MIDI File Input/Ouput
Constructors
| MidiIO | |
Fields
| |
MIDI Realtime Input/Ouput
Constructors
| MidiRT | |
Fields
| |
Constructors
| PortMidi | |
| AlsaMidi | |
| AlsaSeq | |
| CoreMidi | |
| MmeMidi | |
| WinmmeMidi | |
| VirtualMidi | |
| NoRtmidi |
Display
Constructors
| Displays | |
Fields
| |
data DisplayMode #
Constructors
| NoDisplay | |
| PostScriptDisplay | |
| AsciiDisplay |
Instances
| Read DisplayMode | |
Defined in Csound.Dynamic.Types.Flags Methods readsPrec :: Int -> ReadS DisplayMode # readList :: ReadS [DisplayMode] # readPrec :: ReadPrec DisplayMode # readListPrec :: ReadPrec [DisplayMode] # | |
| Show DisplayMode | |
Defined in Csound.Dynamic.Types.Flags Methods showsPrec :: Int -> DisplayMode -> ShowS # show :: DisplayMode -> String # showList :: [DisplayMode] -> ShowS # | |
| Eq DisplayMode | |
Defined in Csound.Dynamic.Types.Flags | |
| Pretty DisplayMode | |
Defined in Csound.Dynamic.Types.Flags | |