csound-expression-0.3.3: Csound combinator library

Safe HaskellSafe-Infered

CsoundExpr.Base.Gens

Contents

Description

Gen routines. First argument is ftable's size, load time is set to zero.

http://www.csounds.com/manual/html/ScoreGenRef.html

Synopsis

Documentation

skipNorm :: Irate -> IrateSource

skip normalization. It can be applied to values created with genXX functions or genXX-like values (i.e. things converted from genXX to specific gens, or things created with genXX'NN)

Specific gens

Converts values created with genXXs to some specific GEN form.

q = toFtgentmp $ gen10 4096 [1]

toFtgen :: Irate -> IrateSource

converts values created with genXX to ftgen csound opcode representation. Two first arguments assigned to zero.

toFtgentmp :: Irate -> IrateSource

converts values created with genXX to ftgentmp csound opcode representation. Two first arguments assigned to zero.

toFtgenonce :: Irate -> IrateSource

converts values created with genXX to ftgenonce csound opcode representation. Two first arguments assigned to zero.

Empty table (csound f0)

ftempty :: IrateSource

ftempty value is rendered to 0

Sine/Cosine generators

gen09 :: Int -> [Double] -> IrateSource

GEN09 - Composite waveforms made up of weighted sums of simple sinusoids.

url : http://www.csounds.com/manual/html/GEN09.html

gen10 :: Int -> [Double] -> IrateSource

GEN10 - Composite waveforms made up of weighted sums of simple sinusoids.

url : http://www.csounds.com/manual/html/GEN10.html

gen11 :: Int -> Int -> [Double] -> IrateSource

GEN11 - Additive set of cosine partials.

url : http://www.csounds.com/manual/html/GEN11.html

gen19 :: Int -> [Double] -> IrateSource

GEN19 - Composite waveforms made up of weighted sums of simple sinusoids.

url : http://www.csounds.com/manual/html/GEN19.html

gen30 :: Int -> Irate -> [Double] -> IrateSource

GEN30 - Generates harmonic partials by analyzing an existing table.

url : http://www.csounds.com/manual/html/GEN30.html

gen33 :: Int -> Irate -> [Double] -> IrateSource

GEN33 - Generate composite waveforms by mixing simple sinusoids.

url : http://www.csounds.com/manual/html/GEN33.html

gen34 :: Int -> Irate -> [Double] -> IrateSource

GEN34 - Generate composite waveforms by mixing simple sinusoids.

url : http://www.csounds.com/manual/html/GEN34.html

Line/Exponential Segment Generators:

gen05 :: Int -> [Double] -> IrateSource

GEN05 - Constructs functions from segments of exponential curves.

url : http://www.csounds.com/manual/html/GEN05.html

gen06 :: Int -> [Double] -> IrateSource

GEN06 - Generates a function comprised of segments of cubic polynomials.

url : http://www.csounds.com/manual/html/GEN06.html

gen07 :: Int -> [Double] -> IrateSource

GEN07 - Constructs functions from segments of straight lines.

url : http://www.csounds.com/manual/html/GEN07.html

gen08 :: Int -> [Double] -> IrateSource

GEN08 - Generate a piecewise cubic spline curve.

url : http://www.csounds.com/manual/html/GEN08.html

gen16 :: Int -> [Double] -> IrateSource

GEN16 - Creates a table from a starting value to an ending value.

url : http://www.csounds.com/manual/html/GEN16.html

gen25 :: Int -> [Double] -> IrateSource

GEN25 - Construct functions from segments of exponential curves in breakpoint fashion.

url : http://www.csounds.com/manual/html/GEN25.html

gen27 :: Int -> [Double] -> IrateSource

GEN27 - Construct functions from segments of straight lines in breakpoint fashion.

url : http://www.csounds.com/manual/html/GEN27.html

File Access GEN Routines:

gen01 :: Int -> String -> [Double] -> IrateSource

GEN01 - Transfers data from a soundfile into a function table.

url : http://www.csounds.com/manual/html/GEN01.html

gen23 :: Int -> String -> IrateSource

GEN23 - Reads numeric values from a text file.

url : http://www.csounds.com/manual/html/GEN23.html

gen28 :: Int -> String -> IrateSource

GEN28 - Reads a text file which contains a time-tagged trajectory.

url : http://www.csounds.com/manual/html/GEN28.html

Numeric Value Access GEN Routines

gen02 :: Int -> [Double] -> IrateSource

GEN02 - Transfers data from immediate pfields into a function table.

url : http://www.csounds.com/manual/html/GEN02.html

gen17 :: Int -> [Double] -> IrateSource

GEN17 - Creates a step function from given x-y pairs.

url : http://www.csounds.com/manual/html/GEN17.html

Window Function GEN Routines

gen20 :: Int -> [Double] -> IrateSource

GEN20 - Generates functions of different windows.

url : http://www.csounds.com/manual/html/GEN20.html

Random Function GEN Routines

gen21 :: Int -> [Double] -> SideEffect IrateSource

GEN21 - Generates tables of different random distributions.

url : http://www.csounds.com/manual/html/GEN21.html

gen40 :: Int -> Irate -> SideEffect IrateSource

GEN40 - Generates a random distribution using a distribution histogram.

url : http://www.csounds.com/manual/html/GEN40.html

gen41 :: Int -> [Double] -> SideEffect IrateSource

GEN41 - Generates a random list of numerical pairs.

url : http://www.csounds.com/manual/html/GEN41.html

gen42 :: Int -> [Double] -> SideEffect IrateSource

GEN42 - Generates a random distribution of discrete ranges of values.

url : http://www.csounds.com/manual/html/GEN42.html

gen43 :: Int -> String -> [Double] -> IrateSource

GEN43 - Loads a PVOCEX file containing a PV analysis.

url : http://www.csounds.com/manual/html/GEN43.html

Waveshaping GEN Routines

gen03 :: Int -> [Double] -> IrateSource

GEN03 - Generates a stored function table by evaluating a polynomial.

url : http://www.csounds.com/manual/html/GEN03.html

gen13 :: Int -> [Double] -> IrateSource

GEN13 - Stores a polynomial whose coefficients derive from the Chebyshev polynomials of the first kind.

url : http://www.csounds.com/manual/html/GEN13.html

gen14 :: Int -> [Double] -> IrateSource

GEN14 - Stores a polynomial whose coefficients derive from Chebyshevs of the second kind.

url : http://www.csounds.com/manual/html/GEN14.html

gen15 :: Int -> [Double] -> IrateSource

GEN15 - Creates two tables of stored polynomial functions.

url : http://www.csounds.com/manual/html/GEN15.html

Amplitude Scaling GEN Routines

gen04 :: Int -> Irate -> [Double] -> IrateSource

GEN04 - Generates a normalizing function.

url : http://www.csounds.com/manual/html/GEN04.html

gen12 :: Int -> [Double] -> IrateSource

GEN12 - Generates the log of a modified Bessel function of the second kind.

url : http://www.csounds.com/manual/html/GEN12.html

gen24 :: Int -> Irate -> [Double] -> IrateSource

GEN24 - Reads numeric values from another allocated function-table and rescales them.

url : http://www.csounds.com/manual/html/GEN24.html

Mixing GEN Routines

gen18 :: Int -> [(Irate, Double, Int, Int)] -> IrateSource

GEN18 - Writes composite waveforms made up of pre-existing waveforms.

url : http://www.csounds.com/manual/html/GEN18.html

gen31 :: Int -> Irate -> [Double] -> IrateSource

GEN31 - Mixes any waveform specified in an existing table.

url : http://www.csounds.com/manual/html/GEN31.html

gen32 :: Int -> [(Irate, Int, Double, Double)] -> IrateSource

GEN32 - Mixes any waveform, resampled with either FFT or linear interpolation.

url : http://www.csounds.com/manual/html/GEN32.html

genXX'2

Gens size is power of two

genXX'2  = genXX . (2^) 

genXX'12

Gens size is power of two plus one

genXX'12 = genXX . (+1) . (2^)