Predicates and Event Roles
A predicate keeps matching items in a collection without changing its source denominator. Choose a window predicate for relationships, or a one-event test for the action and keys in one event.
For relationships across events, see finger and key repetitions, row changes, lateral stretches, or rolls, redirects, and alternation.
Triggers, Keys, and Event Roles
Section titled “Triggers, Keys, and Event Roles”A combo presses several physical keys in one event. Find combo presses with triggers and its kind argument. Use keys when you want the physical member keys instead.
uni.triggers(events:press, kind:chord)Keystroke conditions#
Thumb#
thumb
A key action assigned to either thumb.
tri.any(thumb)Finger#
finger(set)
A key action assigned to a selected finger or finger set.
tri.every(finger(LH \ LT))Finger: Finger#
finger
The finger or finger set to match.
Accepted values: LP, LR, LM, LI, LT, RP, RR, RM, RI, RT, P, R, M, I, LH, RH.
Structured trigger keys#
triggers(events:press|acquire|release|sustain, kind:key|chord, finger:set, home:true|false)
Matches when one key belonging to a selected native key or chord trigger has all requested properties. Press, acquire, and release select the active event; sustain selects the carried trigger context.
uni.triggers(events:press,kind:chord,finger:LI,home:false)Structured trigger keys: Participation#
events
The active event categories or sustained context to inspect.
Accepted values: press, acquire, release, sustain.
Structured trigger keys: Trigger kind#
kind
Retains native key-versus-chord trigger identity.
Accepted values: key, chord.
Structured trigger keys: Finger#
finger
The resolved finger of the same matching physical key.
Accepted values: LP, LR, LM, LI, LT, RP, RR, RM, RI, RT, P, R, M, I, LH, RH.
Structured trigger keys: Home#
home
Whether that same physical key carries the authored home flag.
Accepted values: true, false.
Participating keys#
keys(events:press|release|acquire|sustain, finger:set, home:true|false)
Flattens the selected event and sustained trigger groups to physical keys, then matches one key with all requested properties. Omitted events include press, release, acquire, and sustain. Trigger identity is intentionally omitted.
uni.keys(finger:LH,home:false)Participating keys: Participation#
events
Event categories or sustained context to flatten; omitted selects press, release, acquire, and sustain.
Accepted values: press, release, acquire, sustain.
Participating keys: Finger#
finger
The resolved finger of the same matching physical key.
Accepted values: LP, LR, LM, LI, LT, RP, RR, RM, RI, RT, P, R, M, I, LH, RH.
Participating keys: Home#
home
Whether that same physical key carries the authored home flag.
Accepted values: true, false.
Interruptions and Window Quantifiers
Section titled “Interruptions and Window Quantifiers”A combo can occur anywhere in a triple. Check the window for at least one combo press with any; every requires each event to pass its singleton test.
tri.any(triggers(events:press, kind:chord))Individual event conditions#
Fallback miss#
miss
Matches a unigram whose native keystroke carries the fallback-miss identity.
uni.missInterrupted rhythm#
interrupted
Matches three-keystroke rhythms interrupted by a chord.
Aliases: int.
tri.interruptedWindow quantifiers#
Every keystroke#
every(condition)
Matches when every keystroke satisfies the singleton condition.
tri.every(!thumb).rollEvery keystroke: Condition#
condition
A condition checked separately against each keystroke.
Accepted values: thumb, finger.
Any keystroke#
any(condition)
Matches when at least one keystroke satisfies the singleton condition.
tri.any(thumb).rollAny keystroke: Condition#
condition
A condition checked separately against each keystroke.
Accepted values: thumb, finger.
No thumbs#
no_thumbs
Matches when no key pressed, acquired, or released by any keystroke uses a thumb. Keys only held over from an earlier keystroke are ignored.
tri.no_thumbs.roll