Skip to content
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

Using a mp3 file to detect beat instead of sound stream #273

Open
tharinduc opened this issue Nov 1, 2017 · 2 comments
Open

Using a mp3 file to detect beat instead of sound stream #273

tharinduc opened this issue Nov 1, 2017 · 2 comments

Comments

@tharinduc
Copy link

In the Sound section of the ofBook, they use sound stream when detecting the beat or calculating the rms. How to use the mp3 file loaded using ofSoundPlayer to calculate the beat or the rms in the way mentioned in the ofBook?

@roymacdonald
Copy link
Contributor

Hi, you need to use an addon for such. There is ofxSoundObjects which I co-wrote, that can be helpful. Check ofxaddons for other addons that probably can do what you want to.

The problem is that ofSoundPlayer uses a certain library to play files, which doesn't give access to the sound data, it just plays directly to the speakers. Hope this helps.
cheers

@tharinduc
Copy link
Author

Thanks. I will check your addon. Im not a sound technology savvy guy. Im trying to implement some lighting effects using the arduino according to the song which is playing. Is there any easy way to contact you if I run into troubles? Thanks

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

No branches or pull requests

2 participants