hsc3-0.17: Haskell SuperCollider

Safe HaskellSafe
LanguageHaskell98

Sound.SC3.Common.Buffer.Gen

Contents

Description

Implementaion of server b_gen routines.

The naming scheme is: _p generates one partial, _l generates a list of partials, _nrm is the unit normalised form.

Synopsis

Documentation

sum_l :: Num n => [[n]] -> [n] Source #

Sum (mix) multiple tables into one.

nrm_u :: (Fractional n, Ord n) => [n] -> [n] Source #

Unit normalisation.

sine1

sine1_p :: (Enum n, Floating n) => Int -> (n, n) -> [n] Source #

sine3_p with zero phase.

import Sound.SC3.Plot {- hsc3-plot -}
plotTable1 (sine1_p 512 (1,1))

sine1_l :: (Enum n, Floating n) => Int -> [n] -> [[n]] Source #

Series of sine wave harmonics using specified amplitudes.

sine1 :: (Enum n, Floating n) => Int -> [n] -> [n] Source #

sum_l of sine1_l.

import Sound.SC3.Plot {- hsc3-plot -}
plotTable1 (sine1 256 [1,0.95 .. 0.5])

sine1_nrm :: (Enum n, Floating n, Ord n) => Int -> [n] -> [n] Source #

nrm_u of sine1_l.

plotTable1 (sine1_nrm 256 [1,0.95 .. 0.5])

sine2

sine2_l :: (Enum n, Floating n) => Int -> [(n, n)] -> [[n]] Source #

Series of n sine wave partials using specified frequencies and amplitudes.

sine2 :: (Enum n, Floating n) => Int -> [(n, n)] -> [n] Source #

sum_l of sine2_l.

plotTable1 (sine2 256 (zip [1,2..] [1,0.95 .. 0.5]))
plotTable1 (sine2 256 (zip [1,1.5 ..] [1,0.95 .. 0.5]))

sine2_nrm :: (Enum n, Floating n, Ord n) => Int -> [n] -> [n] Source #

sine3

sine3_p :: (Enum n, Floating n) => Int -> (n, n, n) -> [n] Source #

Sine wave table at specified frequency, amplitude and phase.

sine3_l :: (Enum n, Floating n) => Int -> [(n, n, n)] -> [[n]] Source #

sine3 :: (Enum n, Floating n) => Int -> [(n, n, n)] -> [n] Source #

sum_l of sine3_l.

plotTable1 (sine3 256 (zip3 [1,1.5 ..] [1,0.95 .. 0.5] [0,pi/7..]))

cheby

gen_cheby :: (Enum n, Floating n, Ord n, Integral i) => i -> [n] -> [n] Source #

Generate Chebyshev waveshaping table, see b_gen_cheby.

import Sound.SC3.Plot
plotTable1 (gen_cheby 256 [1,0,1,1,0,1])

cheby :: (Enum n, Floating n, Ord n) => Int -> [n] -> [n] Source #

Type specialised gen_cheby.