EditorX-80 Sensor Input Processing
The Processing sub-section configures a sensor input to apply algorithms to the sensor input value(s).
Processing
The following processing methods are available:
- Continuous output
- Peak / Dip detection
- Peak / Dip End notification
- Smoothing
- Difference calculation
- Constant output
- Inversion
A sensor input will only process values if either the Continuous or Peak method is enabled, or both. When multiple processing methods are selected, the double arrows on the right of the Processing menu will be coloured white against a black background.
How the processing methods are applied to the sensor signal can be seen in the signal flow diagrams.
See also the EDIT CONFIG command for more information about processing methods than provided here.
Continuous
The Continuous output method checks whether the sensor value has changed more than the Noise value before it is transmitted as a MIDI message. The Noise value can be set separately in steps of 1 when the MIDI message transmits sensor input values as 7-bit values (all MIDI messages except PitchBend), and in steps of 16 when the MIDI message transmits sensor input values as 14-bit values (Pitchbend messages). Setting the Noise value to zero results in all sensor values being output.
Peak / Dip
The Peak / Dip detection method starts searching for a peak or dip if the sensor value equals or crosses the Min threshold (ie. the Min value of the Range slider below the Processing menu). As long as each subsequent sensor value is greater than the previous value, no value is transmitted as a MIDI message. As soon as the sensor value is smaller or equal as the previous value a MIDI message is output where the sensor value is scaled between the Min and Max value of the Range. After the peak is detected and output, no new peak will be searched until the sensor value is equal or lower than the Min threshold. If the Inversion method is enabled, the search for a dip is started if the sensor value is lower than the Max value of the Range slider. A MIDI message is output as soon as the sensor value is equal or smaller than the Min value of the Range slider. No new dip will be searched until the sensor value is equal or higher than the Max value. The number of samples that are analyzed before establishing whether the sensor value is equal or smaller (peak) or larger (dip) than the previous sensor value can be set separately. Setting the number of samples higher than 1 allows for sub-peaks, eg. due to noise, to be filtered out. The Peak / Dip output method checks whether the sensor value has changed more than the Noise value before it is transmitted as a MIDI message. The Noise value can be set separately in steps of 1 when the MIDI message transmits sensor input values as 7-bit values (all MIDI messages except PitchBend), and in steps of 16 when the MIDI message transmits sensor input values as 14-bit values (Pitchbend messages). Setting the Noise value to zero results in all sensor values being output.
If the Peak / Dip End notification method is enabled, a MIDI message with value 0 is output if the sensor value reaches the Min value after a peak has been detected. If the Inversion method is enabled a MIDI message with value 127 (or 16383 in the case of pitchbend messages) is output is the sensor value reaches the Max value after a dip has been detected.
Smoothing
The Smoothing method applies an exponential moving average filter to the sensor values. The smoothing factor can be set separately, and a higher value increases the smoothing. The number of samples used to calculate the average can be set separately, and a higher number increases the smoothing. The advantage of the exponential smoothing average compared to the simple moving average is that the former results in less latency while providing a smoother output. The Smoothing or Averaging method will only be active when either the Continuous or Peak method is enabled, or both.
Difference
The Difference method outputs the difference between the current and the previous sensor values. The Difference method will only be active when either the Continuous or Peak method is enabled, or both.
Constant
The Constant output method allows for the output of the same value each time the threshold was passed. The threshold is either the Min value set in the Range field, or the Max value if the Range is inverted by checking Inverted in the Processing menu. The constant value can be set separately in steps of 7. The Constant method will only be active when the Peak method is enabled.
Inversion
The Inversion method inverts the range of the sensor input, ie. a higher sensor value results in a lower output value. This method can also be realized by selecting the Lookup Table method in the analog sensor methods. The Inversion method will only be active when either the Continuous or Peak method is enabled, or both.