Sonic Flow Blocks Reference Guide
The purpose of SF_Multiplier is to multiply an arbitrary number of input signals together and output the product. The product is calculated pointwise.
SF_Multiplier (const char* name = 0);
This is the constructor of a SF_Multiplier block. Following attributes of the class are specified in the constructor:
virtual ~SF_Multiplier ();
This is the destructor.
virtual void finish ();
virtual void initialize ();
virtual void execute ();
The initialize
- execute
- finish
chain of function calls is used to carry out the simulation of a block. See
SF_Block.
The initialize
does nothing specific.
The execute
carries out the actual simulation process.
First, the output frame is filled with the value set with set_value
or one by default. Secondly, each input signal X
is multiplied
pointwise to the output signal.
The finish
does nothing.
inline void set_initial_value (SF_Sample a);
This function is used to set the value, to which the output frame is initialized before the summing. If no value is set, one is used as default.
inline SF_Sample get_initial_value ();
This function returns the initial value.
enum Input_Indices {X};
enum Output_Indices {Y};
Last modified: Wed Dec 2 13:28:47 1998
jarno.seppanen@cs.tut.fi
Audio Research Group