HISE Docs

DspNetwork


The DSPNetwork is a class with a collection of nodes that can be arranged in multiple containers to build up a signal chain. It supercharges the script processor modules that already perform DSP operations with a graph-based audio development environment.

Feature list

For a full documentation about the scriptnode system, take a look at the dedicated documentation.

Class methods

clear

Removes all nodes.

DspNetwork.clear(bool removeNodesFromSignalChain, bool removeUnusedNodes)



create

Creates and returns a node with the given path (factory.node ). If a node with the id already exists, it returns this node.

DspNetwork.create(String path, String id)



createAndAdd

Creates a node, names it automatically and adds it at the end of the given parent.

DspNetwork.createAndAdd(String path, String id, var parent)



createFromJSON

Creates multiple nodes from the given JSON object.

DspNetwork.createFromJSON(var jsonData, var parent)



createTest

Creates a test object for this network.

DspNetwork.createTest(var testData)



deleteIfUnused

Deletes the node if it is not in a signal path.

DspNetwork.deleteIfUnused(String id)



get

Returns a reference to the node with the given id.

DspNetwork.get(var id)



prepareToPlay

Initialise processing of all nodes.

DspNetwork.prepareToPlay(double sampleRate, double blockSize)



processBlock

Process the given channel array with the node network.

DspNetwork.processBlock(var data)



setForwardControlsToParameters

Defines whether the UI controls of this script control the parameters or regular script callbacks.

DspNetwork.setForwardControlsToParameters(bool shouldForward)



setParameterDataFromJSON

Sets the parameters of this node according to the JSON data.

DspNetwork.setParameterDataFromJSON(var jsonData)



undo

Undo the last action.

DspNetwork.undo()