v3.1.3
This release includes new events (STOP and RESET) to add more controls over the library. You need to use the processor postMessage method to trigger an event.
realtimeAnalyzerNode.port.postMessage({
message: 'STOP' | 'RESET',
});
Add handy getBiquadFilters
method to create low and high pass filters with specific settings in order to capture the bass peaks. You can still create your own.
import { getBiquadFilters } from 'realtime-bpm-analyzer';
getBiquadFilters(audioContext);