Hi. This is another of many experiments with _MEMSOUND. It's a piece of code from another program of mine that I'm writing now. I thought someone might be interested. If someone could change the speed logarithmically, the effect could be achieved as if the DJ on the turntable changes the speed and direction of rotation of the turntable by hand. Now it is set linearly, to demonstrate the functionality of the smooth speed change. Note that it is allowed to play from the end to the beginning, just like when a DJ spins a playback to the other side for a while. Unfortunately, it is still very far from perfect.
It uses _MOUSEMOVEMENTY, so drag the mouse in the Y axis to change the playback speed (and direction).
On row 1 rewrite your audio file name.
SndFile$ = "01 Mydlovar.mp3"
SndL = _MEMSOUND(Snd, 1)
SndR = _MEMSOUND(Snd, 2)
size& = OFFSET_to_I64(SndL.SIZE) \ 2
STP = 1
i = i + 1
ap& = ap& + 2
PRINT "Drag the mouse in the y-axis to correct the speed of sound, ESC for quit!"
STP = STP + (MMY / 100)
S = S + STP
LeftValue = Sam(S).Left
RightValue = Sam(S).Right
_SNDRAW LeftValue
/ 32767, RightValue
/ 32767
Offset_to_i64 = num
OFFSET_to_I64 = num