haskore-supercollider-0.1.2.2: Haskore back-end for SuperCollider

Haskore.Interface.SuperCollider.Example

Synopsis

Documentation

type Song = (String, T)Source

normalizeLevel :: Fractional a => a -> [a] -> [a]Source

normalize a list of numbers, such that they have a specific average

colorDust :: Double -> InstrumentSource

The dust UGen as provided by SuperCollider has a problem: The higher the sample rate, the more narrow are the impulses, the less volume you obtain. We work-around this by choosing a larger impulse. (We could also use a fixed width for the impulses.)

parabolaOsciSource

Arguments

:: UGen

Zero means a perfect parabola. The higher the absolute value, the closer is the waveform to a saw.

-> UGen

frequency

-> UGen 

Oscillator with the waveform of a parabola.

The parabola is created by moving a saw up or down, and squaring it. That is we repeat the function x -> (x+s)^2.

The crux is the subsequent normalization to zero DC offset. This boils down to a parabola plus a saw.

data Drum Source

Constructors

Hihat 
BassDrum 

Instances