Advanced Signal class for operations on two Signals. Extend this class and implement the calculate method which is used by all the other methods.
ArithmeticSignal
01 Syntax
Microsoft.VisualBasic.Math.SignalProcessing.Source.Arithmetic.ArithmeticSignal
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| calculate | 1 | Calculates the desired operation of the two operand's values at given frequency and phase |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| GraphData | 1 | Generates a GraphViewData array with Signal.GRAPH_SAMPLES entries. |
| AudioBytes | 1 | Generates a byte array with Signal.BUFFER_SIZE samples to be played back, resembling the sound of the signal. |
| SignalA | 1 | |
| SignalB | 1 |
04 Members
calculate(
Double, Double, Double, Double)Calculates the desired operation of the two operand's values at given frequency and phase
Parameters
| Name | Type | Description |
|---|---|---|
freq1 | Double | the first signal's frequency |
phase1 | Double | the first signal's phase |
freq2 | Double | the seconds signal's frequency |
phase2 | Double | the seconds signal's phase |
GraphData
Generates a GraphViewData array with Signal.GRAPH_SAMPLES entries. This method uses the internal phase and frequency values of its operand members.
Returns
the samples
AudioBytes
Generates a byte array with Signal.BUFFER_SIZE samples to be played back, resembling the sound of the signal. This method uses the internal phase and frequency values of its operand members.
Returns
the samples
SignalA
SignalB