iver56 / clap-detection Goto Github PK
View Code? Open in Web Editor NEWSimple clap rhythm detection on Raspberry Pi using Csound and Python. Toy example.
License: MIT License
Simple clap rhythm detection on Raspberry Pi using Csound and Python. Toy example.
License: MIT License
With this feature, one can have different clap rhythms that can trigger different actions. For example, one specific clap rhythm will turn on the lights while a different clap rhythm will turn on the TV.
As a musician, one might be more used to 'length of notes', instead of 'length of pauses'.
So in the example notes given
Instead of defining the pattern to be [2, 1, 1, 2] as the relative pauses between 'notes',
you could define it in musical beats as [1./4, 1./8, 1./8, 1./4, 1./4].
Now, a 'converter' could find the smallest of these fractions, and do multiplications to convert it to the proper pattern format.
Just looking for transients is not good enough because it results in a lot of false positives. A better approach would be machine learning
Connect with If This Then That
Hi
I have a cheap microfone usb-stick but the input level is quite low.
In alsamixer I can go up to 23.81dB but its still to silent to recognize
my claps. Is it possible to somehow preprocess the input stream somehow
that it gets amplified? Is it correct to set 0dbfs = 23 in clap.csd?
I just encountered an input error with my Aureon Dual sound card.
unable to set number of channels...it said.
So I just wonder which sound card you use. And do you have any recommendation on sound card that works fine on raspberry pi?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.