1 |
function scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza
{
if (argument0 == undefined)
argument0 = mus_danza_attack_inst_01_yellow
if (argument1 == undefined)
argument1 = false
if (argument2 == undefined)
argument2 = false
if (argument3 == undefined)
argument3 = 2
if (argument4 == undefined)
argument4 = [520, 517, 514]
can_end_script = true
var sound = array_create(array_length(argument1), 0)
for (var i = 0; i < array_length(sound); i++)
sound[i] = argument4[argument2[i]]
scr_audio_stop_sound(1)
audio_play = argument0
audio_sound_gain(audio_play, 1, 0)
audio_sound_pitch(audio_play, 1)
audio_play_sound(audio_play, 20, false)
note_1second = 30
note_speed_denominator = 30 * argument3
note_speed = note_speed_numerator / note_speed_denominator
note_current = 0
note_time = 0
note_add = 0
note_total = array_length(argument1)
note_final = false
if (song_play_ct == 0)
timeline = timeline_add()
else if (!timeline_exists(timeline))
timeline = timeline_add()
else
timeline_clear(timeline)
note_time = argument1[0] * note_1second - note_speed_denominator
note_sarray[0] = sound[0]
note_parray[0] = argument2[0]
timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note)
for (i = 1; i < array_length(argument1); i++)
{
note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second
note_time += note_add
note_sarray[i] = sound[i]
note_parray[i] = argument2[i]
timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note)
}
timeline_index = timeline
timeline_loop = false
timeline_speed = 1
timeline_position = 0
timeline_running = true
song_play_ct += 1
} (argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_sme_yellow_rhythm_song_data_danza |
2 |
{ |
3 |
if (argument0 == undefined) |
4 |
argument0 = mus_danza_attack_inst_01_yellow |
5 |
if (argument1 == undefined) |
6 |
argument1 = false |
7 |
if (argument2 == undefined) |
8 |
argument2 = false |
9 |
if (argument3 == undefined) |
10 |
argument3 = 2 |
11 |
if (argument4 == undefined) |
12 |
argument4 = [520, 517, 514] |
13 |
can_end_script = true |
14 |
var sound = array_create(array_length(argument1), 0) |
15 |
for (var i = 0; i < array_length(sound); i++) |
16 |
sound[i] = argument4[argument2[i]] |
17 |
scr_audio_stop_soundscr_audio_stop_soundfunction scr_audio_stop_sound(argument0) //gml_Script_scr_audio_stop_sound
{
audio_array_val = 0
sound_y[audio_array_val] = mus_apprehension_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvbattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvopening_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvbattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_decibat_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_dalvopening_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_01_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_02_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_03_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_04_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_05_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_06_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_07_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_08_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_09_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_10_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_attack_finale_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_danza_battle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_floweynew_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_funsized_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_genobattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_mart_geno_wind_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_martletbattle_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_nobodycame_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_occupied_turf_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_prebattle1_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_prebattle2_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_battle_snowdin
audio_array_val += 1
sound_y[audio_array_val] = mus_trial_by_fury
audio_array_val += 1
sound_y[audio_array_val] = mus_prebattle3_yellow
audio_array_val += 1
sound_y[audio_array_val] = mus_heatwave_approaching
for (i = 0; i < array_length_1d(sound_y); i += 1)
{
var audio_gain = audio_sound_get_gain(sound_y[i])
if (audio_gain <= argument0)
audio_stop_sound(sound_y[i])
}
} (1) |
18 |
audio_play = argument0 |
19 |
audio_sound_gain(audio_play, 1, 0) |
20 |
audio_sound_pitch(audio_play, 1) |
21 |
audio_play_sound(audio_play, 20, false) |
22 |
note_1second = 30 |
23 |
note_speed_denominator = 30 * argument3 |
24 |
note_speed = note_speed_numerator / note_speed_denominator |
25 |
note_current = 0 |
26 |
note_time = 0 |
27 |
note_add = 0 |
28 |
note_total = array_length(argument1) |
29 |
note_final = false |
30 |
if (song_play_ct == 0) |
31 |
timeline = timeline_add() |
32 |
else if (!timeline_exists(timeline)) |
33 |
timeline = timeline_add() |
34 |
else |
35 |
timeline_clear(timeline) |
36 |
note_time = argument1[0] * note_1second - note_speed_denominator |
37 |
note_sarray[0] = sound[0] |
38 |
note_parray[0] = argument2[0] |
39 |
timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) |
40 |
for (i = 1; i < array_length(argument1); i++) |
41 |
{ |
42 |
note_add = (argument1[i] - (argument1[(i - 1)])) * note_1second |
43 |
note_time += note_add |
44 |
note_sarray[i] = sound[i] |
45 |
note_parray[i] = argument2[i] |
46 |
timeline_moment_add_script(timeline, note_time, gml_Script_scr_sme_yellow_rhythm_create_note) |
47 |
} |
48 |
timeline_index = timeline |
49 |
timeline_loop = false |
50 |
timeline_speed = 1 |
51 |
timeline_position = 0 |
52 |
timeline_running = true |
53 |
song_play_ct += 1 |
54 |
} |