import { isPerformerName, performerProfiles, type PerformerName, type PerformerProfile, type SwingSetting } from './profiles.mts'; import type { Performance } from './transport'; export { isPerformerName, performerProfiles, type PerformerName, type PerformerProfile, type SwingSetting }; export type { Performance, PlaybackEvent, PlaybackNote } from './transport'; /** One performed measure, in seconds. Supply each repeat visit and local tempo in order. */ export interface PerformanceBar { duration: number; quarter: number; /** For varying tempos, beat ends and full beats' written eighth positions, in seconds from bar start. */ beats?: readonly { end: number; eighth?: number; }[]; /** Quarter length at the end of a tempo-changing bar, for any unmetered tail. */ endingQuarter?: number; /** Seconds already elapsed in the first quarter beat of a pickup. */ beatOffset?: number; /** False for meters whose written eighths should stay even. */ swingable?: boolean; /** A phrase-level cadence or the end of a slur near the barline. */ phraseEnd?: boolean; /** Written release positions of fermatas, in seconds from the beginning of the bar. */ fermatas?: readonly number[]; } /** One seed per play. Pass the same integer to reproduce a take, including grace borrowing. */ export declare function createPerformer(value?: PerformerName | PerformerProfile, seed?: number, swing?: SwingSetting): { literal: boolean; needsBeatGrid: boolean; /** Written graces steal from their principal, with a lightly varied share per onset. */ graceFraction(time: number, duration: number, count: number, slashed?: boolean): number; /** Part zero is the lead. Its pocket meets the ensemble at each swung offbeat. */ perform(parts: Performance[], bars?: readonly PerformanceBar[], tempo?: number): Performance[]; };