MuseScore  3.4
Music composition and notation
tupletmap.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 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 __TUPLETMAP_H__
14 #define __TUPLETMAP_H__
15 
16 namespace Ms {
17 
18 class Tuplet;
19 
20 //---------------------------------------------------------
21 // Tuplet2
22 //---------------------------------------------------------
23 
24 struct Tuplet2 {
27  Tuplet2(Tuplet* _o, Tuplet* _n) : o(_o), n(_n) {}
28  };
29 
30 //---------------------------------------------------------
31 // TupletMap
32 //---------------------------------------------------------
33 
34 class TupletMap {
35  QList<Tuplet2> map;
36 
37  public:
38  TupletMap() {}
39  Tuplet* findNew(Tuplet* o);
40  void add(Tuplet* _o, Tuplet* _n) { map.append(Tuplet2(_o, _n)); }
41  };
42 
43 
44 } // namespace Ms
45 #endif
46 
Definition: tupletmap.h:24
TupletMap()
Definition: tupletmap.h:38
QList< Tuplet2 > map
Definition: tupletmap.h:35
Example of 1/8 triplet: _baseLen = 1/8 _actualNotes = 3 _normalNotes = 2 (3 notes played in the time ...
Definition: tuplet.h:37
Tuplet2(Tuplet *_o, Tuplet *_n)
Definition: tupletmap.h:27
Definition: tupletmap.h:34
Definition: aeolus.cpp:26
void add(Tuplet *_o, Tuplet *_n)
Definition: tupletmap.h:40
Tuplet * o
Definition: tupletmap.h:25
Tuplet * n
Definition: tupletmap.h:26