Error: Could not find enough samples for a reliable detection.
See original GitHub issueI’m trying to connect it to a live radio stream but it just keeps throwing that error. is there a way to do this with a live feed?
getBPM = () => {
console.log("bpm");
let { source } = this.state;
let audioContext = this.props.audioContext;
const scriptProcessorNode = audioContext.createScriptProcessor(4096, 1, 1);
scriptProcessorNode.connect(audioContext.destination);
source.connect(scriptProcessorNode);
const onAudioProcess = new RealTimeBPMAnalyzer({
debug: true,
scriptNode: {
bufferSize: 4096,
numberOfInputChannels: 1,
numberOfOutputChannels: 1,
},
pushTime: 1000,
pushCallback: (err, bpm) => {
console.log("65", err);
console.log("bpm", bpm);
},
});
scriptProcessorNode.onaudioprocess = (e) => {
onAudioProcess.analyze(e);
};
};
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
What to do When Your Sample Size is Not Big Enough
In real world research, sometimes your sample size is not big enough. This is what you do when you can't achieve the necessary...
Read more >Understanding the relevance of sample size calculation - PMC
A smaller sample will give a result which may not be sufficiently powered to detect a difference between the groups and the study...
Read more >Too Much or Not Enough: Sample Sizes and Statistical Analysis
The Type I error is the error of detecting a negligible difference. This error is considered the false positive rate, the producer's risk...
Read more >Sample Size Calculation with R
'just right'. • The answer: Sample Size Calculation. • Goal: We strive to have enough samples to reasonably detect an effect if it...
Read more >How to Determine the Correct Sample Size - Qualtrics
Instantly calculate your ideal sample size with our free-to-use tool and learn the math and methodology behind the process. ✓ Learn more today!...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI I’ve implemented a solution with the new unreleased version of the library. I will keep you in touch when it will be.
I just released the version 2.1.1 (https://www.npmjs.com/package/realtime-bpm-analyzer/v/2.1.1) 😃