ticks in ms

Post Reply
User avatar
szaszhareen
Posts: 519
Joined: Wed Nov 23, 2011 1:15 am
Location: deep beneath the earths crust

ticks in ms

Post 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.

synthphase
Posts: 85
Joined: Sat Dec 17, 2011 7:57 pm

Re: ticks in ms

Post by synthphase »

Cheapo Statistics are your friend.

User avatar
szaszhareen
Posts: 519
Joined: Wed Nov 23, 2011 1:15 am
Location: deep beneath the earths crust

Re: ticks in ms

Post 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:

User avatar
magmavander
Posts: 611
Joined: Tue Nov 22, 2011 5:22 pm
Location: France
Contact:

Re: ticks in ms

Post by magmavander »

here it is ;)
Attachments
cheapo statistics.zip
(16.71 KiB) Downloaded 166 times

User avatar
UNZ
Posts: 747
Joined: Mon Nov 21, 2011 9:42 pm
Contact:

Re: ticks in ms

Post by UNZ »

bpm = beats per minute
tpb = ticks per beat

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

User avatar
Evelon
Posts: 147
Joined: Tue Nov 22, 2011 11:00 pm

Re: ticks in ms

Post by Evelon »

synthphase wrote:Cheapo Statistics are your friend.
You still learn new things, even after years of Buzz use/abuse. Thanks!

User avatar
szaszhareen
Posts: 519
Joined: Wed Nov 23, 2011 1:15 am
Location: deep beneath the earths crust

Re: ticks in ms

Post 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.

4516N41
Posts: 60
Joined: Wed Nov 23, 2011 12:03 am
Location: Iceland
Contact:

Re: ticks in ms

Post 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:

User avatar
szaszhareen
Posts: 519
Joined: Wed Nov 23, 2011 1:15 am
Location: deep beneath the earths crust

Re: ticks in ms

Post by szaszhareen »

THANKS! :mrgreen:

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

User avatar
rajmond
Posts: 30
Joined: Tue Mar 27, 2012 7:15 pm
Location: Göteborg / Sweden
Contact:

Re: ticks in ms

Post 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.

User avatar
vacuum
Posts: 95
Joined: Fri May 04, 2012 10:24 am

Re: ticks in ms

Post 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.

User avatar
UNZ
Posts: 747
Joined: Mon Nov 21, 2011 9:42 pm
Contact:

Re: ticks in ms

Post by UNZ »

ms = 1000 / (bpm / 60 * tpb)

edit: now where's my PhD !?

User avatar
vacuum
Posts: 95
Joined: Fri May 04, 2012 10:24 am

Re: ticks in ms

Post 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.

4516N41
Posts: 60
Joined: Wed Nov 23, 2011 12:03 am
Location: Iceland
Contact:

Re: ticks in ms

Post 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. ;)

User avatar
szaszhareen
Posts: 519
Joined: Wed Nov 23, 2011 1:15 am
Location: deep beneath the earths crust

Re: ticks in ms

Post 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

Post Reply