root/trunk/libjdkmidi/trunk/include/jdkmidi/fileshow.h

Revision 552, 3.2 kB (checked in by jeffk@…, 8 months ago)

formatting fixed

Line 
1/*
2 *  libjdkmidi-2004 C++ Class Library for MIDI
3 *
4 *  Copyright (C) 2004  J.D. Koftinoff Software, Ltd.
5 *  www.jdkoftinoff.com
6 *  jeffk@jdkoftinoff.com
7 *
8 *  *** RELEASED UNDER THE GNU GENERAL PUBLIC LICENSE (GPL) April 27, 2004 ***
9 *
10 *  This program is free software; you can redistribute it and/or modify
11 *  it under the terms of the GNU General Public License as published by
12 *  the Free Software Foundation; either version 2 of the License, or
13 *  (at your option) any later version.
14 *
15 *  This program is distributed in the hope that it will be useful,
16 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 *  GNU General Public License for more details.
19 *
20 *  You should have received a copy of the GNU General Public License
21 *  along with this program; if not, write to the Free Software
22 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23*/
24/*
25** Copyright 1986 to 1998 By J.D. Koftinoff Software, Ltd.
26**
27** All rights reserved.
28**
29** No one may duplicate this source code in any form for any reason
30** without the written permission given by J.D. Koftinoff Software, Ltd.
31**
32*/
33
34#ifndef JDKMIDI_FILESHOW_H
35#define JDKMIDI_FILESHOW_H
36
37#include "jdkmidi/fileread.h"
38
39namespace jdkmidi
40{
41
42  class  MIDIFileShow : public MIDIFileEvents
43  {
44    public:
45      MIDIFileShow ( FILE *out_ );
46      virtual ~MIDIFileShow();
47     
48    protected:
49   
50      virtual void show_time ( MIDIClockTime time );
51     
52      virtual void    mf_error ( const char * );
53     
54      virtual void    mf_starttrack ( int trk );
55      virtual void    mf_endtrack ( int trk );
56      virtual void    mf_header ( int, int, int );
57     
58     
59//
60// The possible events in a MIDI Files
61//
62
63      virtual void    mf_system_mode ( const MIDITimedMessage &msg  );
64      virtual void    mf_note_on ( const MIDITimedMessage &msg  );
65      virtual void    mf_note_off ( const MIDITimedMessage &msg  );
66      virtual void    mf_poly_after ( const MIDITimedMessage &msg  );
67      virtual void    mf_bender ( const MIDITimedMessage &msg  );
68      virtual void    mf_program ( const MIDITimedMessage &msg  );
69      virtual void    mf_chan_after ( const MIDITimedMessage &msg  );
70      virtual void    mf_control ( const MIDITimedMessage &msg  );
71      virtual void    mf_sysex ( MIDIClockTime time, const MIDISystemExclusive &ex );
72     
73      virtual void    mf_arbitrary ( MIDIClockTime time, int len, unsigned char *data  );
74      virtual void    mf_metamisc ( MIDIClockTime time, int, int, unsigned char *  );
75      virtual void    mf_seqnum ( MIDIClockTime time, int    );
76      virtual void    mf_smpte ( MIDIClockTime time, int, int, int, int, int );
77      virtual void    mf_timesig ( MIDIClockTime time, int, int, int, int );
78      virtual void    mf_tempo ( MIDIClockTime time, unsigned long tempo   );
79      virtual void    mf_keysig ( MIDIClockTime time, int, int    );
80      virtual void    mf_sqspecific ( MIDIClockTime time, int, unsigned char *   );
81      virtual void    mf_text ( MIDIClockTime time, int, int, unsigned char * );
82      virtual void    mf_eot ( MIDIClockTime time );
83     
84      FILE *out;
85      int division;
86     
87    private:
88   
89  };
90 
91}
92#endif
Note: See TracBrowser for help on using the browser.