Skip to content

EventData

#include "crosspad/event/EventData.hpp"

Generated from crosspad/event/EventData.hpp in crosspad-core. Edit the header’s doxygen comments to change this page.

Portable event data structures for CrossPad event system.

Recipes that use it: Tempo and transport, Motion and vibration, UI kit

FieldTypeDescription
channeluint8_t
noteuint8_t
velocityuint8_t
sourceEventSource

Declared in crosspad/event/EventData.hpp:16.

FieldTypeDescription
channeluint8_t
noteuint8_t
velocityuint8_t
sourceEventSource

Declared in crosspad/event/EventData.hpp:23.

FieldTypeDescription
padIdxuint8_t
isOnbool
velocityuint8_t
sourceEventSource

Declared in crosspad/event/EventData.hpp:30.

FieldTypeDescription
padIdxuint8_t
sourceEventSource

Declared in crosspad/event/EventData.hpp:37.

Posted by the Sampler after a kit change.

FieldTypeDescription
appNamechar[32]
sourceEventSource

Members

MemberDescription
setName

Methods

void setName(const char *name)

Declared in crosspad/event/EventData.hpp:42.

Used in Tempo and transport.

FieldTypeDescription
bpmfloat
sourceEventSource

Declared in crosspad/event/EventData.hpp:52.

Used in UI kit.

FieldTypeDescription
noteuint8_tPad index (0-15), or 16+ for preview channel.
wavIdxuint8_tActual sample index being played.
isOnbooltrue = note on, false = note off
velocityuint8_t1-127 playback velocity (ignored when isOn = false)
sourceEventSource
transposeint8_tSemitones on top of the pad’s own pitch, for this note only: 16 levels of pitch play one pad’s sample from every pad.
keyuint8_tWhich hit this is, for the release and the per-pad retrigger, when it is not the pad itself: two pads playing one sample at two pitches are two notes, not one note cut short.

Declared in crosspad/event/EventData.hpp:57.

FieldTypeDescription
enabledbool
sourceEventSource

Declared in crosspad/event/EventData.hpp:73.

What the motion sensor recognised.

The names are the gestures, not a particular part’s register bits — a platform whose IMU knows fewer of them simply never posts the rest.

Used in Motion and vibration.

ValueValueDescription
SingleTap
DoubleTap
FreeFall
WakeUpmotion after a still period
Orientationthe board was turned to another face
Stillno motion long enough for the sensor to say so

Declared in crosspad/event/EventData.hpp:81.

Used in Motion and vibration.

FieldTypeDescription
gestureMotionGesture
orientationuint8_tface the board rests on, meaningful for Orientation
sourceEventSource

Declared in crosspad/event/EventData.hpp:90.

DeclarationDescription
constexpr uint8_t kSamplePlaybackOwnKey