Input class overview
Input is used in the Filter
class to handle connections between signal elements.
This class stores pointers to other signal elements which are used as
input to the current signal element as well as storing default values
if there is no input signal on the specified channel. If you know that the
upstream signal elements are up to date for the current sample, then you can
access the upstream value by the [] operator.
For example, suppose there is a Scale signal element which has one
connection at index 0, then you can access the value of the incoming
signal by using "inputs[0]". If there is no incoming signal connected
to index location 0, then inputs[0] will return a zero by default.
If an invalid index is accesed, then a zero will be returned as
the value of the signal.