When I make a tempo adjustment using ‘setTempoAdjustment’ on the playback context, the number of samples not longer matches the block size of my destination audio.
e.g. if I set the tempo adjustment to 80%, the number of samples is 80% of the block size.
Using setSpeedCompensation works (but can not stretch the time enough for my needs) I assume because it’s resampling.
How can i adjust the tempo? I don’t want to maintain the original pitch, I want it to sound slowed down/sped up.
Also for those interested, this is the repository for my application:
This time stretch issue is the last thing I need to fix before I can start testing it with some beta users I have. If anyone else likes Chopped & Screwed and wants a copy of the binaries when theyr’e released then contact me or write in this thread
Sorry, I haven’t forgotten this, I’m just a bit swamped with work and the C++Online conference coming up this week.
Both of these settings aren’t meant for large adjustments, they’re just for chasing a MIDI clock so only speed up/down a few samples per block to keep things in time.
Are you doing this dynamically or just setting it once and pressing play? Is there any reason you’re not directly setting the clip properties to do this?
No problem, sorry if you feel pressured, i’m just actively working on this and sharing my progress on the issue publicly.
The speed is controlled dynamically. It can be set at any time during playback, and there is a Vinyl Brake effect that modifies the playback speed as you apply the effect.
I am not directly setting the clip properties for the following reasons:
My application is basically 2 tracks with the same clip, 1 beat apart.
The distance is maintained between the clips automatically if i adjust the tempo of the transport rather than the clips.
The playhead is automatically synced to the clip in the thumbnail if the tempo is adjusted.
I will eventually be adding automation recording for the effects. All the timing issues will be managed automatically if the master tempo is adjusted vs. clip is stretched.