The new GMS 2.x version now works with HTML5 - Enjoy
https://marketplace.yoyogames.com/assets/4951/mod-tracker
HTML5 Demo: http://www.javalemmings.com/public/modplayer/index.html
https://marketplace.yoyogames.com/assets/4951/mod-tracker
HTML5 Demo: http://www.javalemmings.com/public/modplayer/index.html
Code:
Current effects supported: 0,1,2,9,$a,$c,$d,$f,$ea,$eb
0 = arpeggio
1 = pitch bend UP
2 = pitch bend DOWN
9 = Set sample offset
A = Channel volume slide
C = Set channel volume
D = Pattern break
F = Set MOD speed (0 to $1f)
EA = Fine volume UP
EB = Fine volume DOWN
Functions
------------
handle = mod_load_mod( filename ) Load mod file and make it ready to play
mod_play(handle) Play the mod file
mod_play_looping(handle) Loop the mod file
mod_stop(handle) Stop the mod file from playing
mod_resume(handle) Resume the playback of the mod file
mod_restart(handle) Restart the playback from the start of the tune
mod_set_volume(handle, volume) Set the global volume of the mod file (0 to 1)
mod_get_volume(handle, volume) Get the global volume of the mod file (0 to 1)
mod_set_channel_mute(handle,channel,true_false) Set the channel to mute
mod_get_channel_mute(handle,channel) Get the channel mute state
mod_set_channel_volume(handle,channel,volume) Set the channel's volume (0 to 1)
mod_get_channel_volume(handle,channel) Get the channel's volume (0 to 1)
mod_toggle_channel_mute(handle,channel) Toggle the channels's mute state
mod_save_recording(handle,filename) If enabled, save the current recording
mod_set_speed(handle,speed) Set the MOD playback speed, from 0 to 31 - overridden by effect $f
mod_get_speed(handle) Get the MOD playback speed, from 0 to 31
mod_free(handle) Free up the current MOD, stopping it if required
Attachments
-
174.3 KB Views: 48
Last edited: