From 8b54c241adc314437d739f4adc57f8a5ccce5cb7 Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Tue, 11 Dec 2007 09:37:44 +0100 Subject: [PATCH] Renamed add_song_ev() to copy_song_ev(). --- compiler.y | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/compiler.y b/compiler.y index 10566da..155d5b3 100644 --- a/compiler.y +++ b/compiler.y @@ -482,7 +482,7 @@ static void set_alteration(char * altstr) /* song events */ -static void add_song_ev(song_ev_type type, double time, struct song_ev *ev) +static void copy_song_ev(song_ev_type type, double time, struct song_ev *ev) { /* skip tracks if a solo is requested */ if (solo_track != -1 && ev->trk_id >= 0 && ev->trk_id != solo_track) @@ -527,7 +527,7 @@ static void add_note_event(int note) e.len = length * staccato; e.vol = volume(); - add_song_ev(SONG_EV_NOTE, cur_time, &e); + copy_song_ev(SONG_EV_NOTE, cur_time, &e); /* add arpeggiator repetitions */ for (n = 0; n < n_arps; n++) { @@ -535,7 +535,7 @@ static void add_note_event(int note) e.value = np + arps[n].transpose; e.vol = volume() * arps[n].volume; - add_song_ev(SONG_EV_NOTE, cur_time + arps[n].delay, &e); + copy_song_ev(SONG_EV_NOTE, cur_time + arps[n].delay, &e); } } @@ -546,7 +546,7 @@ static void add_back_event(void) e.trk_id = track; e.len = length; - add_song_ev(SONG_EV_BACK, cur_time, &e); + copy_song_ev(SONG_EV_BACK, cur_time, &e); } @@ -556,7 +556,7 @@ static void add_tempo_event(int trk_id, double tempo) e.trk_id = trk_id; e.amount = tempo; - add_song_ev(SONG_EV_TEMPO, cur_time, &e); + copy_song_ev(SONG_EV_TEMPO, cur_time, &e); } @@ -567,7 +567,7 @@ static void add_meter_event(int trk_id, int num, int den) e.trk_id = trk_id; e.min = num; e.max = den; - add_song_ev(SONG_EV_METER, cur_time, &e); + copy_song_ev(SONG_EV_METER, cur_time, &e); } static void add_measure_event(void) @@ -577,7 +577,7 @@ static void add_measure_event(void) e.trk_id = -1; e.value = yyline; - add_song_ev(SONG_EV_MEASURE, cur_time, &e); + copy_song_ev(SONG_EV_MEASURE, cur_time, &e); } @@ -588,7 +588,7 @@ static void add_ss_sustain_event(double sustain) e.trk_id = track; e.amount = sustain; - add_song_ev(SONG_EV_SS_SUSTAIN, cur_time, &e); + copy_song_ev(SONG_EV_SS_SUSTAIN, cur_time, &e); } @@ -599,7 +599,7 @@ static void add_ss_attack_event(double attack) e.trk_id = track; e.amount = attack; - add_song_ev(SONG_EV_SS_ATTACK, cur_time, &e); + copy_song_ev(SONG_EV_SS_ATTACK, cur_time, &e); } @@ -611,7 +611,7 @@ static void add_ss_vibrato_event(double depth, double freq) e.depth = depth; e.freq = freq; - add_song_ev(SONG_EV_SS_VIBRATO, cur_time, &e); + copy_song_ev(SONG_EV_SS_VIBRATO, cur_time, &e); } @@ -622,7 +622,7 @@ static void add_ss_portamento_event(double portamento) e.trk_id = track; e.amount = portamento; - add_song_ev(SONG_EV_SS_PORTAMENTO, cur_time, &e); + copy_song_ev(SONG_EV_SS_PORTAMENTO, cur_time, &e); } @@ -634,7 +634,7 @@ static void add_ss_channel_event(int channel, float vol) e.channel = channel; e.vol = vol; - add_song_ev(SONG_EV_SS_CHANNEL, cur_time, &e); + copy_song_ev(SONG_EV_SS_CHANNEL, cur_time, &e); } @@ -653,7 +653,7 @@ static void add_ss_wav_event(char * wav_file, int base, int min, int max, e.channel = first_channel; e.skip_channels = skip_channels; - add_song_ev(SONG_EV_SS_WAV, cur_time, &e); + copy_song_ev(SONG_EV_SS_WAV, cur_time, &e); } @@ -664,7 +664,7 @@ static void add_ss_pat_event(char * pat_file) e.trk_id = track; e.name = pat_file; - add_song_ev(SONG_EV_SS_PAT, cur_time, &e); + copy_song_ev(SONG_EV_SS_PAT, cur_time, &e); } @@ -683,7 +683,7 @@ static void add_ss_eff_event(int type, int channel, double size, float gain, e.initial = initial; e.final = final; - add_song_ev(type, cur_time, &e); + copy_song_ev(type, cur_time, &e); } @@ -696,7 +696,7 @@ static void add_ss_pitch_stretch(int note, double len, float vol) e.len = len; e.vol = vol; - add_song_ev(SONG_EV_SS_PITCH_STRETCH, cur_time, &e); + copy_song_ev(SONG_EV_SS_PITCH_STRETCH, cur_time, &e); } @@ -708,7 +708,7 @@ static void add_ss_print_wave_tempo(int note, double len) e.value = note; e.len = len; - add_song_ev(SONG_EV_SS_PRINT_WAVE_TEMPO, cur_time, &e); + copy_song_ev(SONG_EV_SS_PRINT_WAVE_TEMPO, cur_time, &e); } @@ -719,7 +719,7 @@ static void add_midi_channel_event(int channel) e.trk_id = track; e.channel = channel - 1; - add_song_ev(SONG_EV_MIDI_CHANNEL, cur_time, &e); + copy_song_ev(SONG_EV_MIDI_CHANNEL, cur_time, &e); } @@ -730,7 +730,7 @@ static void add_midi_program_event(int program) e.trk_id = track; e.value = program; - add_song_ev(SONG_EV_MIDI_PROGRAM, cur_time, &e); + copy_song_ev(SONG_EV_MIDI_PROGRAM, cur_time, &e); } @@ -742,7 +742,7 @@ static void add_song_info_event(char * author, char * name) e.author = author; e.name = name; - add_song_ev(SONG_EV_SONG_INFO, cur_time, &e); + copy_song_ev(SONG_EV_SONG_INFO, cur_time, &e); } -- 2.11.4.GIT