Safe Haskell | None |
---|---|
Language | Haskell98 |
Graphical widgets for playing samples
- freeSim :: [(String, Sam)] -> Source Sam
- hfreeSim :: [(String, Sam)] -> Source Sam
- freeSimWith :: [(String, Sam, Bool)] -> Source Sam
- hfreeSimWith :: [(String, Sam, Bool)] -> Source Sam
- freeTog :: [(String, Sam)] -> Source Sam
- hfreeTog :: [(String, Sam)] -> Source Sam
- sim :: Int -> [(String, Sam)] -> Source Sam
- hsim :: Int -> [(String, Sam)] -> Source Sam
- simWith :: Int -> [(String, Sam, Bool)] -> Source Sam
- hsimWith :: Int -> [(String, Sam, Bool)] -> Source Sam
- tog :: Int -> [(String, Sam)] -> Source Sam
- htog :: Int -> [(String, Sam)] -> Source Sam
- live :: Int -> [String] -> [Sam] -> Source Sam
- liveEf :: Int -> [String] -> [Sam] -> (Double, FxFun) -> [(Double, FxFun)] -> Source Sam
- mixSam :: String -> Bpm -> Sam -> (String, SE Sig2)
- uiSam :: String -> Bool -> D -> Source Sam -> Source FxFun
- addGain :: SigSpace a => Source a -> Source a
Documentation
freeSim :: [(String, Sam)] -> Source Sam Source
A widget for playing several samples at the same time (aka sim
ultaneously).
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 tog
gle).
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 sim
ultaneously).
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
.