Module
WAGS.Destroy
- Package
- purescript-wags
- Repository
- mikesol/purescript-wags
#Destroy Source
class Destroy (ptr :: Ptr) (i :: Graph) (o :: Graph) | ptr i -> o where
Destroy node ptr
in graph i
, resulting in graph o
. Note that, to destroy a node, it must have no outgoing or incoming edges. This is achieved via use of disconnect
. Failure to disconnect nodes before destroying will result in a compile-time error during graph validation.
Members
destroy :: forall env audio engine proof m res currentIdx changeBit skolems. Monad m => AudioInterpret audio engine => AudioUnitRef ptr -> FrameT env audio engine proof m res (UniverseC currentIdx i changeBit skolems) (UniverseC currentIdx o changeBit skolems) Unit
Instances
(BinToInt ptr, GraphToNodeList graphi nodeListI, PointerNotConnecteds ptr nodeListI, RemovePtrFromNodeList ptr nodeListI nodeListO, GraphToNodeList grapho nodeListO) => Destroy ptr graphi grapho
#PointerNotConnected Source
class PointerNotConnected (ptr :: Ptr) (i :: Node)
Internal helper class used for destroing audio nodes.
Instances
PointerNotConnected ptr (NodeC (TAllpass x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TAllpass x) (SingleEdge y))
PointerNotConnected ptr (NodeC (TBandpass x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TBandpass x) (SingleEdge y))
PointerNotConnected ptr (NodeC (TConstant x) NoEdge)
PointerNotConnected ptr (NodeC (TConvolver x name) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TConvolver x name) (SingleEdge y))
PointerNotConnected ptr (NodeC (TDelay x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TDelay x) (SingleEdge y))
PointerNotConnected ptr (NodeC (TDynamicsCompressor x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TDynamicsCompressor x) (SingleEdge y))
PointerNotConnected ptr (NodeC (TGain x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TGain x) (SingleEdge y))
(PtrNotInPtrList ptr (PtrListCons y z)) => PointerNotConnected ptr (NodeC (TGain x) (ManyEdges y z))
PointerNotConnected ptr (NodeC (THighpass x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (THighpass x) (SingleEdge y))
PointerNotConnected ptr (NodeC (THighshelf x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (THighshelf x) (SingleEdge y))
PointerNotConnected ptr (NodeC (TLoopBuf x) NoEdge)
PointerNotConnected ptr (NodeC (TLowpass x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TLowpass x) (SingleEdge y))
PointerNotConnected ptr (NodeC (TLowshelf x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TLowshelf x) (SingleEdge y))
PointerNotConnected ptr (NodeC (TMicrophone x) NoEdge)
PointerNotConnected ptr (NodeC (TNotch x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TNotch x) (SingleEdge y))
PointerNotConnected ptr (NodeC (TPeaking x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TPeaking x) (SingleEdge y))
PointerNotConnected ptr (NodeC (TPeriodicOsc x) NoEdge)
PointerNotConnected ptr (NodeC (TPlayBuf x) NoEdge)
PointerNotConnected ptr (NodeC (TRecorder x name) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TRecorder x name) (SingleEdge y))
PointerNotConnected ptr (NodeC (TSawtoothOsc x) NoEdge)
PointerNotConnected ptr (NodeC (TSinOsc x) NoEdge)
PointerNotConnected ptr (NodeC (TSpeaker x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TSpeaker x) (SingleEdge y))
(PtrNotInPtrList ptr (PtrListCons y z)) => PointerNotConnected ptr (NodeC (TSpeaker x) (ManyEdges y z))
PointerNotConnected ptr (NodeC (TSquareOsc x) NoEdge)
PointerNotConnected ptr (NodeC (TStereoPanner x) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TStereoPanner x) (SingleEdge y))
PointerNotConnected ptr (NodeC (TTriangleOsc x) NoEdge)
PointerNotConnected ptr (NodeC (TWaveShaper x name) NoEdge)
(BinEq ptr y False) => PointerNotConnected ptr (NodeC (TWaveShaper x name) (SingleEdge y))
#PointerNotConnecteds Source
class PointerNotConnecteds (ptr :: Ptr) (i :: NodeList)
Internal helper class used for destroing audio nodes.
Instances
PointerNotConnecteds a NodeListNil
(PointerNotConnected a head, PointerNotConnecteds a tail) => PointerNotConnecteds a (NodeListCons head tail)
#RemovePtrFromNodeList Source
class RemovePtrFromNodeList (ptr :: Ptr) (nodeListI :: NodeList) (nodeListO :: NodeList) | ptr nodeListI -> nodeListO
Internal helper class used for destroing audio nodes.
Instances
RemovePtrFromNodeList ptr NodeListNil NodeListNil
(GetAudioUnit head headAu, GetPointer headAu headPtr, BinEq ptr headPtr tf, RemovePtrFromNodeList ptr tail newTail, Gate tf newTail (NodeListCons head newTail) o) => RemovePtrFromNodeList ptr (NodeListCons head tail) o
- Modules
- FRP.
Event. MIDI - WAGS.
Change - WAGS.
Connect - WAGS.
Control. Functions - WAGS.
Control. MemoizedState - WAGS.
Control. Qualified - WAGS.
Control. Thunkable - WAGS.
Control. Types - WAGS.
Create - WAGS.
Cursor - WAGS.
Debug - WAGS.
Destroy - WAGS.
Disconnect - WAGS.
Graph. Constructors - WAGS.
Graph. Decorators - WAGS.
Graph. Getter - WAGS.
Graph. Optionals - WAGS.
Graph. Parameter - WAGS.
Interpret - WAGS.
Move - WAGS.
MoveNode - WAGS.
Rebase - WAGS.
Rendered - WAGS.
Run - WAGS.
Universe. AudioUnit - WAGS.
Universe. Bin - WAGS.
Universe. BinN - WAGS.
Universe. EdgeProfile - WAGS.
Universe. Graph - WAGS.
Universe. Node - WAGS.
Universe. Skolems - WAGS.
Universe. Universe - WAGS.
Util - WAGS.
Validation