Difference between revisions of "Component: Offset (DSP Operators)"

From Flowcode Help
Jump to navigationJump to search
 
(9 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
==Component Source Code==
 
==Component Source Code==
  
Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_DSP_Offset.fcfx FC_Comp_Source_DSP_Offset.fcfx]
+
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_DSP_Offset.fcfx FC_Comp_Source_DSP_Offset.fcfx]
 +
 
 +
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_DSP_Offset.fcfx FC_Comp_Source_DSP_Offset.fcfx]
  
 
==Detailed description==
 
==Detailed description==
 +
 +
 +
 +
 +
 +
 +
 +
  
  
Line 38: Line 48:
  
 
==Examples==
 
==Examples==
 +
 +
 +
 +
 +
 +
 +
 +
  
  
Line 55: Line 73:
  
 
''<span style="color:red;">No additional examples</span>''
 
''<span style="color:red;">No additional examples</span>''
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
  
  
 
==Macro reference==
 
==Macro reference==
  
 +
===Calculate===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
Line 72: Line 105:
  
  
 +
===CalculateArray===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
Line 85: Line 119:
  
  
 +
===SetOffset===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
Line 101: Line 136:
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
 
 
  
  

Latest revision as of 10:26, 20 October 2023

Author Matrix Ltd
Version 1.1
Category DSP Operators


Offset component

Allows the values in a single buffer to be offset uniformly. Functions include: Add, Subtract

Component Source Code

Please click here to download the component source project: FC_Comp_Source_DSP_Offset.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_DSP_Offset.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples









Macro reference

Calculate

Fc9-comp-macro.png Calculate
Performs the selected offset on a value from the input buffer and passes to the output buffer. 
Fc9-void-icon.png - VOID Return


CalculateArray

Fc9-comp-macro.png CalculateArray
Performs the selected offset on an entire buffer. 
Fc9-void-icon.png - VOID Return


SetOffset

Fc9-comp-macro.png SetOffset
Sets the Offset to be used when calling the calculate function. 
Fc9-s16-icon.png - INT Offset
 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-type-16-icon.png Connect To
DSP component with output buffer to collect our data from. 
Fc9-type-21-icon.png Buffer Size
Number of individual elements the buffer can store, default 1. 
Fc9-type-16-icon.png Buffer Type
Sets the buffer data type. 
Fc9-type-16-icon.png Direction
Sets the data direction flow of the component 
Fc9-conn-icon.png Offset
Fc9-type-16-icon.png Offset Type
Defines the type of calculation performed on the input buffer to obtain the output value. A left shift is essentially an optimised multiply with the multiplier being the 2^scaler A right shift is essentially an optimised divide with the divider being the 2^scaler  
Fc9-type-7-icon.png Rollover
Allow the output buffer to rollover. For example 128 + 128 = 256 which would equate to 0 using an 8-bit buffer with rollover enabled. With rollover disabled the output would be set to 255 which is the max representable value. 
Fc9-type-14-icon.png Initial Offset