csound-sampler-0.0.6.2: A musical sampler based on Csound

Safe HaskellNone
LanguageHaskell98

Csound.Sam.Ui

Description

Graphical widgets for playing samples

Synopsis

Documentation

freeSim :: [(String, Sam)] -> Source Sam Source

A widget for playing several samples at the same time (aka simultaneously). The prefix free means no syncronization. the samples start to play when the button is pressed.

hfreeSim :: [(String, Sam)] -> Source Sam Source

It's just like the function freeSim but the visual representation is horizontal. That's why there is a prefix h.

freeSimWith :: [(String, Sam, Bool)] -> Source Sam Source

It's just like the function freeSim but the user can activate some samples right in the code. If the third element is True the sample is played.

hfreeSimWith :: [(String, Sam, Bool)] -> Source Sam Source

It's just like the function freeSimWith but the visual representation is horizontal. That's why there is a prefix h.

freeTog :: [(String, Sam)] -> Source Sam Source

The widget to toggle between several samples (aka toggle). The prefix free means no syncronization. the samples start to play when the button is pressed.

hfreeTog :: [(String, Sam)] -> Source Sam Source

It's just like the function freeTog but the visual representation is horizontal.

sim :: Int -> [(String, Sam)] -> Source Sam Source

A widget for playing several samples at the same time (aka simultaneously). The first argument is about syncronization.

sim n nameAndSamples

The samples are started only on every n'th beat. The tempo is specified with rendering the sample (see the function runSam).

hsim :: Int -> [(String, Sam)] -> Source Sam Source

It's just like the function sim but the visual representation is horizontal. That's why there is a prefix h.

simWith :: Int -> [(String, Sam, Bool)] -> Source Sam Source

It's just like the function sim but the user can activate some samples right in the code. If the third element is True the sample is played.

hsimWith :: Int -> [(String, Sam, Bool)] -> Source Sam Source

It's just like the function hsimWith but the visual representation is horizontal. That's why there is a prefix h.

tog :: Int -> [(String, Sam)] -> Source Sam Source

A widget to toggle playing of several samples. The switch of the playing is synchronized with each n'th beat where n is the first argument of the function.

htog :: Int -> [(String, Sam)] -> Source Sam Source

It's just like the function tog but the visual representation is horizontal. That's why there is a prefix h.

live :: Int -> [String] -> [Sam] -> Source Sam Source

The widget resembles the Ableton Live session view. We create a matrix of samples. we can toggle the samples in each row and we can start playing the whole row of samples.

live n groupNames samples

The first argument is for synchroization. we can start samples only on every n'th beat. The second argument gives names to the columns. the length of the list is the number of columns. the column represents samples that belong to the same group. The third argument is a list of samples. It represents the matrix of samples in row-wise fashion.

liveEf :: Int -> [String] -> [Sam] -> (Double, FxFun) -> [(Double, FxFun)] -> Source Sam Source

It's just like the function live but we can provide the list of effects for each column. The double value specifies the mix between dry and wet signals.

mixSam :: String -> Bpm -> Sam -> (String, SE Sig2) Source

It's useful to convert samples to signals an insert them in the widget mixer.

uiSam :: String -> Bool -> D -> Source Sam -> Source FxFun Source

Creates fx-unit from sampler widget.

uisam name isOn bpm samWidget

addGain :: SigSpace a => Source a -> Source a Source

Adds gain slider on top of the widget.