csound-expression-4.2.1: library to make electronic music

Safe HaskellNone
LanguageHaskell98

Csound.Air.Wave

Contents

Description

Basic waveforms that are used most often. A waveform function takes in a time varied frequency (in Hz).

Synopsis

Bipolar

osc :: Sig -> Sig Source

A pure tone (sine wave).

oscBy :: Tab -> Sig -> Sig Source

An oscillator with user provided waveform.

saw :: Sig -> Sig

A sawtooth.

isaw :: Sig -> Sig

Integrated sawtooth: 4 * x * (1 - x).

pulse :: Sig -> Sig

Pulse (not normalized).

sqr :: Sig -> Sig

A square wave.

tri :: Sig -> Sig

A triangle wave.

blosc :: Tab -> Sig -> Sig

A band-limited oscillator with user defined waveform (it's stored in the table).

Unipolar

unipolar :: Sig -> Sig Source

Turns a bipolar sound (ranges from -1 to 1) to unipolar (ranges from 0 to 1)

bipolar :: Sig -> Sig Source

Turns an unipolar sound (ranges from 0 to 1) to bipolar (ranges from -1 to 1)

on :: Sig -> Sig -> Sig -> Sig Source

Rescaling of the bipolar signal (-1, 1) -> (a, b)

on a b biSig

uon :: Sig -> Sig -> Sig -> Sig Source

Rescaling of the unipolar signal (0, 1) -> (a, b)

on a b uniSig

uosc :: Sig -> Sig Source

Unipolar pure tone.

uoscBy :: Tab -> Sig -> Sig Source

Unipolar oscBy.

usaw :: Sig -> Sig Source

Unipolar sawtooth.

uisaw :: Sig -> Sig Source

Unipolar integrated sawtooth.

upulse :: Sig -> Sig Source

Unipolar pulse.

usqr :: Sig -> Sig Source

Unipolar square wave.

utri :: Sig -> Sig Source

Unipolar triangle wave.

ublosc :: Tab -> Sig -> Sig Source

Unipolar band-limited oscillator.

Noise

rndh :: Sig -> SE Sig Source

Constant random signal. It updates random numbers with given frequency.

constRnd freq 

urndh :: Sig -> SE Sig Source

Unipolar rndh

rndi :: Sig -> SE Sig Source

Linear random signal. It updates random numbers with given frequency.

rndi freq 

urndi :: Sig -> SE Sig Source

Unipolar rndi

white :: SE Sig Source

White noise.

pink :: SE Sig Source

Pink noise.

Low frequency oscillators

type Lfo = Sig Source

Low frequency oscillator

lfo :: (Sig -> Sig) -> Sig -> Sig -> Sig Source

Low frequency oscillator

lfo shape depth rate