1387
|
1 /*
|
|
2 *
|
|
3 * Author: Giacomo Lozito <james@develia.org>, (C) 2005-2006
|
|
4 *
|
|
5 * This program is free software; you can redistribute it and/or modify it
|
|
6 * under the terms of the GNU General Public License as published by the
|
|
7 * Free Software Foundation; either version 2 of the License, or (at your
|
|
8 * option) any later version.
|
|
9 *
|
|
10 * This program is distributed in the hope that it will be useful, but
|
|
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13 * General Public License for more details.
|
|
14 *
|
|
15 * You should have received a copy of the GNU General Public License along
|
|
16 * with this program; if not, write to the Free Software Foundation, Inc.,
|
|
17 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
18 *
|
|
19 */
|
|
20
|
|
21 #ifndef _I_MIDIEVENT_H
|
|
22 #define _I_MIDIEVENT_H 1
|
|
23
|
|
24 struct midievent_stru {
|
|
25 struct midievent_stru * next; /* linked list */
|
|
26 guchar type; /* SND_SEQ_EVENT_xxx */
|
|
27 guchar port; /* port index */
|
|
28 guint tick;
|
|
29 guint tick_real; /* tick with custom offset */
|
|
30 union {
|
|
31 guchar d[3]; /* channel and data bytes */
|
|
32 gint tempo;
|
|
33 guint length; /* length of sysex data */
|
|
34 } data;
|
|
35 guchar sysex[0];
|
|
36 };
|
|
37
|
|
38 typedef struct midievent_stru midievent_t;
|
|
39
|
|
40 #endif /* !_I_MIDIEVENT_H */
|