Firmware-72 Function-010

From I-CubeX Wiki
Revision as of 16:08, 3 November 2015 by Admin (talk | contribs) (Created page with "==ABS-BPM== The ABS-BPM function measures the frequency of successive peaks as defined in the EDIT CONFIG command. The following methods can be selected using the FUNCTION co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ABS-BPM

The ABS-BPM function measures the frequency of successive peaks as defined in the EDIT CONFIG command. The following methods can be selected using the FUNCTION command’s parameter values FP1 and FP2:

FP1

0xxxxxxx: xxxxxxx: [0..127]; Offset

FP2

0m00yyyy: yyyy: [0..15]; Smoothing
m = 0; monitor off
m = 1; monitor on

When the monitor is enabled, the processed sensor value before peak detection is output as MIDI note-on or control-change messages, with the number being one higher than the note or controller number set by the EDIT CONFIG command.

Example:

In order to output the frequency in BPM of a BioVolt sensor connected to input 1 of the USB-microDig (in stand-alone mode with USB-microMIDICable and battery-powered so as to prevent electrical shock) 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}, 100 {smoothing}, 10 {biobeat function}, 64 {offset}, 247 (F0h, 7Dh, 00h, 08h, 00h, 64h, 0Ah, 40h, F7h)
240, 125, 0 {DEV}, 106 {EDIT CONFIG}, 1 {configuration number}, 0 {input}, 48 {control-change message}, 64 {controller number}, 34 {peak detection and smoothing}, 64 {threshold}, 127 {top}, 0 {noisegate}, 0 {time window}, 247 (F0h, 7Dh, 00h, 6Ah, 02h, 00h, 30h, 40h, 22h, 40h, 7Fh, 00h, 00h, F7h)

The threshold value may need adjustment to properly capture the heartbeat signal peaks.