Wednesday, November 10, 2021

Slowing/Speeding Up A Sample To Pitch

I just watched a documentary about Frank Zappa. One of his children said that there was no way to slow down or speed up playback of digital audio in the way analogue tape can. Of course, this is wrong. Although a audio workstation software tends to limit the sample rate to a fixed value, eg. 44100hz for 'CD quality' or 48000hz, 96k etc., you can often set the playback speed in sample editors, like SoundForge, to slowdown or speed up a sample. I thought I'd draw up a frequency table of playback speeds to retune a wave.

Sample playback speeds to retune a wave, with frequencies based on 44100hz. Ratio formula = pow(2, note/12).

NoteRatioFreq
-120.522050
-110.529723361
-100.561224750
-90.594626222
-80.630027781
-70.667429433
-60.707131183
-50.749133038
-40.793735002
-30.840937083
-20.890939289
-10.943941625
0144100
+11.059546722
+21.122549501
+31.189252444
+41.259955563
+51.334858866
+61.414262367
+71.498366075
+81.587470004
+91.681874167
+101.781878577
+111.887783250
+12288200