hsc3-0.19.1: Haskell SuperCollider
Safe HaskellNone
LanguageHaskell2010

Sound.SC3.Common.Buffer.Vector

Description

Synopsis

Documentation

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

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

blendAtBy of clipAt.

blendAt 0 (V.fromList [2,5,6]) == 2
blendAt 0.4 (V.fromList [2,5,6]) == 3.2
blendAt 2.1 (V.fromList [2,5,6]) == 6

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

from_wavetable

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.

resamp1 12 (V.fromList [1,2,3,4])
resamp1 3 (V.fromList [1,2,3,4]) == V.fromList [1,2.5,4]