Link-14 Processing

From I-CubeX Wiki
Jump to: navigation, search

The processing window shows the flow of the sensor data, moving from left to right. This left-to-right order represents the order of how each block is applied to the sensor signal. By default Absolute Value and Peak / Dip are inactive.


Link-14 processing all.png


Access

From the main window, click the "edit" button to open its configuration window. Click the area below the "edit" button to enable/disable processing.


Link-14 sensors processing 1enabled.png


Smoothing

This applies exponential smoothing to the signal. Use this when you want to ignore small changes from a particularly noisy sensor. It's often useful in conjunction with Peak to avoid having small changes acting as a false trigger.

In the pictures below, you can see the raw signal on the left and the smoothed signal on the right. Notice the lack of sharp peaks.

Link-14 processing smoothing off.png Link-14 processing smoothing on.png


Input Range

You can use the Input Range setting to "zoom in" on the signal for a particular range. For example, if a particular sensor outputs a signal between 341 and 691 (roughly 1.7 and 3.3 Volts) and you would like that to correspond to the entire output range, set the max to 691 and and min to 341. The input range block will then scale the signal such that 691 now corresponds to 1023 and 341 corresponds to 0.

You can also set the range by clicking on the Set Range button and then using the sensor so that it hits the minimum and maximum values. When you click Done, the highest and lowest points hit by the signal will be set to the min and max.

Link-14 processing input range1.png Link-14 processing input range2.png


Absolute Value

This block is useful for sensors that have a signal that increases and decreases around a non-zero rest value. Examples include the GForce family of sensors and the Push2D amongst others. Once you set a midpoint, using either the sliders/number-box or the Set Mid-point button, the midpoint will be set to the new zero point and then any signal below or above the mid-point will be added to zero. This block can then be used to measure the overall magnitude of a signal while disregarding the direction.

Link-14 processing absolute value.png


Peak/Dip

This block filters the signal and only sends the peak value above a certain threshold. In other words, once the signal increases above the threshold, as soon as the signal stops increasing the peak value is sent. No other values will be sent until the signal drops back down below the threshold. In the image below, the peak value can be seen as a narrow blue band in the Peak/Dip block, as well as a spike in the Output range block. Dip is the same as Peak, but with the direction reversed, i.e. the dip refers to the lowest point after the signal has dropped below the lower threshold. Both thresholds can be set using either the number boxes, or by dragging the yellow region on top of the signal view.

Link-14 processing threshold.png Link-14 processing peak2.png

There are two optional parameters associated with Peak/Dip. One is the hold time, during which all further input to the block is ignored. In the image below, the hold time is set to 2000 ms, or 2 seconds. In this example, after the peak value is output the hold timer starts and nothing will be output until the 2 seconds have passed.

Link-14 processing peak options.png

The other option is to send a reset value when the signal crosses back below the threshold. This is useful in conjunction with MIDI Note On messages to end a note started by a peak value. For Peak, the reset value is 0 and for Dip the reset value is 1023.


Output Range

This block scales the signal range down to whatever range you set using the sliders or number boxes. For example, if you would like to limit the range of the signal to a value between 778 and 906, you would use the Output Range block to do this.

Link-14 processing output range1.png Link-14 processing output range2.png