csound-expression-4.1.0: library to make electronic music

Safe HaskellNone

Csound.Control.Gui.Widget

Contents

Description

Primitive GUI elements.

There is a convention that constructors take only parameters that specify the logic of the widget. The view is set for GUI-elements with other functions.

Synopsis

Common properties

data ValDiap

Constructors

ValDiap 

data ValScaleType

Constructors

Linear 
Exponential 

data ValSpan

Valuators

data KnobType

Constructors

ThreeD (Maybe Int) 
Pie 
Clock 
Flat 

Instances

Default KnobType 

data SliderType

Constructors

Fill 
Engraved 
Nice 

Instances

Default SliderType 

data TextType

Constructors

NormalText 
NoDrag 
NoEdit 

Instances

Default TextType 

Other widgets

data ButtonType

Instances

Default ButtonType 

butBank :: String -> Int -> Int -> (Int, Int) -> Source (Evt (D, D))

butBankSig :: String -> Int -> Int -> (Int, Int) -> Source (Sig, Sig)

butBank1 :: String -> Int -> Int -> (Int, Int) -> Source (Evt D)

radioButton :: Arg a => String -> [(String, a)] -> Int -> Source (Evt a)Source

A radio button. It takes a list of values with labels.

matrixButton :: Arg a => String -> Int -> Int -> [a] -> (Int, Int) -> Source (Evt a)Source

A matrix of values.

funnyRadio :: Tuple b => String -> [(String, a -> b)] -> Int -> Source (a -> b)Source

Radio button that returns functions. Useful for picking a waveform or type of filter.

funnyMatrix :: Tuple b => String -> Int -> Int -> [a -> b] -> (Int, Int) -> Source (a -> b)Source

Matrix of functional values.

Transformers

Keyboard

data KeyEvt

Constructors

Press Key 
Release Key 

Instances

charOn :: Char -> Evt UnitSource

Shortcut for press CharKey events.

charOff :: Char -> Evt UnitSource

Shortcut for release CharKey events.