MOD speed tweaking

Is there any reasonable way to tweak the tempo of a song in SDL_mixer?

I’d like to take whatever MOD I happen to be playing, and just double its
tempo (I’m personally not too concerned about pitch being affected or not,
or anything else; ie, it can sound silly; that’s fine :slight_smile: )

It appears the current SDL_Mixer API has no controls for this… just
play, pause, stop, rewind, and fade-in/out.

Any ideas?

-bill!

It appears the current SDL_Mixer API has no controls for this… just
play, pause, stop, rewind, and fade-in/out.

Use the effects API to halve the sample rate, or something equivalent.

–ryan.

It appears the current SDL_Mixer API has no controls for this… just
play, pause, stop, rewind, and fade-in/out.

Use the effects API to halve the sample rate, or something equivalent.

The effects API is in SDL_mixer CVS, and will be in the soon to be released
SDL_mixer version 1.2.1

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Is there any reasonable way to tweak the tempo of a song in SDL_mixer?

I’d like to take whatever MOD I happen to be playing, and just double its
tempo (I’m personally not too concerned about pitch being affected or not,
or anything else; ie, it can sound silly; that’s fine :slight_smile: )

It appears the current SDL_Mixer API has no controls for this… just
play, pause, stop, rewind, and fade-in/out.

Any ideas?

-bill!

You have to keep in mind that most MOD composers use sampled loops of several seconds for eg. drums, bass or whatever… So in order for the mod not to sound wrong (rather than silly), you’d have to halve the samplerate or double the playback rate of the samples, + double the BPM of the mod.

Regards
Anders