synthesizer-llvm-0.2.0.1: Efficient signal processing using runtime compilation

Synthesizer.LLVM.Sample

Synopsis

Documentation

stereoFromMono :: Value a -> CodeGenFunction r (T (Value a))Source

Copy mono signal to both stereo channels.

class Additive a whereSource

Methods

zero :: aSource

add :: a -> a -> CodeGenFunction r aSource

Instances

mixStereoV :: (IsArithmetic a, IsPrimitive a) => T (Value a) -> T (Value a) -> CodeGenFunction r (T (Value a))Source

This may mean more shuffling and is not necessarily better than mixStereo.

mixInterleavedVectorToStereo :: (Arithmetic a, IsPowerOf2 n) => Value (Vector n a) -> CodeGenFunction r (T (Value a))Source

Mix components with even index to the left channel and components with odd index to the right channel.