3 Ann Hell Ex Machina - Music Software
4 Copyright (C) 2003/2005 Angel Ortega <angel@triptico.com>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 http://www.triptico.com
32 SONG_EV_SS_CHANNEL_MAP
,
40 SONG_EV_SS_EFF_ALLPASS
,
41 SONG_EV_SS_EFF_FLANGER
,
42 SONG_EV_SS_EFF_WOBBLE
,
43 SONG_EV_SS_EFF_SQWOBBLE
,
45 SONG_EV_SS_EFF_REVERB
,
48 SONG_EV_SS_NOTE_ON_BY_TIME
,
57 struct song_ev_generic
59 song_ev_type type
; /* event type */
60 double time
; /* event time (1: whole note) */
61 int trk_id
; /* track id */
66 song_ev_type type
; /* SONG_EV_NOTE */
69 int note
; /* MIDI-like note */
70 double len
; /* note length (1: whole note) */
71 double vol
; /* note volume (1: full volume) */
76 song_ev_type type
; /* SONG_EV_TEMPO */
78 int trk_id
; /* always -1 */
79 double tempo
; /* tempo in bpm */
84 song_ev_type type
; /* SONG_EV_METER */
86 int trk_id
; /* always -1 */
87 int num
; /* meter numerator */
88 int den
; /* meter denominator */
91 struct song_ev_ss_note_by_time
93 song_ev_type type
; /* SONG_EV_SS_NOTE_BY_TIME */
96 int note
; /* MIDI-like note (to find the wave) */
97 double len
; /* note length (1: whole note) */
98 double vol
; /* note volume (1: full volume) */
101 struct song_ev_ss_sustain
103 song_ev_type type
; /* SONG_EV_SS_SUSTAIN */
106 double sustain
; /* sustain time (in msecs) */
109 struct song_ev_ss_channel_map
111 song_ev_type type
; /* SONG_EV_SS_CHANNEL_MAP */
114 float vol
[CHANNELS
]; /* volume for each channel */
117 struct song_ev_ss_wav
119 song_ev_type type
; /* SONG_EV_SS_WAV */
122 char * file
; /* path to .wav file */
123 int base
; /* MIDI-like base note */
124 int min
; /* MIDI-like minimum note */
125 int max
; /* MIDI-like maximum note */
126 double loop_start
; /* start of loop */
127 double loop_end
; /* end of loop */
130 struct song_ev_ss_pat
132 song_ev_type type
; /* SONG_EV_SS_PAT */
135 char * file
; /* path to .pat file */
138 struct song_ev_ss_eff
140 song_ev_type type
; /* effect type */
143 int channel
; /* channel */
144 double size
; /* size of effect */
145 float gain
; /* gain */
146 double depth
; /* depth */
147 double freq
; /* freq */
148 double phase
; /* phase */
149 float initial
; /* initial vol */
150 float final
; /* final vol */
156 struct song_ev_generic generic
;
158 struct song_ev_tempo tempo
;
159 struct song_ev_meter meter
;
161 struct song_ev_note note
;
163 struct song_ev_ss_note_by_time ss_note_by_time
;
164 struct song_ev_ss_sustain ss_sustain
;
165 struct song_ev_ss_channel_map ss_channel_map
;
167 struct song_ev_ss_wav ss_wav
;
168 struct song_ev_ss_pat ss_pat
;
170 struct song_ev_ss_eff ss_eff
;
173 extern union song_ev
* _song
;
174 extern int _n_song_ev
;
176 void song_clear(void);
177 void add_song_ev(union song_ev
* ev
);
178 void song_sort(void);