1 /*
2     TiMidity++ -- MIDI to WAVE converter and player
3     Copyright (C) 1999-2002 Masanao Izumo <mo@goice.co.jp>
4     Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>
5 
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10 
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.
15 
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
19 
20     mfnode.h
21 
22 	Macintosh interface for TiMidity
23 	by T.Nogami	<t-nogami@happy.email.ne.jp>
24 */
25 
26 #ifdef HAVE_CONFIG_H
27 #include "config.h"
28 #endif /* HAVE_CONFIG_H */
29 #ifndef MFNODE_H
30 #define MFNODE_H
31 
32 #include "timidity.h"
33 #include "instrum.h"
34 #include "playmidi.h"
35 #include "readmidi.h"
36 
37 #define MIDI_TITLE
38 
39 /* list_mode */
40 typedef struct _MFnode
41 {
42     char *file;
43 #ifdef MIDI_TITLE
44     char *title;
45 #endif /* MIDI_TITLE */
46     struct midi_file_info *infop;
47     struct _MFnode *next;
48 } MFnode;
49 
50 typedef struct
51 {
52     int prog;
53     int disp_cnt;
54     double last_note_on;
55     char *comm;
56 }Instr_comment;
57 
58 // externs
59 
60 #if ENTITY
61  #define EXTERN /*entitiy*/
62 #else
63  #define EXTERN  extern
64 #endif
65 EXTERN Instr_comment instr_comment[];
66 EXTERN char *comment_indicator_buffer
67  #if ENTITY
68   = NULL
69  #endif
70  ;
71 
72 MFnode	*make_new_MFnode_entry(char *file);
73 void	indicator_set_prog(int ch, int val, char *comm);
74 void	reset_indicator(void);
75 char	*channel_instrum_name(int ch);
76 
77 #endif // MFNODE_H
78