hakoru-tuner-two
Version:
Expo uyumlu, gerçek zamanlı tuner (YIN algoritmasıyla frekans ve nota tespiti)
12 lines (11 loc) • 311 B
TypeScript
export interface PitchResult {
freq: number;
note: string;
cents: number;
isInTune: boolean;
}
export function start(options?: { a4: number }): Promise<boolean>;
export function stop(): void;
export function onPitchDetected(
callback: (data: PitchResult) => void
): { remove: () => void };