All files / player-engine/src/core engine.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37                                                                         
/**
 * The playback engine's public surface (`@be-music/player-engine`).
 *
 * The engine is a deterministic judge core and one play loop around it:
 *
 * - `judge-core.ts` / `auto-judge-core.ts` — pure judge state machines (`step(state, input) → effects`);
 * - `play.ts` — `manualPlay` / `autoPlay`: a play session (`play-session.ts`) run through the play loop
 *   (`play-loop.ts`, `play-controls.ts`, `play-finish.ts`) with a judge strategy (`play-manual.ts`, `play-replay.ts`,
 *   `play-auto.ts`) plugged in;
 * - `engine-effects.ts` — maps core effects onto the host's audio session, UI buses, replay and trace;
 * - `engine-preparation.ts`, `engine-audio.ts`, `engine-clock.ts`, `engine-trace.ts`, `engine-types.ts` — the
 *   services around the loop and the public types.
 *
 * What a host's runtimes exchange with a running play, the lanes, what a host shows and the ruleset vocabulary are the
 * `./signals`, `./lanes`, `./display` and `./ruleset` entries.
 */
export * from './engine-types.ts';
export * from './guide-sound.ts';
export { autoPlay, manualPlay } from './play.ts';
export { resolveChartRulesetFacts, resolvePlayChart } from './engine-preparation.ts';
export { createTempoClock, type TempoClock, type TempoClockSegment } from './tempo-clock.ts';
export { preparePlaybackChart, type PreparedPlaybackChartData } from './bootstrap.ts';
export { arrangeChartPlayLanes } from './chart-play-lanes.ts';
export {
  applyChartPlayOptions,
  type ChartPlayArrangement,
  type ChartPlayLayout,
  type ChartPlaySelection,
} from './chart-play-options.ts';
export {
  resolveChartNotesPlayVariant,
  resolveEffectiveChartPlayOptions,
  type ChartPlayOptionContext,
} from './chart-notes-options.ts';
 
export type { AudioSinkClockState } from '../audio-clock.ts';