Pretty well explained
Realize that MIDI CC value (for position detection) is sent immediately before the Note On (here we see 1 ms gap but I think it is because of the clock resolution, in fact they must have been sent at the highest midi speed one after another)
Originally written by a Roland product specialist employee.
I'm sure this topic has been covered before on this forum, but the CC data is sent before MIDI note information. Striking a pad (or activating a control pedal) initiates the message, but along with the channel data, the controller data and its value are sent just before the MIDI note data.
Example 1: A medium (velocity =77) strike in the center of the snare pad sends controller 16 and its value (center=0), followed by the MIDI note and the velocity of the note (10 =MIDI Channel).
17:19:08.879 From Port A Control 10 16 0
17:19:08.880 From Port A Note On 10 D1 77
17:19:08.980 From Port A Note Off 10 D1 64
Example 2: Two strikes on snare pad starting just inside the hoop (127) moving toward the center of the pad:
17:20:51.660 From Port A Control 10 16 127
17:20:51.661 From Port A Note On 10 D1 23
17:20:51.761 From Port A Note Off 10 D1 64
17:20:52.077 From Port A Control 10 16 0
17:20:52.078 From Port A Note On 10 D1 36
17:20:52.177 From Port A Note Off 10 D1 64
The Hi-Hat controller (CC4) has a value of 0 when the pedal is at rest (open) and increases as the pedal is closed. The following example is simply pedaling the hi-hat ( "chick" sound..without striking the pad) and leaving it closed:
18:12:11.657 From Port A Control 10 4 19
18:12:11.664 From Port A Control 10 4 77
18:12:11.666 From Port A Note On 10 G#1 127
18:12:11.667 From Port A Control 10 4 102
18:12:11.668 From Port A Note On 10 A#1 93
18:12:11.675 From Port A Control 10 4 108
18:12:11.686 From Port A Control 10 4 99
18:12:11.696 From Port A Control 10 4 102
18:12:11.728 From Port A Control 10 4 120
18:12:11.767 From Port A Note Off 10 G#1 64
18:12:11.767 From Port A Note Off 10 A#1 64
Striking the hi-hat pad while pedaling will obviously send the corresponding controller value and MIDI note (and velocity level) based on pedal position, where (head or rim), and how hard or soft the hi-hat pad is played.
__________________
Drew Armentrout
Product Specialist - Roland US
Drum & Percussion Products