r/AudioProgramming • • May 17 '24

Realtime audio playback speed

Hello everyone,

I've got an idea for a little project in my head but one of the main components that I haven't already blocked out is a way to load an audio file and change the speed in real time like you get with DJ software or a turntable or cassette player.

If anyone could point me in the right direction of how I would go about achieving this I would be eternally grateful!

I'm not too fussed about the language or platform or any of that stuff. I'm studying software engineering so I have a decent amount of knowledgeable in all the "big" languages.

Thank you!

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/c00ble May 17 '24

That's absolutely perfect thank you!

That solution is surprisingly easy and I'm sort of embarrassed I couldn't figure that out myself.

I'll definitely look into JUCE as I know a bit of C already so it shouldn't be too much of a crazy jump for me

2

u/Internal-Cancel-3207 Jun 04 '24

JUCE is the way. I am not too smart and I have written a lot of VST stuff in JUCE C++.

The hardest part to get started is getting to a Wave file. The code to open a dialog and read a wave file in will be 4x as big as your audio app. You might want to start by having the wave file saved in the JUCE project. It may be easier to get to the data from there.

And the C++ for Juce is not too hard to handle. I am a noob and got thru it.