The introduction provides a simple example but for efficient use the following considerations may be required.
Running the audio stream in its own thread so you can process user input or run other code in parallel. This is easily accomplished using
@spawn, see: example.
Enable or disable processing rather than modifying the pipeline. Each modifier has an enable flag so that it can be disabled, when disabled the signal is simply passed through and not modified.