Externals
BassMusic_Play
Triggers an event to start a new music theme. If the player has turned off the music in the menu, the theme will not be played.
Parameters
var string id
Symbol name of the music theme (C_MUSICTHEME) to play
BassMusic_SetFullScriptControl
Set the "Full Script Control"
Parameters
var int enabled
Boolean value if full script control should be enabled.
BassMusic_OnEndEvent
Set a callback function to be called when the music ends.
Parameters
var func callback
Callback function to be called when the music ends with signature:
func void callback();
BassMusic_OnTransitionEvent
Set a callback function to be called when the music is close to the end and transition starts.
Parameters
var func callback
Callback function to be called when the music is close to the end and transition starts:
func void callback(var float time_left_ms);
BassMusic_OnChangeEvent
Set a callback function to be called when the music changes.
Parameters
var func callback
Callback function to be called when the music changes with signature:
func void callback();
BassMusic_Opt_TransitionTime
Set [Bass].TransitionTime ini setting.
Parameters
var float time
The transition time in miliseconds
BassMusic_Opt_ForceDisableReverb
Set [Bass].ForceDisableReverb ini setting.
Parameters
var int enabled
If true, the reverb effect is globally disabled
BassMusic_Opt_ForceFadeTransition
Set [Bass].ForceFadeTransition ini setting.
Parameters
var int enabled
If true, the fade transition is globally enabled
BassMusic_AddMidiFile
Add a MIDI File to a theme.
Parameters
var string theme
Music theme namevar string filter
Transition filtervar string midiFilename
Filename of a MIDI file
BassMusic_AddTransitionTimePoint
Add a time point for Timing Transition.
Parameters
var string theme
Music theme namevar string filter
Transition filtervar float start
Transition start in secondsvar float duration
Transition duration in secondsvar int effect
Effect ID (NONE = 0, CROSSFADE = 0)var float nextStart
Transition start in seconds (next song)var float nextDuration
Transition duration in seconds (next song)var int nextEffect
Effect ID (NONE = 0, CROSSFADE = 0)
BassMusic_AddJingle
Add a Jingle to a theme.
Parameters
var string theme
Music theme namevar string filter
Transition filtervar string jingle
Filename of a jingle audio filevar float delay
Delay in seconds before the jingle starts