-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
How to get BPM? #1565
Comments
maybe can help #467 :) |
Thanks, I did see that, but rather then using a separate function, I'd like to use a small anonymous function to keep the code more readable (need to get the BPM for 2 tracks). It's also a matter of trying to understand the script language and how I should write it :) |
You can store the bpm in a reference as follows (non-tested code but you should get the idea):
The reference For future reference, I have just improved the interface to something more sensible: 1401b4a. |
Is the When I use it like this:
the log always returns:
|
In your example, the bpm is updated every 10 seconds (and the first time it has to wait for 10 seconds, so that your |
Gotcha, I figured it would update instantly, and then every x amount of seconds (which is why I just gave it a higher value). |
The thing is that the operator has to be fed with some audio before being able to compute the bpm... I don't think there is an easy way of executing it once currently (if you really need this we can think of something based on |
Ah, that makes sense. Thanks for the help! |
When I try to get the BPM and store it in a variable using this code
It says
But from what I can find in the documentation, I can't set a variable to "unit" (which would made sense since it's pretty ambiguous).
What would be the correct way of doing this?
The text was updated successfully, but these errors were encountered: