@hypst/time-beat-format
Version:
Formatting time, notes and beats.
26 lines (25 loc) • 958 B
TypeScript
import { HMSTime } from "./HMSTime";
import { BeatTimeOption } from "./definitions";
export declare class BeatTime {
static BEAT_REGEXP: RegExp;
constructor(option: BeatTimeOption, s: string);
constructor(option: BeatTimeOption, note: number, beat: number, division: number);
constructor(option: BeatTimeOption, hmsTime: HMSTime);
constructor(option: BeatTimeOption, beatTime: BeatTime);
constructor(option: BeatTimeOption);
readonly _option: BeatTimeOption;
protected _note: number;
protected _beat: number;
protected _division: number;
get note(): number;
get beat(): number;
get division(): number;
set note(v: number);
set beat(v: number);
set division(v: number);
parseString(s: string): void;
parseNumber(note?: number, beat?: number, division?: number): void;
parseHMSTime(timeObj: HMSTime): void;
toString(): string;
toHMSTime(): HMSTime;
}