MuseScore  3.4
Music composition and notation
importmidi_tie.h
Go to the documentation of this file.
1 #ifndef IMPORTMIDI_TIE_H
2 #define IMPORTMIDI_TIE_H
3 
4 #include <set>
5 
6 
7 namespace Ms {
8 
9 class Segment;
10 class ChordRest;
11 class Staff;
12 
13 namespace MidiTie {
14 
15 
16 bool isTiedFor(const Segment *seg, int strack, int voice);
17 bool isTiedBack(const Segment *seg, int strack, int voice);
18 
19 
21  {
22  public:
23  enum class State : char
24  {
26  };
27 
28  void addSeg(const Segment *seg, int strack);
29  State state() const { return state_; }
30 
31  private:
32  std::set<int> tiedVoices;
34  };
35 
36 
37 #ifdef QT_DEBUG
38 bool areTiesConsistent(const Staff *staff);
39 #endif
40 
41 
42 } // namespace MidiTie
43 } // namespace Ms
44 
45 
46 #endif // IMPORTMIDI_TIE_H
Global staff data not directly related to drawing.
Definition: staff.h:62
State state() const
Definition: importmidi_tie.h:29
bool isTiedBack(const Segment *seg, int strack, int voice)
Definition: importmidi_tie.cpp:51
State state_
Definition: importmidi_tie.h:33
std::set< int > tiedVoices
Definition: importmidi_tie.h:32
void addSeg(const Segment *seg, int strack)
Definition: importmidi_tie.cpp:57
Definition: segment.h:50
Definition: aeolus.cpp:26
State
Definition: importmidi_tie.h:23
bool isTiedFor(const Segment *seg, int strack, int voice)
Definition: importmidi_tie.cpp:46
Definition: importmidi_tie.h:20