Page 1 of 1

ticks in ms

Posted: Sun Dec 22, 2013 12:41 am
by szaszhareen
something that's been bugging me for a while: how can you convert values from ticks to ms and back?

useful for envelopes and such, i find myself wanting to do it all the time but can't figure it out. it's got to be some simple math based on tpb/bpm.

Re: ticks in ms

Posted: Sun Dec 22, 2013 9:46 am
by synthphase
Cheapo Statistics are your friend.

Re: ticks in ms

Posted: Mon Dec 23, 2013 1:37 am
by szaszhareen
sounds like a plan. do you have a link to the machine? it's not on buzzmachines and google was no help. :oops:

Re: ticks in ms

Posted: Mon Dec 23, 2013 2:13 am
by magmavander
here it is ;)

Re: ticks in ms

Posted: Mon Dec 23, 2013 11:25 pm
by UNZ
bpm = beats per minute
tpb = ticks per beat

i'll leave the rest to you as an excercise ;)

Re: ticks in ms

Posted: Tue Dec 24, 2013 8:48 pm
by Evelon
synthphase wrote:Cheapo Statistics are your friend.
You still learn new things, even after years of Buzz use/abuse. Thanks!

Re: ticks in ms

Posted: Fri Dec 27, 2013 4:23 am
by szaszhareen
thanks for sharing that mag :)

if i add this machine to the gens folder and try to add it to machine view, i get the error dialong:

Code: Select all

LoadLibrary("C:/Program Files(x86)/Jeskola/Buzz/Gear/Generators/cheapo statistic.dll") failed. the specified module could not be found.
same thing happens when i add it to the effects folder:

Code: Select all

LoadLibrary("C:/Program Files(x86)/Jeskola/Buzz/Gear/Effects/cheapo statistic.dll") failed. the specified module could not be found.
does it need to be in a different folder? the readme is unclear on this, i assumed it would go in effects.

i'd really like to be able to just figure it out on paper, i don't necessarily need another machine for this.

i've thought of something like:

128 bpm/8 tpb = 16 ticks
16 ticks at 128 bpm = ?ms
?ms at 128 bpm = 16 ticks

my math skills are not very good (something I'm working on fixing :)), so this is the sort of formula i'm thinking of. obviously, my brain gets stuck at figuring out where to look for the ms value i need.

Re: ticks in ms

Posted: Fri Dec 27, 2013 11:05 am
by 4516N41
Step 1

128bmp * 8tpb=1024 tick per minute.
1 min = 60 sec.
60sec/1024tpm=Time per tick. In this case 58.6ms
0.0586*1024=60sec. Time per tick*ticks=time

Step 2(only works when you have done step 1 in these examples I'm going to use the results from previous step 1)

1024/60=ticks per sec =17.0666
1sec/17.0666666=58.6ms per tick
16ticks*0.0586sec=0.94sec per 16ticks (just an 4*4 example because it might become handy)

I have never really had to use it for this but 1/f=T is used much in electronics like for an example. 1/1Hz=1sec or 1/50Hz=20ms per cycle .
So I could have confused some conversions. But it looks right to me(I also am getting a bit rusty when it comes to math) :)

Edit: I forgot to do the conversions back and forth. I'm not really used to explain my calculations just showing the math behind the result so some things may be a little unclear to the reader.

Hope this helps or at least steer you into the right direction :mrgreen:

Re: ticks in ms

Posted: Mon Jan 06, 2014 8:42 am
by szaszhareen
THANKS! :mrgreen:

this is exactly what i was looking for, i really appreciate it! :D

Re: ticks in ms

Posted: Mon Jan 06, 2014 9:00 pm
by rajmond
UNZ wrote:bpm = beats per minute
tpb = ticks per beat

i'll leave the rest to you as an excercise ;)
I love buzz. the music program where the musican has to have a PhD in mathematics.

Re: ticks in ms

Posted: Tue Jan 07, 2014 1:10 am
by vacuum
szaszhareen wrote: same thing happens when i add it to the effects folder:

Code: Select all

LoadLibrary("C:/Program Files(x86)/Jeskola/Buzz/Gear/Effects/cheapo statistic.dll") failed. the specified module could not be found.
does it need to be in a different folder? the readme is unclear on this, i assumed it would go in effects.
It should be in the effects folder.
I think some plugins like cheapo's need other dll's in order to work.
I don't have these problems myself, because I also installed old buzz 1.2 (in a seperate folder!).
And I used the old fixkit to install the old buzz 1.2 there, which puts some dll's in the windows folder,
so the newer 2008+ buzz builds profit from that too, I guess :geek:
(using the fixkit set up is not recommended for the newer builds, btw)

I guess you need msvcr70.dll , but I don't know what the safest way is to try dll's.

Re: ticks in ms

Posted: Tue Jan 07, 2014 10:47 am
by UNZ
ms = 1000 / (bpm / 60 * tpb)

edit: now where's my PhD !?

Re: ticks in ms

Posted: Tue Jan 07, 2014 1:45 pm
by vacuum
http://musiccalculator.com/#bpm-delay-timing

PhD in google search 8-)

I tried to find a Music Calculator: musiccalc.exe,
but http://musiccalculator.com/ has much more options.

Re: ticks in ms

Posted: Tue Jan 07, 2014 2:43 pm
by 4516N41
rajmond wrote:
I love buzz. the music program where the musican has to have a PhD in mathematics.
The funny thing for me is that I actually had to use more math using FT2 than Buzz because FT2 did not stretch the samples to FF or 80(like Pro2 and 4 does). So the next beat in FT2 for a 4 beat sample could be like 2C and then next beat was then 58(and if you had to timestretch anything. Oh bother). But in buzz it was 40 than 80 or 20 then 40. Much easier. ;)

Re: ticks in ms

Posted: Thu Jan 09, 2014 7:18 am
by szaszhareen
UNZ wrote:ms = 1000 / (bpm / 60 * tpb)

edit: now where's my PhD !?
for summarizing that so beautifully, i hereby bestow upon you the first ever and only honorary phd from the non-accredited unincorporated university of szashareen state LLC!

Image