csound-expression-4.5: library to make electronic music

Safe HaskellNone
LanguageHaskell98

Csound.Air.Spec

Description

Spectral functions

Synopsis

Documentation

toSpec :: Sig -> Spec Source

Converts signal to spectrum.

fromSpec :: Spec -> Sig Source

Converts spectrum to signal.

mapSpec :: (Spec -> Spec) -> Sig -> Sig Source

Applies a transformation to the spectrum of the signal.

scaleSpec :: Sig -> Sig -> Sig Source

Scales all frequencies. Usefull for transposition. For example, we can transpose a signal by the given amount of semitones:

scaleSpec (semitone 1) asig

addSpec :: Sig -> Sig -> Sig Source

Adds given amount of Hz to all frequencies.

addSpec hz asig

scalePitch :: Sig -> Sig -> Sig Source

Scales frequency in semitones.