Add microphone support, using new WebKit Audio API.#37
Add microphone support, using new WebKit Audio API.#37endel wants to merge 3 commits intojsantell:masterfrom
Conversation
Modify and document out new Dancer#load interface, which must accept only plain objects right now, since there are already three ways of loading (Audio element / src attribute / Microphone Input). Also added an example of microphone using FFT on examples/fft-microphone.
|
Hi endel, I've tried to use your code in a small project, here (dancer branch). However I'm not able to make it work: the offKick event would declench a bunch of time (like every ms...), but nothing happen. I'm using Chrome 23, flags enabled (I can use Chrome demo). May I have forgotten something? |
|
Hey @romaricdrigon, I've checked out your code and it worked just fine. You may calibrate the "threshold" of the Kick for your microphone sensitivity and ambient noise. |
|
I think I get it: I was trying to test it using my laptop microphone & some music playing on it. But it must have some kind of anti Larsen filter, it was filtered... So thanks for the tip! |
Modify and document out new Dancer#load interface, which must accept
only plain objects right now, since there are already three ways of
loading it (via audio element, src attribute, and microphone Input).
There is an example of microphone using FFT on examples/fft-microphone.
Please consider incrementing minor version, since Dancer#load interface was modified.
(Note: live audio input must be enabled.)
