Math(s)!

Music trends, latest album reviews...whatever!

Moderators: MattKingUSA, khz

Post Reply
User avatar
RyanH
Established Member
Posts: 137
Joined: Fri Jul 08, 2022 7:58 am
Has thanked: 66 times
Been thanked: 27 times

Math(s)!

Post by RyanH »

I don't have any friends who are into music production, so I thought I would post this here. (Not really Linux-related, but I am using Linux for my recordings.)

I just wanted to share an example of how math (maths, for my right-pondlian brothers and sisters) can play a role in music production. This could be helpful to the young rebel who sits in class and says, "Who gives a fig about math(s)? I just wanna rawk!"

The situation:

I have a song for which I want to use a hold delay effect on the guitar, so I can loop a chord progression and then play a lead over-top of it. The effect starts recording what I play when I tap the switch on the pedal board, and starts to repeat it after whatever amount of time I have set.

The song is 128 beats per minute, in 4/4 time. I want the delay effect to kick in after 4 bars.

The problemo:

How many milliseconds should I set the delay to?

The calculation:

60 seconds ÷ 128 beats = 0.46875 seconds per beat = 467.75 milliseconds per beat

x 16 beats (which is how many beats are in 4 bars using 4/4 time signature) = 7500 milliseconds

So by a beautiful coincidence, the result is a nice, whole number that I can plug into my hold delay to get a precisely repeated guitar riff to play a lead over.

Math(s)!

User avatar
Impostor
Established Member
Posts: 739
Joined: Wed Aug 17, 2022 1:55 pm
Has thanked: 95 times
Been thanked: 171 times

Re: Math(s)!

Post by Impostor »

Could you please redo your calculations in binary? This is a Linux forum after all.

User avatar
Loki Harfagr
Established Member
Posts: 235
Joined: Thu Aug 02, 2018 1:28 pm
Has thanked: 108 times
Been thanked: 43 times

Re: Math(s)!

Post by Loki Harfagr »

Impostor wrote: Thu May 25, 2023 8:23 am

Could you please redo your calculations in binary? This is a Linux forum after all.

Given the Op used BPM and measure that'd be shift 4 bits left and 7 bits right akin to shift 3 bits right,
now use whatever coding language you prefer or have at hand ;)

Post Reply