hsc3-0.20: Haskell SuperCollider
Safe HaskellSafe-Inferred
LanguageHaskell2010

Sound.Sc3.Common.Buffer.Vector

Description

Vector variants of Sound.Sc3.Common.Buffer. These functions have the same names as the plain forms and are not re-exported by Sound.Sc3.Common.

Synopsis

Documentation

clipAt :: Storable t => Int -> Vector t -> t Source #

blendAt :: (Storable t, RealFrac t) => t -> Vector t -> t Source #

blendAtBy of clipAt.

Sound.Sc3.Common.Buffer.Vector.blendAt 0 (V.fromList [2,5,6]) == 2
Sound.Sc3.Common.Buffer.Vector.blendAt 0.4 (V.fromList [2,5,6]) == 3.2
Sound.Sc3.Common.Buffer.Vector.blendAt 2.1 (V.fromList [2,5,6]) == 6

from_wavetable :: (Storable t, Num t) => Vector t -> Vector t Source #

from_wavetable

Sound.Sc3.Common.Buffer.Vector.from_wavetable (V.fromList [-0.5,0.5,0,0.5,1.5,-0.5,1,-0.5])

resamp1 :: (Storable t, RealFrac t) => Int -> Vector t -> Vector t Source #

resamp1.

Sound.Sc3.Common.Buffer.Vector.resamp1 12 (V.fromList [1,2,3,4])
Sound.Sc3.Common.Buffer.Vector.resamp1 3 (V.fromList [1,2,3,4]) == V.fromList [1,2.5,4]