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

Safe HaskellNone

Synthesizer.LLVM.CausalParameterized.ProcessValue

Description

This module provides functions similar to Synthesizer.LLVM.CausalParameterized.Process but expects functions that operate on T. This way you can use common arithmetic operators instead of LLVM assembly functions.

Documentation

mapAccum :: (C pnh, ValueOf pnh ~ pnl, C psh, ValueOf psh ~ psl, C s) => (T pnl -> T a -> T s -> (T b, T s)) -> (T psl -> T s) -> T p pnh -> T p psh -> T p a bSource

map :: (C ph, ValueOf ph ~ pl) => (T pl -> T a -> T b) -> T p ph -> T p a bSource

mapSimple :: (T a -> T b) -> T p a bSource

zipWith :: (C ph, ValueOf ph ~ pl) => (T pl -> T a -> T b -> T c) -> T p ph -> T p (a, b) cSource

zipWithSimple :: (T a -> T b -> T c) -> T p (a, b) cSource

takeWhile :: (C ph, ValueOf ph ~ pl) => (T pl -> T a -> T (Value Bool)) -> T p ph -> T p a aSource