+1.3.18.jcn2
+===========
+
+* try at getting glyph property from mudela
+
1.3.18.jcn1
===========
MAJOR_VERSION=1
MINOR_VERSION=3
PATCH_LEVEL=18
-MY_PATCH_LEVEL=jcn1
+MY_PATCH_LEVEL=jcn2
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
--- /dev/null
+\header {
+ filename = "pa.ly";
+ title = "Wachet auf, ruft uns die Stimme";
+ opus = "BWV";
+ composer = "Johann Sebastian Bach 1685-1750 ";
+ enteredby = "JCN";
+ copyright = "public domain";
+}
+
+%% ?
+#(define Span_bar_engraver-visibility #f)
+#(define Staff_group_bar_engraver-visibility #f)
+#(define Span_score_bar_engraver-visability #f)
+
+
+% these should be two separate scores...
+\score{
+ \context Score <
+ \context StaffGroup<
+ \context PianoStaff <
+ \context Staff = treble {
+ \property Score.midiInstrument = "church organ"
+ <
+ \context Voice=i \notes\relative c { c c c c }
+ >
+ }
+ \context Staff = bass \notes\relative c { c c c c }
+ >
+ \context Staff = pedal \notes\relative c { c c c c }
+ >
+ >
+\paper {
+ textheight = 280.0 \mm;
+%{
+ \translator {
+ \OrchestralScoreContext
+ minVerticalAlign = 4.0*\staffheight;
+ maxVerticalAlign = 4.0*\staffheight;
+ }
+%}
+ \translator {
+ \StaffGroupContext
+ minVerticalAlign = 4.0*\staffheight;
+ maxVerticalAlign = 4.0*\staffheight;
+ glyph = "brace";
+ }
+ \translator {
+ \PianoStaffContext
+ minVerticalAlign = 2.5*\staffheight;
+ maxVerticalAlign = 2.5*\staffheight;
+ }
+ }
+ \midi {
+ \tempo 4 = 69;
+ }
+}
void
Bar::do_pre_processing ()
{
+ SCM def = remove_elt_property ("default-glyph");
SCM g = get_elt_property ("glyph");
+ if (!gh_string_p (g) && gh_string_p (def))
+ {
+ set_elt_property ("glyph", def);
+ g = get_elt_property ("glyph");
+ }
+
SCM breakdir = gh_int2scm (break_status_dir ());
if (gh_string_p (g))
--hwn
*/
{
- spanbar_p_ = get_span_bar_p();
+ spanbar_p_ = get_span_bar_p ();
spanbar_p_->set_parent (bar_l_arr_[0], Y_AXIS);
String visnam = String(name()) + "-visibility";
}
announce_element (Score_element_info (spanbar_p_,0));
+
+#if 0
+
+ // urg, elt-properties are not set until pre_processing (property-engraver)
+ if (!gh_string_p (spanbar_p_->get_elt_property ("glyph"))
+ && !gh_string_p (spanbar_p_->get_elt_property ("default-glyph")))
+ spanbar_p_-> set_elt_property ("default-glyph",
+ bar_l_arr_[0]->get_elt_property ("glyph"));
+#else
+
+ if (!gh_string_p (spanbar_p_->get_elt_property ("glyph"))
+ && gh_string_p (spanbar_p_->get_elt_property ("default-glyph")))
+ spanbar_p_-> set_elt_property ("glyph", spanbar_p_->get_elt_property ("default-glyph"));
+
if (!gh_string_p (spanbar_p_->get_elt_property ("glyph")))
spanbar_p_-> set_elt_property ("glyph",
bar_l_arr_[0]->get_elt_property ("glyph"));
+
+#endif
}
}
}
public:
VIRTUAL_COPY_CONS(Score_element);
Bar();
+
protected:
virtual void do_pre_processing ();
virtual Molecule* do_brew_molecule_p () const;
Span_score_bar_engraver::get_span_bar_p () const
{
Span_bar*s = new Span_bar;
- s->set_elt_property ("glyph", gh_str02scm ("scorebar"));
+ s->set_elt_property ("default-glyph", gh_str02scm ("scorebar"));
s->set_elt_property ("break-aligned",SCM_BOOL_T);
return s;
}
-
Span_score_bar_engraver::Span_score_bar_engraver ()
{
use_priority_b_ = true;
{
Span_bar *s= new Span_bar;
s->set_empty (X_AXIS);
- s->set_elt_property ("glyph", gh_str02scm ("brace"));
+ s->set_elt_property ("default-glyph", gh_str02scm ("brace"));
return s;
}
{
Span_bar *s= new Span_bar;
s->set_empty (X_AXIS);
- s->set_elt_property ("glyph", gh_str02scm ("bracket"));
+ s->set_elt_property ("default-glyph", gh_str02scm ("bracket"));
return s;
}
(define generic-bar-properties
(cons "Staff_bar" (list
- (list 'barSize number? 'bar-size))
+ (list 'barSize number? 'bar-size)
+ ;(list 'glyph symbol? 'glyph)
+ )
)
)