Skip to content

@liminal-hq/undertone / Hap

Interface: Hap<T> ​

Defined in: pattern.ts:51

One event returned by querying a pattern. part is the fragment of the event inside the queried span; whole is the event's full extent, which may reach outside the query. An event is an onset (actually triggers a voice) only when part starts exactly where whole does — see hasOnset().

Type Parameters ​

T ​

T

Properties ​

part ​

readonly part: TimeSpan

Defined in: pattern.ts:53


value ​

readonly value: T

Defined in: pattern.ts:54


whole? ​

readonly optional whole?: TimeSpan

Defined in: pattern.ts:52