MuseScore  3.4
Music composition and notation
tempomap.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2002-2011 Werner Schweer
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __TEMPOMAP_H__
14 #define __TEMPOMAP_H__
15 
16 #include <map>
17 
18 //---------------------------------------------------------
19 // TempoMap
20 //---------------------------------------------------------
21 
22 class TempoMap : public std::map<int, double> {
23 
24  public:
25  double tempo(int tick) const;
26  int time2tick(double, double, int) const;
27  };
28 
29 #endif
Definition: tempomap.h:22
int time2tick(double, double, int) const
Definition: tempomap.cpp:39
double tempo(int tick) const
Definition: tempomap.cpp:19