csound-expression-typed-0.2.7.1: typed core for the library csound-expression
Safe HaskellSafe-Inferred
LanguageHaskell2010

Csound.Typed.Control.Vco

Description

Band-limited oscillators

Synopsis

Documentation

saw :: Sig -> Sig Source #

A sawtooth.

isaw :: Sig -> Sig Source #

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

pulse :: Sig -> Sig Source #

Pulse (not normalized).

tri :: Sig -> Sig Source #

A triangle wave.

sqr :: Sig -> Sig Source #

A square wave.

blosc :: Tab -> Sig -> Sig Source #

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

saw' :: D -> Sig -> Sig Source #

A sawtooth.

isaw' :: D -> Sig -> Sig Source #

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

pulse' :: D -> Sig -> Sig Source #

Pulse (not normalized).

tri' :: D -> Sig -> Sig Source #

A triangle wave.

sqr' :: D -> Sig -> Sig Source #

A square wave.

blosc' :: Tab -> D -> Sig -> Sig Source #

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

Hard sync

data SyncSmooth Source #

Type of smooth shape to make smooth transitions on retrigger. Available types are:

  • No smooth: RawSync
  • Ramp smooth: SawSync
  • Triangular smooth: TriSync
  • User defined shape: UserSync

Instances

Instances details
Default SyncSmooth Source # 
Instance details

Defined in Csound.Typed.Control.Vco

Methods

def :: SyncSmooth #

sawSync :: Sig -> Sig -> Sig Source #

Sawtooth oscillator with hard-sync. The first argument is a ration between slave and master oscillators.

sawSync ratio cps

isawSync :: Sig -> Sig -> Sig Source #

Integrated sawtooth oscillator with hard-sync. The first argument is a ration between slave and master oscillators.

isawSync ratio cps

pulseSync :: Sig -> Sig -> Sig Source #

Pulse oscillator with hard-sync. The first argument is a ration between slave and master oscillators.

pulseSync ratio cps

triSync :: Sig -> Sig -> Sig Source #

Triangle oscillator with hard-sync. The first argument is a ration between slave and master oscillators.

triSync ratio cps

sqrSync :: Sig -> Sig -> Sig Source #

Square oscillator with hard-sync. The first argument is a ration between slave and master oscillators.

sqrSync ratio cps

bloscSync :: Tab -> Sig -> Sig -> Sig Source #

Band-limited oscillator with hard-sync. The first argument is a ration between slave and master oscillators.

bloscSync tab ratio cps

sawSync' :: D -> Sig -> Sig -> Sig Source #

Sawtooth oscillator with hard-sync with phase. The second argument is a ration between slave and master oscillators.

sawSync' phase ratio cps

isawSync' :: D -> Sig -> Sig -> Sig Source #

Integrated sawtooth oscillator with hard-sync with phase. The second argument is a ration between slave and master oscillators.

isawSync' phase ratio cps

pulseSync' :: D -> Sig -> Sig -> Sig Source #

Pulse oscillator with hard-sync with phase. The second argument is a ration between slave and master oscillators.

pulseSync' phase ratio cps

triSync' :: D -> Sig -> Sig -> Sig Source #

Triangle oscillator with hard-sync with phase. The second argument is a ration between slave and master oscillators.

triSync' phase ratio cps

sqrSync' :: D -> Sig -> Sig -> Sig Source #

Square oscillator with hard-sync with phase. The second argument is a ration between slave and master oscillators.

sqrSync' phase ratio cps

bloscSync' :: Tab -> D -> Sig -> Sig -> Sig Source #

Band-limited oscillator with hard-sync with phase. The second argument is a ration between slave and master oscillators.

bloscSync' phase tab ratio cps

Hard sync with absolute frequency for slave oscillator

sawSyncAbs :: Sig -> Sig -> Sig Source #

Sawtooth oscillator with hard-sync. The freq argument is an absolute frequency of a slave oscillator.

sawSyncAbs freq slaveCps masterCps

