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

A simple BTrack example #5

Open
adv3006 opened this issue Dec 21, 2017 · 4 comments
Open

A simple BTrack example #5

adv3006 opened this issue Dec 21, 2017 · 4 comments

Comments

@adv3006
Copy link

adv3006 commented Dec 21, 2017

Hi,

I'm having a little trouble on how to use your BTrack. Can you make a simple program using your BTrack?

I really appreciate it

@adamstark
Copy link
Owner

Hi there,

I think the simplest explanation is on the README under "Usage - C++". Maybe try those steps and if you are having trouble i am happy to help! Let me know how you get on,

Thanks!

Adam

@adv3006
Copy link
Author

adv3006 commented Jan 2, 2018

Thanks for the reply,

I followed your instruction on the README, but part 3 is the part where I'm stuck. I don't know how to do with audio file like do something here to fill the frame with audio samples in Step 3.1 . It's my first time getting into audio analysis using C++

@adamstark
Copy link
Owner

Ah, right. It kind of depends on your application - are you trying to build something that works in real-time? Or are you trying to detect beats in an audio file?

In short, you need to fill an audio frame (basically an array or vector) with audio samples. If it is real-time then some kind of audio callback based on whatever framework you are using will provide you with the samples. If it is an audio file then you want to copy chunks (e.g. 512 samples) into a frame at a time and pass it to the beat tracker.

@adamstark
Copy link
Owner

(if it is audio files you are working with I wrote a simple library here:

https://github.com/adamstark/AudioFile
)

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