CLAM-Development  1.4.0
MIDITempo.hxx
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG)
3  * UNIVERSITAT POMPEU FABRA
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * MIDIFileReader C++ classes
20  * This code is part of the CLAM library, but also usable stand-alone.
21  * Maarten de Boer <mdeboer@iua.upf.es>
22  *
23  */
24 #ifndef __MIDITempo__
25 #define __MIDITempo__
26 
27 namespace MIDI
28 {
29 
30  class Song;
31  class Track;
32 
33  class Tempo
34  /* class to convert midi ticks to time in milliseconds,
35  ** according to the tempo information in a certain track
36  ** (typically the first) of a midi song
37  */
38  {
39  private:
40  class TempoImpl* mImpl; // hide implementation
41  public:
42  Tempo(Song* song = 0,Track* track = 0);
43 
44  ~Tempo();
45 
46  void Init(Song* song = 0,Track* track = 0);
47 
49  };
50 
51 }
52 
53 #endif
54