-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live input possible? #185
Comments
Hi Hendrik, sorry for the late reply. I was busy doing other things over the weekend. The short answer to your question is: It is sadly not possible to use live input right now because this module is designed to work with AudioBuffers which are typically obtained by calling decodeAudioData(). The longer but also more optimistic answer is: I do definitely think it's doable and I would love to add this feature. However I do currently need to prioritize paid client projects and my todo list for open source projects is already pretty long. It can take some time until I finally get the time to do it, or somebody else steps up to help. If the project you mentioned is backed by a budget and there is some money left to implement this feature, that would be awesome and allow me to prioritize working on it. |
Hi Chris Thanks for your extensive answer! I think I'll go with https://github.com/cjcliffe/beatdetektor which can be fed with webkitAudioContext() I'll be happy to try out your implementation in web-audio-beat-detector anyway, if you'll find time at some point :-) Thanks for your work, greetings Hendrik |
Hi Hendrik, I was of course curious and couldn't resist having a look at the links. I wonder if the beatdetektor by cjcliffe can be used as shown in the example you referenced. An AnalyserNode is known for its unreliability. It doesn't really guarantee to return predictable data at a given time. It just returns whatever it is currently processing, which could be the current or mabye the next render quantum. But it is very convenient here as it is the only AudioNode which returns frequency data. Can you please let me know if that technique produces reliable results? Many thanks in advance. |
Hey! Maybe it's possible to optimize the parameters, but I think you're right about the AnalyserNode beeing the problem here :-( I didn't imagine it's so hard to find a ready-to-use library for beatdetection.... I will implement beatdetektor for now but I'll swap it out for a better solution as soon as I find one. If you want to quickly see/try out, my findings, you can use this link (I just zipped what I tried out) |
Any updates on this or ideas how to implement a live input? |
Hi Chris
Sorry to bother you
Thanks for offering a tool for beat detection!
I would love to use it for a project of mine, but I need it to work with live audio input.
I have never done audio stuff using the web audio api.
If you find time, could you maybe give me a direction on how to use web-audio-beat-detector together with https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamSource or if that is even possible?
Thanks a lot,
Hendrik
The text was updated successfully, but these errors were encountered: