Difference between revisions of "Firmware-72 Function-002"
(Created page with "==TIME (2, 02h)== The timer function measures the time between two events defined by the peak and end-peak features defined in the EDIT CONFIG command. The following methods...") |
|||
Line 2: | Line 2: | ||
The timer function measures the time between two events defined by the peak and end-peak features defined in the EDIT CONFIG command. The following methods can be selected using the FUNCTION command’s parameter values FP1: | The timer function measures the time between two events defined by the peak and end-peak features defined in the EDIT CONFIG command. The following methods can be selected using the FUNCTION command’s parameter values FP1: | ||
− | |||
FP1 | FP1 |
Revision as of 15:55, 3 November 2015
TIME (2, 02h)
The timer function measures the time between two events defined by the peak and end-peak features defined in the EDIT CONFIG command. The following methods can be selected using the FUNCTION command’s parameter values FP1:
FP1
0yyyyyyy: | yyyyyyy = [1..127]; Scale factor |
yyyyyyy = 1; time is output in ms | |
yyyyyyy = 100; time is output in 10ths of a second |
Example:
In order to output the time in ms of a tap on a Touch sensor connected to input 1 of the USB-microDig as MIDI controller 64 messages, the following messages are sent (see also the EDIT CONFIG command):
- 240, 125, 0 {DEV}, 8 {FUNCTION}, 0 {yyy = 0}, 0 {FP2}, 2 {time function}, 1 {ms}, 247 (F0h, 7Dh, 00h, 08h, 00h, 3Ch, 02h, 01h, F7h)
- 240, 125, 0 {DEV}, 106 {EDIT CONFIG}, 1 {configuration number}, 0 {input}, 48 {control-change message}, 64 {controller number}, 34 {peak detection with end notification}, 64 {threshold}, 127 {top}, 0 {noisegate}, 0 {time window}, 247 (F0h, 7Dh, 00h, 6Ah, 01h, 00h, 30h, 40h, 22h, 40h, 7Fh, 00h, 00h, F7h)
The threshold value may need adjustment to properly capture the signal peaks that occur when tapping the Touch sensor.