x-dsp-0.2.3.1: A embedded DSL for manipulating DSP languages in Haskell

Safe HaskellSafe-Infered

Language.XDsp.Semantics.Core

Synopsis

Documentation

class Dsp repr whereSource

Third version of tagless final csound interpreter no de Bruijn indices, a monadic repr

Associated Types

data ASig repr :: *Source

data KSig repr :: *Source

data INum repr :: *Source

Instances

Dsp HN 
Dsp (S n) 

class Dsp repr => Constants repr whereSource

Create signals from constants.

Methods

cnst :: Double -> repr (INum repr)Source

ckig :: Double -> repr (KSig repr)Source

csig :: Double -> repr (ASig repr)Source

Instances

class Var a whereSource

Named variables in a backend.

Associated Types

type VarRep a :: *Source

Methods

getVarRep :: a -> VarRep aSource

Instances

Varable s => Var s 

class Dsp repr => Asn repr a whereSource

Assign a signal to a named variable

Methods

asn :: a -> repr aSource

Instances

Varable a => Asn (S n) a

supports assignment

class Dsp repr => Cast repr whereSource

Methods

ik :: INum repr -> repr (KSig repr)Source

ia :: INum repr -> repr (ASig repr)Source

ki :: KSig repr -> repr (INum repr)Source

Instances

Cast (S n)