isawSyncAbs :: Sig -> Sig -> Sig Source #

Integrated sawtooth oscillator with hard-sync. The freq argument is an absolute frequency of a slave oscillator.

isawSyncAbs freq slaveCps masterCps

pulseSyncAbs :: Sig -> Sig -> Sig Source #

Pulse oscillator with hard-sync. The freq argument is an absolute frequency of a slave oscillator.

pulseSyncAbs freq slaveCps masterCps

triSyncAbs :: Sig -> Sig -> Sig Source #

Triangle oscillator with hard-sync. The freq argument is an absolute frequency of a slave oscillator.

triSyncAbs freq slaveCps masterCps

sqrSyncAbs :: Sig -> Sig -> Sig Source #

Square oscillator with hard-sync. The freq argument is an absolute frequency of a slave oscillator.

sqrSyncAbs freq slaveCps masterCps

bloscSyncAbs :: Tab -> Sig -> Sig -> Sig Source #

Bandlimited table oscillator with hard-sync. The freq argument is an absolute frequency of a slave oscillator.

bloscSyncAbs tab freq slaveCps masterCps

sawSyncAbs' :: D -> Sig -> Sig -> Sig Source #

Sawtooth oscillator with hard-sync with phase. The freq argument is an absolute frequency of a slave oscillator.

sawSyncAbs' phase freq slaveCps masterCps

isawSyncAbs' :: D -> Sig -> Sig -> Sig Source #

Integrated sawtooth oscillator with hard-sync with phase. The freq argument is an absolute frequency of a slave oscillator.

isawSyncAbs' phase freq slaveCps masterCps

pulseSyncAbs' :: D -> Sig -> Sig -> Sig Source #

Pulse oscillator with hard-sync with phase. The freq argument is an absolute frequency of a slave oscillator.

pulseSyncAbs' phase freq slaveCps masterCps

triSyncAbs' :: D -> Sig -> Sig -> Sig Source #

Triangle oscillator with hard-sync with phase. The freq argument is an absolute frequency of a slave oscillator.

triSyncAbs' phase freq slaveCps masterCps

sqrSyncAbs' :: D -> Sig -> Sig -> Sig Source #

Square oscillator with hard-sync with phase. The freq argument is an absolute frequency of a slave oscillator.

sqrSyncAbs' phase freq slaveCps masterCps

bloscSyncAbs' :: Tab -> D -> Sig -> Sig -> Sig Source #

Bandlimited table oscillator with hard-sync with phase. The freq argument is an absolute frequency of a slave oscillator.

bloscSyncAbs' phase tab freq slaveCps masterCps

Hard sync with custom smoothing algorythm

sawSyncBy :: SyncSmooth -> Sig -> Sig -> Sig Source #

Sawtooth oscillator with hard-sync. We can specify the smoothness type. The ratio argument is a ration between slave and master oscillators.

sawSyncBy spec ratio cps

isawSyncBy :: SyncSmooth -> Sig -> Sig -> Sig Source #

Integrated sawtooth oscillator with hard-sync. We can specify the smoothness type. The first argument is a ration between slave and master oscillators.

isawSyncB specy ratio cps

pulseSyncBy :: SyncSmooth -> Sig -> Sig -> Sig Source #

Pulse oscillator with hard-sync. We can specify the smoothness type. The ratio argument is a ration between slave and master oscillators.

pulseSyncBy spec ratio cps

triSyncBy :: SyncSmooth -> Sig -> Sig -> Sig Source #

Triangle oscillator with hard-sync. We can specify the smoothness type. The ratio argument is a ration between slave and master oscillators.

triSyncBy spec ratio cps

sqrSyncBy :: SyncSmooth -> Sig -> Sig -> Sig Source #

Square oscillator with hard-sync. We can specify the smoothness type. The ratio argument is a ration between slave and master oscillators.

sawSyncBy spec ratio cps

bloscSyncBy :: SyncSmooth -> Tab -> Sig -> Sig -> Sig Source #

