Looking for a formula...

DSP, Plugin and Host development discussion.
RELATED
PRODUCTS

Post

Rozzer wrote:
Big Tick wrote:
Rozzer wrote: To change bpm X to bpm Y, I'd have to pitch-shift by Z semitones.
If I have X & Y, how can I calculate Z ?
Should be something like:
Z = 12 * ln(Y/X)/ln(2)

So if you double the bpm, you're pitch-shifting by 12 semitones. ln is neperian log, btw.
'Tick
Thanks BigTick - I think that's what I'm looking for :)

useless bunch he said :roll:

:lol:
My other host is Bruce Forsyth

Post

Rozzer wrote:To change bpm X to bpm Y, I'd have to pitch-shift by Z semitones.

If I have X & Y, how can I calculate Z ?
Every semi-tone up multiplies the frequency by the 12th-root of 2, call this "r". With the frequency the speed (in any measure) also goes up by a factor of r. Shifting n semitones then shifts by r^n.

So you're looking for the n that makes r^n = (Y/X). The answer to that is the log-base-r of Y/X. Your calculator doesn't have log-base-r, but the natural log ln, so that becomes n = log-r (Y/X) = ln (Y/X) / ln r.

I think.

EDIT this is the same as what Big Tick posted: ln r = (ln 2)/12, which makes it his formula.

V.

Post

Brilliant - so if I wanted to reshuffle the formula so that I can know BPM Y after shifting BPM X by Z semitones, what would the formula be?

(god its been a long time since I did formulas)

cheers,
R :) zzer

Post

are you sure you're in the right job?...




:hihi:

Post

CypherOne wrote:are you sure you're in the right job?...




:hihi:
shut it you :P

Post

CypherOne wrote:are you sure you're in the right job?...

:hihi:

step by step.. year by year..

he'll get there


:hihi:
My other host is Bruce Forsyth

Post

Y = X * exp(Z * ln(2)/12)

Post

Rozzer wrote:
CypherOne wrote:are you sure you're in the right job?...




:hihi:
shut it you :P
just kidding, Metal Mickey is fantastic (I never use it but hey...). Sorry kidding again, would I be right in thinking that MM features in Time Lapse?

Post

Big Tick wrote:Y = X * exp(Z * ln(2)/12)
Ta muchly :)

Post

CypherOne wrote:
Rozzer wrote:
CypherOne wrote:are you sure you're in the right job?...




:hihi:
shut it you :P
just kidding, Metal Mickey is fantastic (I never use it but hey...). Sorry kidding again, would I be right in thinking that MM features in Time Lapse?
I think Timelapse was pre-MM actually, but it does end up in most of my tunes :)

(i was only kidding too ;))

Post

Kriminal wrote:1 semitone = 10BPM
I much prefer this method. :scared:

Post

scuzzphut wrote:
Kriminal wrote:1 semitone = 10BPM
I much prefer this method. :scared:
:lol:

Thanks again BigTick - those are working great :)

Post

step by step.. year by year..

he'll get there
May be a long journey! :hihi:

Paul
__________________________
Paul Chana
Senior Software Engineer
FXpansion Audio UK Ltd

Post Reply

Return to “DSP and Plugin Development”