Not able to change any update value for BASS_ATTRIB_MUSIC_SPEED

Started by dnrao,

dnrao

Hi,

We need to play the mp3 file  according to the user play speed setting.
When we set the BASS_ATTRIB_MUSIC_SPEED value it is not effecting any changes.
But when we change BASS_ATTRIB_MUSIC_SPEED to BASS_ATTRIB_FREQ it is changeing but the voice is changeing according to the value means in low speed it is coming lady voice medium normal voice etc.

Please give some sample and difference between these 2 properties.

Ian @ un4seen

Please note that the BASS_ATTRIB_MUSIC_SPEED attribute only applies to HMUSIC channels (MOD/tracker music), so it can't be used with MP3 streams (you will get a BASS_ERROR_ILLTYPE error if you try).

It sounds like you may want to adjust the playback speed without affecting the pitch? If so, you can use the BASS_FX add-on and its tempo processing feature to do that.

dnrao

Hi,

Thank you for the reply.
As you said we required to manage the speed without effecting the Pitch, and I have tried with that according to the BassFX with the help of sample application SimpleFX project.

But for me the pitch is also changeing. Can you please send the sample how to achieve this.

Ian @ un4seen

You would use the BASS_ATTRIB_TEMPO attribute to adjust the speed without affecting the pitch. It could look something like this...

decoder=BASS_StreamCreateFile(FALSE, filename, 0, 0, BASS_STREAM_DECODE); // create a "decoding channel" for a file
tempostream=BASS_FX_TempoCreate(decoder, BASS_FX_FREESOURCE); // create a tempo stream from it
BASS_ChannelSetAttribute(tempostream, BASS_ATTRIB_TEMPO, 10); // increase the tempo/speed by 10%
BASS_ChannelPlay(tempostream, FALSE); // start playing

Please see the BASS_FX documentation for details on the tempo stuff.