synthesizer-core-0.8.1.2: Audio signal processing coded in Haskell: Low level part

Safe HaskellNone
LanguageHaskell2010

Synthesizer.Basic.Binary

Synopsis

Documentation

class C a where Source #

Minimal complete definition

outputFromCanonical, numberOfChannels

Methods

outputFromCanonical :: (Bounded int, C int, Monoid out) => (int -> out) -> a -> out Source #

numberOfChannels :: a -> Int Source #

Instances

C Double Source # 

Methods

outputFromCanonical :: (Bounded int, C int, Monoid out) => (int -> out) -> Double -> out Source #

numberOfChannels :: Double -> Int Source #

C Float Source # 

Methods

outputFromCanonical :: (Bounded int, C int, Monoid out) => (int -> out) -> Float -> out Source #

numberOfChannels :: Float -> Int Source #

C a => C (T a) Source # 

Methods

outputFromCanonical :: (Bounded int, C int, Monoid out) => (int -> out) -> T a -> out Source #

numberOfChannels :: T a -> Int Source #

(C a, C b) => C (a, b) Source # 

Methods

outputFromCanonical :: (Bounded int, C int, Monoid out) => (int -> out) -> (a, b) -> out Source #

numberOfChannels :: (a, b) -> Int Source #

toCanonical :: (C real, Bounded int, C int) => int -> real Source #

fromCanonicalWith :: (C real, Bounded int, C int) => (real -> int) -> real -> int Source #

fromCanonicalSimpleWith :: (C real, Bounded int, C int) => (real -> int) -> real -> int Source #

Warning: This may produce negative results for positive input in some cases! The problem is that (maxBound :: Int32) cannot be represented exactly as Float, the Float value is actually a bit larger than the Int32 value. Thus when converting the Float back to Int32 it becomes negative. Better use fromCanonicalWith.

numberOfSignalChannels :: C yv => sig yv -> Int Source #