Skip to main content

Module expression

Module expression 

Source
Expand description

Per-note MPE expression tracking — pitch-bend, pressure, and timbre (CC74) held per member channel.

Because each MPE note owns a member channel, its three continuous expression dimensions are just that channel’s current state:

  • pitch-bend — 14-bit, centered (stored as a signed offset from center),
  • pressure — channel pressure / aftertouch (0..=127),
  • timbre — CC 74 (“slide”), 0..=127.

MpeExpression is a fixed [ChannelExpr; 16] table indexed by channel, so updating a controller value is an allocation-free array write — safe on the real-time thread.

Structs§

ChannelExpr
The live expression state of one member channel.
MpeExpression
Per-member-channel MPE expression table.

Constants§

CC_TIMBRE
Assignable MPE per-note continuous-controller number for timbre (CC 74).