maiacore 1.10.1
Music analisys library
barline.h
1#pragma once
2
3#include <string>
4
12class Barline {
13 private:
14 std::string _barStyle;
15 std::string _direction;
16 std::string _location;
17
18 public:
23
27 void clean();
28
33 std::string getBarStyle() const;
34
39 void setBarStyle(const std::string& barStyle);
40
45 std::string getDirection() const;
46
51 void setDirection(const std::string& direction);
52
57 std::string getLocation() const;
58
63 void setLocation(const std::string& location);
64
69
74
80 std::string toXML(const int identSize = 2) const;
81};
Represents a barline in a musical score, including style, direction, and location.
Definition: barline.h:12
Barline()
Constructs a new Barline object with default values.
std::string getDirection() const
Returns the repeat direction as a string.
void clean()
Clears all barline properties, resetting to default state.
std::string getBarStyle() const
Returns the barline style as a string.
void setRepeatStart()
Sets the barline as a repeat start (heavy-light, forward).
void setLocation(const std::string &location)
Sets the barline location.
std::string toXML(const int identSize=2) const
Serializes the barline to MusicXML format.
std::string getLocation() const
Returns the barline location as a string.
void setBarStyle(const std::string &barStyle)
Sets the barline style.
void setRepeatEnd()
Sets the barline as a repeat end (light-heavy, backward).
void setDirection(const std::string &direction)
Sets the repeat direction.