clap-detector
clap-detector copied to clipboard
Clap detection module for node js
This pull request attempts to fix the `RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stderr maxBuffer length exceeded`. Alternatively, `exec` could be replaced with `spawn` as suggested in https://github.com/tom-s/clap-detector/issues/21#issuecomment-1024965201 and implemented in https://github.com/131/clap-trigger/blob/b6f890e/index.js#L80-L104, this would...
This pull request treats the `CLAP_MAX_DURATION` as milliseconds as the output from SoX is in seconds and seems to always be below 1. This is used as a reference https://github.com/131/clap-trigger/blob/b6f890e/index.js#L15.
This pull request restores compatibility with the `default` method after transpilation with Babel 6+. Fixes https://github.com/tom-s/clap-detector/issues/10, https://github.com/tom-s/clap-detector/issues/20.
This pull request includes a check for the "Rough frequency" frequency value as well, this seems to prevent many false positives.
This pull request updates the config in the README to match the code in the config to prevent the following error: ``` /home/pi/node_modules/clap-detector/lib/index.js:177 throw err; ^ Error: Command failed: sox...
it seems to be more precise if i add Maximum delta > 0.5 to the isClap method (i had it trigger more or less randomly while listening to music)
``` import ClapDetector from 'clap-detector' const clap = new ClapDetector() ``` It keeps giving that error & i have also installed the module correctly
Hi, I try to use jour Libary, but I'm realy new to node js. So maybe this is a normal beginner question, but I don't found anything on "google" that...