jdkmidi class library documentation

Copyright © 2004 J.D. Koftinoff Software, Ltd.

Released under the GNU General Public License (GPL)




Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

include/jdkmidi/fileshow.h

Go to the documentation of this file.
00001 /*
00002  *  libjdkmidi-2004 C++ Class Library for MIDI
00003  *
00004  *  Copyright (C) 2004  J.D. Koftinoff Software, Ltd.
00005  *  www.jdkoftinoff.com
00006  *  jeffk@jdkoftinoff.com
00007  *
00008  *  *** RELEASED UNDER THE GNU GENERAL PUBLIC LICENSE (GPL) April 27, 2004 ***
00009  *
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public License
00021  *  along with this program; if not, write to the Free Software
00022  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023 */
00024 /*
00025 **  Copyright 1986 to 1998 By J.D. Koftinoff Software, Ltd.
00026 **
00027 **  All rights reserved.
00028 **
00029 **  No one may duplicate this source code in any form for any reason
00030 **  without the written permission given by J.D. Koftinoff Software, Ltd.
00031 **
00032 */
00033 
00034 #ifndef _JDKMIDI_FILESHOW_H
00035 #define _JDKMIDI_FILESHOW_H
00036 
00037 #include "jdkmidi/fileread.h"
00038 
00039 namespace jdkmidi
00040 {
00041   
00042   class  MIDIFileShow : public MIDIFileEvents 
00043     {
00044     public:
00045       MIDIFileShow( FILE *out_ );
00046       virtual ~MIDIFileShow();
00047       
00048     protected:
00049       
00050       virtual void  show_time( MIDIClockTime time );
00051       
00052       virtual void    mf_error( char * );
00053       
00054       virtual void    mf_starttrack( int trk );
00055       virtual void    mf_endtrack( int trk );
00056       virtual void    mf_header( int, int, int );
00057       
00058       
00059 //
00060 // The possible events in a MIDI Files
00061 //
00062       
00063       virtual void    mf_system_mode(const MIDITimedMessage &msg  );
00064       virtual void    mf_note_on(const MIDITimedMessage &msg  );
00065       virtual void    mf_note_off(const MIDITimedMessage &msg   );
00066       virtual void    mf_poly_after(const MIDITimedMessage &msg   );
00067       virtual void    mf_bender(const MIDITimedMessage &msg   );
00068       virtual void    mf_program(const MIDITimedMessage &msg  );
00069       virtual void    mf_chan_after(const MIDITimedMessage &msg   );
00070       virtual void    mf_control(const MIDITimedMessage &msg  );
00071       virtual void    mf_sysex(MIDIClockTime time, const MIDISystemExclusive &ex  );
00072       
00073       virtual void    mf_arbitrary(MIDIClockTime time, int len, unsigned char *data   );
00074       virtual void    mf_metamisc(MIDIClockTime time, int, int, unsigned char *   );
00075       virtual void    mf_seqnum(MIDIClockTime time, int       );
00076       virtual void    mf_smpte(MIDIClockTime time, int, int, int, int, int );
00077       virtual void    mf_timesig(MIDIClockTime time, int, int, int, int );
00078       virtual void    mf_tempo(MIDIClockTime time, unsigned long tempo      );
00079       virtual void    mf_keysig(MIDIClockTime time, int, int      );
00080       virtual void    mf_sqspecific(MIDIClockTime time, int, unsigned char *    );
00081       virtual void    mf_text(MIDIClockTime time, int, int, unsigned char * );
00082       virtual void    mf_eot( MIDIClockTime time );
00083       
00084       FILE *out;  
00085       int division;
00086       
00087     private:
00088       
00089     }; 
00090   
00091 }
00092 #endif
00093