Bandlimited table oscillator with hard-sync. We can specify the smoothness type. The ratio argument is a ration between slave and master oscillators.

bloscSyncBy spec tab ratio cps

sawSyncBy' :: SyncSmooth -> D -> Sig -> Sig -> Sig Source #

Sawtooth oscillator with hard-sync with phase. We can specify the smoothness type. The ratio argument is a ration between slave and master oscillators.

sawSyncBy' spec phase ratio cps

isawSyncBy' :: SyncSmooth -> D -> Sig -> Sig -> Sig Source #

Integrated sawtooth oscillator with hard-sync with phase. We can specify the smoothness type. The ratio argument is a ration between slave and master oscillators.

isawSyncBy' spec phase ratio cps

pulseSyncBy' :: SyncSmooth -> D -> Sig -> Sig -> Sig Source #

Pulse oscillator with hard-sync with phase. We can specify the smoothness type. The ratio argument is a ration between slave and master oscillators.

pulseSyncBy' spec phase ratio cps

triSyncBy' :: SyncSmooth -> D -> Sig -> Sig -> Sig Source #

Triangle oscillator with hard-sync with phase. We can specify the smoothness type. The ratio argument is a ration between slave and master oscillators.

triSyncBy' spec phase ratio cps

sqrSyncBy' :: SyncSmooth -> D -> Sig -> Sig -> Sig Source #

Square oscillator with hard-sync with phase. We can specify the smoothness type. The ratio argument is a ration between slave and master oscillators.

sawSyncBy' spec phase ratio cps

bloscSyncBy' :: SyncSmooth -> Tab -> D -> Sig -> Sig -> Sig Source #

Bandlimited table oscillator with hard-sync with phase. We can specify the smoothness type. The ratio argument is a ration between slave and master oscillators.

bloscSyncBy' spec phase tab ratio cps

Hard sync with absolute frequency for slave oscillator

sawSyncAbsBy :: SyncSmooth -> Sig -> Sig -> Sig Source #

A hard sync for sawtooth with absolute slave frequency.

sawSyncAbs syncType salveCps masterCps

isawSyncAbsBy :: SyncSmooth -> Sig -> Sig -> Sig Source #

A hard sync for integrated sawtooth: 4 * x * (1 - x) with absolute slave frequency.

isawSyncAbs syncType salveCps masterCps

pulseSyncAbsBy :: SyncSmooth -> Sig -> Sig -> Sig Source #

A hard sync for pulse wave with absolute slave frequency.

pulseSyncAbs syncType salveCps masterCps

triSyncAbsBy :: SyncSmooth -> Sig -> Sig -> Sig Source #

A hard sync for triangle wave with absolute slave frequency.

triSyncAbs syncType salveCps masterCps

sqrSyncAbsBy :: SyncSmooth -> Sig -> Sig -> Sig Source #

A hard sync for square wave with absolute slave frequency.

sqrSyncAbs syncType salveCps masterCps

bloscSyncAbsBy :: SyncSmooth -> Tab -> Sig -> Sig -> Sig Source #

A hard sync for band-limited oscillator with user defined waveform (it's stored in the table) woth absolute frequency.

bloscSyncAbs syncType ftable salveCps masterCps

sawSyncAbsBy' :: SyncSmooth -> D -> Sig -> Sig -> Sig Source #

A sawtooth.

isawSyncAbsBy' :: SyncSmooth -> D -> Sig -> Sig -> Sig Source #

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

pulseSyncAbsBy' :: SyncSmooth -> D -> Sig -> Sig -> Sig Source #

Pulse (not normalized).

triSyncAbsBy' :: SyncSmooth -> D -> Sig -> Sig -> Sig Source #

A triangle wave.

sqrSyncAbsBy' :: SyncSmooth -> D -> Sig -> Sig -> Sig Source #

A square wave.

bloscSyncAbsBy' :: SyncSmooth -> Tab -> D -> Sig -> Sig -> Sig Source #

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