BASS_ATTRIB_MUSIC_BPM attribute

The BPM of a MOD music.

BASS_ChannelSetAttribute(
    HMUSIC handle,
    BASS_ATTRIB_MUSIC_BPM,
    float bpm
);

Parameters

handleThe MOD music handle.
bpmThe BPM... 1 (min) to 255 (max). This attribute is an integer (floating-point values will be truncated).

Remarks

This attribute is a direct mapping of the MOD music's BPM, so the value can subsequently be changed by effects in the file itself.

Note that by changing this attribute, you are changing the playback length.

During playback, the effect of changes to this attribute are not heard instantaneously, due to buffering. This latency can be reduced via the BASS_ATTRIB_BUFFER attribute.

See also

BASS_ChannelGetAttribute, BASS_ChannelSetAttribute, BASS_ChannelSlideAttribute, BASS_ATTRIB_MUSIC_SPEED