summaryrefslogtreecommitdiff
path: root/src/linestaff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/linestaff.cc')
-rw-r--r--src/linestaff.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/linestaff.cc b/src/linestaff.cc
new file mode 100644
index 0000000000..a52954e6f4
--- /dev/null
+++ b/src/linestaff.cc
@@ -0,0 +1,20 @@
+#include "linestaff.hh"
+#include "symbol.hh"
+#include "lookup.hh"
+#include "dimen.hh"
+#include "paper.hh"
+#include "pscore.hh"
+
+Linestaff::Linestaff(int l, PScore *s)
+ : PStaff(s)
+{
+ nolines = l;
+ stafsym = s->paper_->lookup_->linestaff(l);
+}
+
+Symbol
+Linestaff::get_stafsym(Real width)const
+{
+ String w(print_dimen(width));
+ return stafsym->eval(w);
+}