Skip to content

Conversation

@endel
Copy link

@endel endel commented Dec 9, 2012

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.)
webkit-audio-input-flags.png

endel added 2 commits December 9, 2012 02:29
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.
@romaricdrigon
Copy link

Hi endel,

I've tried to use your code in a small project, here (dancer branch).
I fetched all your code, build it using grunt (by the way, there're two warnings about 2 forgotten ;)

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?

@endel
Copy link
Author

endel commented Jan 3, 2013

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.

kick = dancer.createKick({
  threshold: 0.1,
  onKick: function (mag) {
    console.log('kick');
  },
  offKick: function () {
    console.log('off');
  }
}).on();

@romaricdrigon
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants