import BeatAgent from './BeatAgent'; import { Seconds } from '../global'; /** * Beat tracking class for processing onset data based on a set of tempo hypotheses. */ declare class BeatAgentGroup { initPeriod: number; thresholdBT: number; thresholdBI: number; tempoList: any; agents: BeatAgent[]; agentParams: any; constructor(tempoList: Seconds[], { initPeriod, thresholdBI, thresholdBT, }?: { initPeriod?: number | undefined; thresholdBI?: number | undefined; thresholdBT?: number | undefined; }); /** Add a new agent to the group. */ addAgent(beatInterval: Seconds, initialTime: Seconds, initialScore: number): void; /** Remove duplicate agents keeping the one with the higher score. */ removeSimilarAgents(): void; /** * Consider a single event * @param time seconds * @param intensity */ considerEvent(time: number, intensity: number): void; /** Find the agent with the best score. */ readonly winningAgent: BeatAgent; } export default BeatAgentGroup;