Module

WAGS.Universe.Node

Package
purescript-wags
Repository
mikesol/purescript-wags

#Node Source

data Node

A single audio node in the graph.

#NodeC Source

data NodeC :: AudioUnit -> EdgeProfile -> Node

The sole constructor for an audio node. It is comprised of two distinct parts:

  • AudioUnit - the name of the node (ie a highpass filter, a sine-wave oscillator, etc) along with its pointer
  • EdgeProfile - incoming edges into the node

Instances

#NodeList Source

data NodeList

A list of audio nodes.

#type (/:) Source

Operator alias for WAGS.Universe.Node.NodeListCons (right-associative / precedence 5)

#type (/->) Source

Operator alias for WAGS.Universe.Node.NodeC (right-associative / precedence 5)

#NodeListKeepSingleton Source

class NodeListKeepSingleton (nodeListA :: NodeList) (nodeListB :: NodeList) (nodeListC :: NodeList) | nodeListA nodeListB -> nodeListC

This class acts as Alt for a NodeList with a supplemental assertion that the chosen list must contain at most one node.

Instances

#GetAudioUnit Source

class GetAudioUnit (node :: Node) (au :: AudioUnit) | node -> au

Class to get the audio unit from a node.

Instances