Line data Source code
1 : #ifndef MU_IMPORTEXPORT_GPVOICE_H
2 : #define MU_IMPORTEXPORT_GPVOICE_H
3 :
4 : #include <vector>
5 :
6 : #include "gpbeat.h"
7 :
8 : namespace mu::iex::guitarpro {
9 : class GPVoice
10 : {
11 : public:
12 :
13 2133 : void addGPBeat(const std::shared_ptr<GPBeat>& b) { _beats.push_back(b); }
14 :
15 724 : void setId(int id) { _id = id; }
16 724 : void setPosition(int pos) { _pos = pos; }
17 1398 : int position() const { return _pos; }
18 :
19 724 : const std::vector<std::shared_ptr<GPBeat> >& beats() const { return _beats; }
20 :
21 : private:
22 :
23 : int _id = -1; // imported id
24 : int _pos = 0; // for defining correct track number
25 : std::vector<std::shared_ptr<GPBeat> > _beats;
26 : };
27 : } // namespace mu::iex::guitarpro
28 :
29 : #endif // MU_IMPORTEXPORT_GPVOICE_H
|