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/song.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 #ifndef _JDKMIDI_SONG_H
00025 #define _JDKMIDI_SONG_H
00026 
00027 #include "jdkmidi/multitrack.h"
00028 #include "jdkmidi/sequencer.h"
00029 #include "jdkmidi/filereadmultitrack.h"
00030 
00031 namespace jdkmidi
00032 {  
00033   class MIDISong
00034     {
00035     public:
00036       MIDISong( int max_tracks );
00037       virtual ~MIDISong();
00038       
00039       bool Load( const char *fname );
00040       
00041 //  bool Save( const char *fname ); 
00042       
00043       MIDIMultiTrack *GetMultiTrack()
00044         {
00045           return multitrack;
00046         }
00047       
00048       const MIDIMultiTrack *GetMultiTrack() const
00049         {
00050           return multitrack;
00051         }
00052       
00053       MIDISequencer *GetSeq()
00054         {
00055           return sequencer;
00056         }
00057       
00058       const MIDISequencer *GetSeq() const
00059         {
00060           return sequencer;
00061         }
00062       
00063     protected:
00064       
00065       MIDIMultiTrack track; 
00066       MIDISequencer seq;
00067       
00068       char title;
00069     };
00070 }
00071 
00072 #endif