XgmSetTempo

Last Modified: 1/3/2021

Changes the tempo of your music tracks.

Arguments

NameTypeRequiredDescription
Tempo Integer Yes The tempo you wish to set your music to.

Example

Syntax: XgmSetTempo <Tempo>
    XgmTrack MyMusicTrack
    XgmStartMusic
    
    On vInt GoSub Vbl
    Enable vInt
    
    While 1
        j = JoyPad()
        If j.0 Then
            XgmSetTempo 100
        End If
        If j.1 Then
            XgmSetTempo 30
        End If
        WaitPadUp 0
        Sleep 1
    Wend
    
Vbl:
    XgmVintProc
    Return

Remarks

Tempo will be set to 60 on NTSC consoles and 50 on PAL consoles by default.

See Also

XgmPlayPcm, XgmResumeMusic, XgmSetBusProtection, XgmSetPcm, XgmStartMusic, XgmStopMusic, XgmStopPcm, XgmTrack, XgmVintProc