#include <multitrack.h>
Public Member Functions | |
MIDIMultiTrack (int max_num_tracks_=64, bool deletable_=true) | |
virtual | ~MIDIMultiTrack () |
void | SetTrack (int trk, MIDITrack *t) |
MIDITrack * | GetTrack (int trk) |
const MIDITrack * | GetTrack (int trk) const |
int | GetNumTracks () |
void | Clear () |
int | GetClksPerBeat () |
void | SetClksPerBeat (int c) |
Protected Attributes | |
MIDITrack ** | tracks |
const int | num_tracks |
bool | deletable |
int | clks_per_beat |
|
Definition at line 54 of file jdkmidi_multitrack.cpp. References deletable, ENTER, num_tracks, and tracks.
00055 : 00056 num_tracks( num_tracks_ ), 00057 deletable( deletable_ ) 00058 { 00059 ENTER( "MIDIMultiTrack::MIDIMultiTrack()" ); 00060 00061 tracks = new MIDITrack * [num_tracks]; 00062 if( tracks ) 00063 { 00064 if( deletable ) 00065 { 00066 for( int i=0; i<num_tracks; ++i ) 00067 tracks[i]=new MIDITrack; 00068 } 00069 else 00070 { 00071 for( int i=0; i<num_tracks; ++i ) 00072 tracks[i]=0; 00073 } 00074 } 00075 } |
|
Definition at line 77 of file jdkmidi_multitrack.cpp. References deletable, ENTER, num_tracks, and tracks.
00078 { 00079 ENTER( "MIDIMultiTrack::~MIDIMultiTrack()" ); 00080 00081 if( deletable ) 00082 { 00083 for( int i=0; i<num_tracks; ++i ) 00084 delete tracks[i]; 00085 } 00086 00087 delete [] tracks; 00088 } |
|
Definition at line 90 of file jdkmidi_multitrack.cpp. References jdkmidi::MIDITrack::Clear(), num_tracks, and tracks.
00091 { 00092 for( int i=0; i<num_tracks; ++i ) 00093 { 00094 tracks[i]->Clear(); 00095 } 00096 } |
|
Definition at line 61 of file multitrack.h. References clks_per_beat.
00062 { 00063 return clks_per_beat; 00064 } |
|
Definition at line 56 of file multitrack.h. References num_tracks.
00056 { return num_tracks; } |
|
Definition at line 109 of file jdkmidi_multitrack.cpp. References tracks.
00110 { 00111 return tracks[trk]; 00112 } |
|
Definition at line 104 of file jdkmidi_multitrack.cpp. References tracks.
00105 { 00106 return tracks[trk]; 00107 } |
|
Definition at line 66 of file multitrack.h. References clks_per_beat.
00067 { 00068 clks_per_beat = c; 00069 } |
|
Definition at line 98 of file jdkmidi_multitrack.cpp. References tracks.
00099 { 00100 tracks[trk]=t; 00101 } |
|
Definition at line 77 of file multitrack.h. |
|
Definition at line 75 of file multitrack.h. |
|
Definition at line 74 of file multitrack.h. |
|
Definition at line 73 of file multitrack.h. |