Welcome to %s forums

BrainModular Users Forum

Login Register

Delay calculation query

I need help on a Patch
Post Reply
Pianoscope
Member
Posts: 57
Contact:

Unread post by Pianoscope » 12 Jun 2016, 12:25

This is more a maths question, but I am trying to create a delay where I can specify exact lengths such as 13, 23 27 beats, synced to the workspace master bpm

can anyone show me the path?

thanks

ps

shawnb
Member
Posts: 190
Location: San Francisco
Contact:

Unread post by shawnb » 12 Jun 2016, 21:56

Two simple rules in doing these types of conversions, which are basically unit conversions:
(1) It's always OK to multiply by 1... All unit conversions make use of this fact...
(2) Units cancel. Unit conversions make use of this fact, too...

As an example, let's assume you're trying to calculate the length, in ms, of 27 beats of a song at a tempo of 140 bpm. You're trying to convert beats to ms - a unit conversion.

Note that 60sec/minute and 1000ms/sec both equal one, since top & bottom are equivalent. Note that for a song of 140bpm, the "per" in bPm is telling you that the top and bottom are equal, too...

Thus, the formula:
length in ms = beats x (minute/beats) x (secs/minute) x (ms/sec)

...helps you calculate ms by taking your # of beats & multiplying by 1 a few times to accomplish unit conversions (rule #1 above). Note that beats, minutes & secs all cancel (rule #2 above), leaving you with ms.

So, how many ms are in 27 beats at 140bpm???
ms = 27 beats x (1min/140beats) x (60sec/1min) x (1000ms/sec)
= (27x1x60x1000)/140
= 11571.43 ms

Hope this helps...
Address the process rather than the outcome. Then, the outcome becomes more likely. - Fripp

Pianoscope
Member
Posts: 57
Contact:

Unread post by Pianoscope » 13 Jun 2016, 09:19

That was, thanks, will keep at it till I really get it.
next step is to build that into a delay with possibly a combobox selecting beat number

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests