3 Ann Hell Ex Machina - Music Software
4 Copyright (C) 2003 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
24 #define EVENT_FPARAM CHANNELS
25 #define EVENT_IPARAM 4
29 #define EVENT_NOTE_OFF 0
30 #define EVENT_SUSTAIN 1
31 #define EVENT_CHANNEL_MAP 2
32 #define EVENT_NOTE_ON 10
33 #define EVENT_DEBUG 99
34 #define EVENT_END_SONG 100
38 int type
; /* event type */
39 int frame
; /* frame number (time) */
40 int instrk
; /* instrument or track reference */
41 float fparam
[EVENT_FPARAM
];
42 int iparam
[EVENT_IPARAM
];
45 extern struct event
* _events
;
49 void event_clear(void);
51 struct event
* event_note_on(int frame
, int instrk
, int note
, float vol
, int id
);
52 struct event
* event_note_off(int frame
, int instrk
, int id
);
54 struct event
* event_sustain(int frame
, int instrk
, int sustain
);
55 struct event
* event_channel_map(int frame
, int instrk
, int n_channels
,
58 struct event
* event_debug(int frame
);
60 void event_sort(void);