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

src/jdkmidi_edittrack.cpp

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 
00035 #include "jdkmidi/world.h"
00036 
00037 #include "jdkmidi/edittrack.h"
00038 
00039 #ifndef DEBUG_MDETRACK
00040 # define DEBUG_MDETRACK 0
00041 #endif
00042 
00043 #if DEBUG_MDETRACK
00044 # undef DBG
00045 # define DBG(a) a
00046 #endif
00047 
00048 namespace jdkmidi
00049 {
00050   
00051   
00052   MIDIEditTrackEventMatcher::MIDIEditTrackEventMatcher()
00053   {
00054   }
00055   
00056   MIDIEditTrackEventMatcher::~MIDIEditTrackEventMatcher()
00057   {
00058   }
00059   
00060   
00061   MIDIEditTrack::MIDIEditTrack( MIDITrack *track_ )
00062     :
00063     track( track_ )
00064   {
00065     ENTER( "MIDIEditTrack::MIDIEditTrack()" );
00066     
00067   }
00068   
00069   MIDIEditTrack::~MIDIEditTrack()
00070   {
00071     ENTER( "MIDIEditTrack::~MIDIEditTrack()" );
00072   }
00073   
00074   
00075   void  MIDIEditTrack::Process(
00076     MIDIClockTime start_time,
00077     MIDIClockTime end_time,
00078     MIDIProcessor *process,
00079     MIDIEditTrackEventMatcher *match
00080     )
00081   {
00082     // TODO: Process
00083   }
00084   
00085   
00086   
00087 //
00088 // Truncate erases all events after a certain time. then
00089 // adds appropriate note off's
00090 //
00091   void  MIDIEditTrack::Truncate( MIDIClockTime start_time )
00092   {
00093     ENTER( "TO DO: MIDIEditTrack::Truncate()" );
00094     
00095     // TO DO:
00096   }
00097   
00098   
00099   
00100   
00101   
00102 //
00103 // this merge function merges two other tracks into this track.
00104 // this is the faster form of merge
00105 //
00106   void  MIDIEditTrack::Merge(
00107     MIDITrack *trk1,
00108     MIDITrack *trk2,
00109     MIDIEditTrackEventMatcher *match1,
00110     MIDIEditTrackEventMatcher *match2
00111     )
00112   {
00113     ENTER( "TO DO: MIDIEditTrack::Merge()" );
00114     
00115     // TO DO:
00116   }
00117   
00118   
00119   
00120   
00121   
00122   
00123 //
00124 // this erase function will erase all events from start to end time
00125 // and can be jagged or not.
00126 //
00127   void  MIDIEditTrack::Erase(
00128     MIDIClockTime start,
00129     MIDIClockTime end,
00130     bool jagged,
00131     MIDIEditTrackEventMatcher *match
00132     )
00133   {
00134     ENTER( "TO DO: MIDIEditTrack::Erase()" );
00135     
00136     // TO DO:
00137   }
00138   
00139   
00140   
00141   
00142   
00143 //
00144 // this delete function will delete all events like erase and then
00145 // shift the events over
00146 //
00147   void  MIDIEditTrack::Delete(
00148     MIDIClockTime start,
00149     MIDIClockTime end,
00150     bool jagged,
00151     MIDIEditTrackEventMatcher *match
00152     )
00153   {
00154     ENTER( "TO DO: MIDIEditTrack::Delete()" );
00155     
00156     // TO DO:
00157   }
00158   
00159   
00160   
00161   
00162 //
00163 // this insert function will insert 'length' clicks starting at
00164 // the events at start time.
00165 //
00166   void  MIDIEditTrack::Insert(
00167     MIDIClockTime start,
00168     MIDIClockTime length
00169     )
00170   {
00171     ENTER( "TO DO: MIDIEditTrack::Insert()" );
00172     
00173     // TO DO:
00174   }
00175   
00176   
00177   
00178   
00179 //
00180 // this shift function will shift all event times by an offset.
00181 //
00182   void  MIDIEditTrack::Shift(
00183     signed long offset,
00184     MIDIEditTrackEventMatcher *match
00185     )
00186   {
00187     ENTER( "TO DO: MIDIEditTrack::Shift()" );
00188     
00189     // TO DO:
00190   }
00191   
00192   
00193   
00194 }