\header{
-texidoc=3D"Real header: the slurBeginAttachment setting still lives in the
+texidoc="Real header: the slurBeginAttachment setting still lives in the
second example, breaking the cross staff broken slur.
";
}
-=09
+
\header{
-texidoc=3D"
+texidoc="
Slurs can be forced to always attach to note heads.
";
}
\score{
\notes \relative c''{
- \property Voice.VerticalDirection =3D #1
- \property Voice.slurBeginAttachment =3D #'head
- \property Voice.slurEndAttachment =3D #'head
+ \property Voice.VerticalDirection = #1
+ \property Voice.slurBeginAttachment = #'head
+ \property Voice.slurEndAttachment = #'head
g16()g()g()g()d'()d()d()d
}
\paper{
- indent =3D 0.0;
- linewidth =3D 60.0\mm;
+ indent = 0.0;
+ linewidth = 60.0\mm;
}
}
-=09
+
\header{
-texidoc=3D"
+texidoc="
The same goes for slurs. They behave decently when broken across
linebreak.
";
\score{
\context PianoStaff <
- \context Staff=3Done \notes\relative c'{
+ \context Staff=one \notes\relative c'{
%{
\stemUp \slurUp
- c4( c \translator Staff=3Dtwo c )c |
- \translator Staff=3Done
+ c4( c \translator Staff=two c )c |
+ \translator Staff=one
\stemUp \slurUp
- c4( c \translator Staff=3Dtwo c )c |
+ c4( c \translator Staff=two c )c |
\stemUp \slurUp
- c4( c \translator Staff=3Done c )c |
- \translator Staff=3Dtwo
+ c4( c \translator Staff=one c )c |
+ \translator Staff=two
\stemUp \slurUp
- c4( c \translator Staff=3Done c )c |
- \translator Staff=3Dtwo
+ c4( c \translator Staff=one c )c |
+ \translator Staff=two
\stemUp \slurUp
- c4( \translator Staff=3Done c c )c |
+ c4( \translator Staff=one c c )c |
%}
r2
- \translator Staff=3Dtwo
+ \translator Staff=two
\stemUp \slurUp
- c4( \translator Staff=3Done c
+ c4( \translator Staff=one c
\break
c )c
r2
%{
\stemDown \slurDown
- d4( \translator Staff=3Dtwo c c \translator Staff=3Done )d
- \translator Staff=3Dtwo
+ d4( \translator Staff=two c c \translator Staff=one )d
+ \translator Staff=two
\stemUp \slurUp
- c4( \translator Staff=3Done c c \translator Staff=3Dtwo )c
+ c4( \translator Staff=one c c \translator Staff=two )c
r1
%}
}
- \context Staff=3Dtwo \notes\relative c'{
+ \context Staff=two \notes\relative c'{
\clef bass;
s1 s1 %s1 s1 s1 s1 s1 s1 s1 s1
}
>
- \paper { indent =3D 0.; linewidth =3D 40.*\staffspace; }
+ \paper { indent = 0.; linewidth = 40.*\staffspace; }
}
-\version "1.3.110";=20
+\version "1.3.110";
--- /dev/null
+\header {
+texidoc="Various warnings
+";
+}
+
+linebreak = \penalty -1000;
+
+\score {
+ \notes {
+ \property Voice.Stem \set #'length = #"foo"
+ \property Voice.Stem \set #'longth = #2
+ \property Staff.clefStyle = #"foo"
+ \property Staff.clefStyle = #2
+ }
+}
{
e->set_grob_property (elt_prop_sym, val);
- SCM errport = scm_current_error_port ();
SCM meta = e->get_grob_property ("meta");
SCM name = scm_assoc (ly_symbol2scm ("name"), meta);
- /* warning () ? */
- scm_puts (_f ("%s is deprecated. Use\n \\property %s.%s \\override #'%s = #%s",
- ly_symbol2string (prop_sym).ch_C (),
- origin->type_str_.ch_C (),
- ly_scm2string (gh_cdr (name)).ch_C (),
- ly_symbol2string (elt_prop_sym).ch_C (),
- ly_scm2string (ly_write2scm (val)).ch_C ()).ch_C (),
- errport);
- scm_puts ("\n", errport);
+ warning (_f ("%s is deprecated. Use\n \\property %s.%s \\override #'%s = #%s",
+ ly_symbol2string (prop_sym).ch_C (),
+ origin->type_str_.ch_C (),
+ ly_scm2string (gh_cdr (name)).ch_C (),
+ ly_symbol2string (elt_prop_sym).ch_C (),
+ ly_scm2string (ly_write2scm (val)).ch_C ()));
}
else
SCM errport = scm_current_error_port ();
SCM typefunc = scm_eval2 (ly_symbol2scm ("type-name"), SCM_EOL);
SCM type_name = gh_call1 (typefunc, type_p);
+#if 0
warning (_f ("Wrong type for property: %s, type: %s, value found: %s, type: %s",
ly_symbol2string (prop_sym).ch_C (),
- ly_symbol2string (type_name).ch_C (),
+ ly_scm2string (type_name).ch_C (),
ly_scm2string (ly_write2scm (val)).ch_C (),
ly_scm2string (ly_type (val)).ch_C ()));
+#endif
scm_puts ("\n", errport);
}
}