hi
how can i convert ms to bpm value..
i don't find a box that do this.
sure someone of you use that fonction.
Thank you ++ !!
How to convert ms to bpm
hi
how can i convert ms to bpm value..
i don't find a box that do this.
sure someone of you use that fonction.
Thank you ++ !!
ms in
|
[60000 $1 ( <- message box
|
[/ ] <- divide by object
|
bpm out
Thanks for yours answers ,
i'm not friends with maths somtimes...
i have try the reverse
ms -> [expr $f1 * 4.16667] -> bpm
but it doesn't always make the exact conversion ...
Any suggestion ?
how are you measuring the bpm after that calculation?
In a number Box with a width of 10.
just for a test.
a bpm of 240 give me 1000.06 ms.
hmm, I'd try something like this:
expr $f1 * (1/3)
except instead of 1/3, whatever numbers you're using to come up with 4.16667
that would help if the problem is just rounding error
ooh , Sorry :
the right convertion to transform bpm to ms si :
in -> [ expr ( 1 / $f1 ) * 60000 ] -> out
but it make an not exact result too...
thank you for yours answers, It work anyway !!
Pd won't always display every digit, but it is still accurately represented internally. So even if there's only three digits after the decimal when there should be five, it will still pass the number through with the five digits. The only time it's an issue is if you type a number into, say, a message box, then save and reopen the patch. Then it gets reparsed to the truncated version (which is annoying).
Also, [expr (1/$f1)*60000] is just a more convoluted--and probably slightly more cpu intensive--way of saying [expr 60000/$f1].
there is an object to circumvent the problem .mmb describes... somewhere :/
pd redefining mathematics |expr fact(0)|==0
its float24
pd redefining mathematics |expr fact(0)|==0
Oops! Looks like something went wrong!