]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.64
authorfred <fred>
Sun, 24 Mar 2002 19:43:31 +0000 (19:43 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:43:31 +0000 (19:43 +0000)
lily/lookup.cc

index 08591cfe7cd61c811ef0327944029e18eca14f2b..12684d539d037dc8af5d518b65894d44303ef551 100644 (file)
@@ -232,3 +232,26 @@ Lookup::stem(Real y1,Real y2) const
     s.tex = substitute_args(src,a);
     return s;
 }
+
+Symbol
+Lookup::vbrace(Real &y) const
+{
+    if (y < 2* 20 PT) {
+       warning ( "piano brace too small (" + print_dimen(y)+ ")");
+       y = 2*20 PT;
+    }
+    if (y > 67 * 2 PT) {
+       warning ( "piano brace too big (" + print_dimen(y)+ ")");       
+       y = 67 *2 PT;
+    }
+    
+    int idx = (y/2.0 - 20 ) + 148;
+    
+    Symbol s = (*symtables_)("param")->lookup("brace");
+    
+    Array<String> a;
+    a.push(idx);
+    s.tex = substitute_args(s.tex,a);
+    s.dim.y = Interval(0,y);
+    return s;
+}