annotate Plugins/Input/amidi-plug/i_midievent.h @ 1387:b0590e16329f trunk

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