Expand description
Clock charts and tick conversion helpers for SIM streams.
The crate keeps clock math in library space. Kernel events still carry only
kernel Tick values, with clock indexes interned as datum content refs.
Re-exports§
pub use cookbook::tempo_chart_demo;
Modules§
- cookbook
- Deterministic cookbook builders for stream-clock recipes.
Structs§
- Clock
- Named clock with a
ClockDomainand aClockChart, the unit of clock math in this crate. - Clock
Index - Position on a clock timeline, counted in that clock’s own units (frames for frame clocks, ticks for MIDI clocks).
- Index
Conversion - Result of converting an
Instantto aClockIndex, paired with any diagnostics raised by the conversion. - Instant
- Exact, non-negative point in time held as a reduced rational number of seconds.
- Stream
Clock Descriptor - Citizen wrapper that carries a
Clockas a self-describingstream/Clockvalue. - Tempo
Map - Ordered list of
TempoSegments describing how MIDI tempo changes over a timeline. - Tempo
Segment - One constant-tempo span of a MIDI
TempoMap, starting at a tick offset.
Enums§
- Clock
Chart - Timing law that maps a clock’s indexes to
Instants and back.
Statics§
- RECIPES
- Cookbook recipes for this lib, embedded at build time.
Functions§
- stream_
clock_ class_ symbol - Returns the
stream/Clockclass symbol for registering and looking upStreamClockDescriptorvalues.