This module exposes the functionality to encode a constructed AudioGraph into JSON. This is necessary because this package doesn't produce sound itself! Instead, typically you will send the serialised graph out through a port and have some javascript construct a real Web Audio graph using that data.
encodeGraph : AudioGraph -> Json.Encode.Value
Encode the entire AudioGraph into JSON. This is the primary way you will transmit the graph to the outside world.
encodeNode : AudioGraph.AudioNode -> Json.Encode.Value
This encodes a single AudioNode into JSON. You typically won't need to use this function directly, instead passing a complete graph to encodeGraph however it may be useful in some fringe cases.