+pl25.jcn1
+ - volta-spanner: junked dot_p_; not so handy after all: kerning??
+ - feta-nummer: added : ,-.14s4s
+ - volta/tuplet thickness
+ - bf: scs-paper
+ - bf: ".|", and bar-thicknesses
pl 23.ms2
- property noteheadStyle
MAJOR_VERSION=1
MINOR_VERSION=1
PATCH_LEVEL=25
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=jcn1
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
void add_column (Bar*);
P<Text_def> number_p_;
- P<Text_def> dot_p_;
Link_array<Bar> column_arr_;
Link_array<Note_column> note_column_arr_;
bool last_b_;
}
else if (str == ".|")
{
- m.add_at_edge (X_AXIS, RIGHT, thick, kern);
- m.add_at_edge (X_AXIS, RIGHT, thin, 0);
+ m.add_at_edge (X_AXIS, RIGHT, thick, 0);
+ m.add_at_edge (X_AXIS, RIGHT, thin, kern);
}
else if (str == ":|")
{
}
else if (str == ":|:")
{
- m.add_at_edge (X_AXIS, LEFT, thick,kern/2);
+ m.add_at_edge (X_AXIS, LEFT, thick,thinkern);
m.add_at_edge (X_AXIS, LEFT, colon,kern);
m.add_at_edge (X_AXIS, RIGHT, thick,kern);
m.add_at_edge (X_AXIS, RIGHT, colon,kern);
Lookup::plet (Real dy , Real dx, Direction dir) const
{
Atom a;
+ SCM thick = ly_symbol ("tuplet_thick");
+ Real t = 0.1 PT;
+ if (paper_l_->scope_p_->elem_b (thick))
+ {
+ t = paper_l_->get_realvar (thick);
+ }
a.lambda_ = gh_list(ly_symbol ("tuplet"),
gh_double2scm (dx),
gh_double2scm (dy),
- gh_int2scm (dir), SCM_UNDEFINED);
+ gh_double2scm (t),
+ gh_int2scm (dir),
+ SCM_UNDEFINED);
return a;
}
Lookup::volta (Real w, bool last_b) const
{
Atom a;
+ SCM thick = ly_symbol ("volta_thick");
+ Real t = 0.1 PT;
+ if (paper_l_->scope_p_->elem_b (thick))
+ {
+ t = paper_l_->get_realvar (thick);
+ }
a.lambda_ = gh_list (ly_symbol ("volta"),
gh_double2scm (w),
+ gh_double2scm (t),
gh_int2scm (last_b),
SCM_UNDEFINED);
if (i == alternative_music_arr_.size () - 1)
v->last_b_ = true;
Text_def* t = new Text_def;
- t->text_str_ = to_str (i - bees + 1);
+ t->text_str_ = to_str (i - bees + 1) + ".";
v->number_p_.set_p (t);
volta_p_arr_.push (v);
announce_element (Score_element_info (v, alternative_music_arr_[i]));
visible_b_ = true;
number_p_.set_p (new Text_def);
number_p_->align_dir_ = LEFT;
- dot_p_.set_p (new Text_def);
- dot_p_->align_dir_ = LEFT;
}
Molecule*
Atom volta (lookup_l ()->volta (w, last_b_));
Real h = volta.dim_.y ().length ();
Atom num (number_p_->get_atom (paper (), LEFT));
- Atom dot (dot_p_->get_atom (paper (), LEFT));
Real dy = column_arr_.top ()->extent (Y_AXIS) [UP] >
column_arr_[0]->extent (Y_AXIS) [UP];
dy += 2 * h;
Real gap = num.dim_.x ().length () / 2;
Offset off (num.dim_.x ().length () + gap,
- (h - num.dim_.y ().length ()) / internote_f - gap);
+ h / internote_f - gap);
num.translate (off);
- Real dotheight = dot.dim_.y ().length () / 7;
- off -= Offset (0, dotheight);
- dot.translate (off);
mol_p->add_atom (volta);
mol_p->add_atom (num);
- mol_p->add_atom (dot);
mol_p->translate (Offset (0, dy));
return mol_p;
}
}
number_p_->style_str_ = "number-1";
- dot_p_->text_str_ = ".";
- dot_p_->style_str_ = "bold";
}
Interval
% ugh
barsize = \staffheight;
rulethickness = \staffline;
+
+% stem should be thinner?
stemthickness = \staffline;
%{
Ross. page 151
-%}
+
bar_kern = 0.5 * \interline;
bar_thinkern = 0.75 * \interline;
barthick_thick = 0.5* \interline;
barthick_thin = 0.1*\interline;
+Can't be, these are ugly! Changed to old (TeX) values.
+
+% barline should be thicker!
+
+%}
+
+bar_kern = 3.0 * \staffline;
+bar_thinkern = 3.0 * \staffline;
+barthick_thick = 6.0* \staffline;
+barthick_thin = 1.6*\staffline;
+
+tuplet_thick = 1.0*\staffline;
+volta_thick = 1.6*\staffline;
\include "engraver.ly";
% (c) 1997, 1998 Jan Nieuwenhuizen <janneke@gnu.org>
fet_begingroup("nummer")
-code := 47;
define_pixels(height,thick,thick,thin,hair,flare);
define_pixels(foot_top,foot_width);
..z4l{left}..tension t..z10l{up}..tension t..cycle;
enddef;
+save dot_diam;
+dot_diam# = 7/8flare#;
+define_pixels(dot_diam);
+
+code := 43;
+
+% urg
+fet_beginchar("Numeral comma", ",", "comma")
+ set_char_box(0, dot_diam#, 3/2dot_diam#, dot_diam#);
+ pickup pencircle scaled dot_diam;
+ draw (dot_diam/2,dot_diam/2);
+ z0=(w/3,0);
+ alpha=65;
+ penpos1(thin,alpha+90);
+ z1l=(w/2,-1.5h+hair);
+ z2=(w,h/2);
+ pickup pencircle;
+ filldraw z1l{dir(alpha)}..{up}z2..{z0-z2}z0{right}..{dir(180+alpha)}z1r..cycle;
+ labels(0,1,2);
+ penlabels(1);
+fet_endchar;
+
+fet_beginchar("Numeral dash", "-", "dash")
+ set_char_box(0, height#/3, 0, height#);
+ pickup pencircle scaled thin;
+ lft x1 = -b;
+ rt x2 = w;
+ y1 = y2 = h/3;
+ draw z1 .. z2;
+fet_endchar;
+
+fet_beginchar("Numeral dot", ".", "dot")
+ set_char_box(0, dot_diam#, 0, dot_diam#);
+ pickup pencircle scaled dot_diam;
+ draw (dot_diam/2,dot_diam/2);
+fet_endchar;
+
+
+% skip slash
+
+code := 47;
+
fet_beginchar("Numeral 0", "0", "zero")
% set_char_box(0, 4/5height#*widen, 0, height#);
set_char_box(0, 11/15height#*widen, 0, height#);
>
\score{
-%{
- urg, this breaks auto-beam-engraver?
- really hairy bug: 1.1.23
- extra bars get encountered!!
- \paper{
- \include "scs-paper.ly";
- gourlay_maxmeasures = 4.0;
- }
-%}
\$allemande_cello_staff
- % \paper{ \include "scs-paper.ly"; }
\paper{
-
- linewidth = 180.\mm;
- \translator { \BarNumberingStaffContext }
- \translator{
- \VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
- beamAutoEnd8 = "1/4";
- beamAutoEnd16 = "1/4";
- beamAutoEnd32 = "1/4";
- }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 3.0;
}
\midi{ \tempo 4 = 45; }
\header{ piece = "Allemande"; }
\score{
\$allemande_viola_staff
-% \include "scs-paper.ly";
\paper{
- linewidth = 180.\mm;
- \translator{
- \VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
- beamAutoEnd8 = "1/4";
- beamAutoEnd16 = "1/4";
- beamAutoEnd32 = "1/4";
- }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 3.0;
}
\midi{ \tempo 4 = 45; }
\header{ piece = "Allemande"; }
\score{
\$courante_cello_staff
- % \paper { \include "scs-paper.ly"; }
\paper{
- linewidth = 180.\mm;
- \translator { \BarNumberingStaffContext }
- \translator{
- \VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
- beamAutoEnd8 = "1/4";
- beamAutoEnd16 = "1/4";
- beamAutoEnd32 = "1/4";
- }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 4.0;
}
\midi{ \tempo 4 = 55; }
\header{ piece = "Courante"; }
\score{
\$courante_viola_staff
- %\paper { \include "scs-paper.ly"; }
\paper{
- linewidth = 180.\mm;
- \translator { \BarNumberingStaffContext }
- \translator{
- \VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
- beamAutoEnd8 = "1/4";
- beamAutoEnd16 = "1/4";
- beamAutoEnd32 = "1/4";
- }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 4.0;
}
\midi{ \tempo 4 = 55; }
\header{ piece = "Courante"; }
\score{
\$gigue_cello_staff
- % \paper { \include "scs-paper.ly"; }
\paper{
- linewidth = 180.\mm;
- \translator { \BarNumberingStaffContext }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 7.0;
\translator{
\VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
beamAutoEnd8 = "3/4";
beamAutoEnd16 = "3/4";
}
\score{
\$gigue_viola_staff
- % \paper { \include "scs-paper.ly"; }
\paper{
- linewidth = 180.\mm;
- \translator { \BarNumberingStaffContext }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 7.0;
\translator{
\VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
beamAutoEnd8 = "3/4";
beamAutoEnd16 = "3/4";
}
\score{
\$menuetto_i_cello_staff
- % \paper { \include "scs-paper.ly"; }
\paper{
- linewidth = 180.\mm;
- \translator { \BarNumberingStaffContext }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 7.0;
\translator{
\VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
beamAutoEnd8 = "3/4";
}
}
\score{
\$menuetto_ii_cello_staff
- % \paper { \include "scs-paper.ly"; }
\paper{
- linewidth = 180.\mm;
- \translator { \BarNumberingStaffContext }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 7.0;
\translator{
\VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
beamAutoEnd8 = "3/4";
}
}
\score{
\$menuetto_i_viola_staff
\paper{
- linewidth = 180.\mm;
- \translator { \BarNumberingStaffContext }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 7.0;
\translator{
\VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
beamAutoEnd8 = "3/4";
}
}
\score{
\$menuetto_ii_viola_staff
\paper{
- linewidth = 180.\mm;
- \translator { \BarNumberingStaffContext }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 7.0;
\translator{
\VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
beamAutoEnd8 = "3/4";
}
}
\score{
\$sarabande_cello_staff
- % \paper { \include "scs-paper.ly"; }
\paper{
- linewidth = 180.\mm;
- \translator { \BarNumberingStaffContext }
- \translator{
- \VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
- beamAutoEnd8 = "1/4";
- beamAutoEnd16 = "1/4";
- beamAutoEnd32 = "1/4";
- }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 5.0;
}
\midi{ \tempo 4 = 40; }
\header{ piece = "Sarabande"; }
\score{
\$sarabande_viola_staff
- % \paper { \include "scs-paper.ly"; }
\paper{
- linewidth = 180.\mm;
- \translator { \BarNumberingStaffContext }
- \translator{
- \VoiceContext
- % add experimental auto-beaming
- \consists Auto_beam_engraver;
- beamAuto = 1.;
- beamAutoEnd8 = "1/4";
- beamAutoEnd16 = "1/4";
- beamAutoEnd32 = "1/4";
- }
+ \include "scs-paper.ly";
+ gourlay_maxmeasures = 5.0;
}
\midi{ \tempo 4 = 40; }
\header{ piece = "Sarabande"; }
gourlay_maxmeasures = 10.0;
\translator { \BarNumberingStaffContext }
\translator {
- \StaffContext
+ \VoiceContext
\consists Auto_beam_engraver;
beamAuto = 1.0;
beamAutoEnd8 = "1/4";
1 copy mul exch 1 copy mul add sqrt
} bind def
-/draw_tuplet
+/draw_tuplet % dx dy thick dir
{
- tuplet_t setlinewidth
% urg: the only Level-2 PS, check effect in print
% true setstrokeadjust
+ /dir exch def
+ setlinewidth
1 setlinecap
1 setlinejoin
- /dir exch def
/tuplet_dy exch def
/tuplet_dx exch def
staffheight 2 div /tuplet_gapx exch def
stroke
} bind def
-/draw_volta % w last
+/draw_volta % w thick last
{
/last exch def
+ setlinewidth
/volta_w exch def
staffheight 2 div /volta_h exch def
- volta_t setlinewidth
% urg: the only Level-2 PS, check effect in print
% true setstrokeadjust
1 setlinecap
(define (text f s)
(string-append "\\set" f "{" (output-tex-string s) "}"))
- (define (tuplet dx dy dir)
- (embedded-ps ((ps-scm 'tuplet) dx dy dir)))
+ (define (tuplet dx dy thick dir)
+ (embedded-ps ((ps-scm 'tuplet) dx dy thick dir)))
- (define (volta w last)
- (embedded-ps ((ps-scm 'volta) w last)))
+ (define (volta w thick last)
+ (embedded-ps ((ps-scm 'volta) w thick last)))
(define (maatstreep h)
(string-append "\\maatstreep{" (number->dim h) "}"))
(string-append "(" s ") set" f " "))
- (define (volta w last)
+ (define (volta w thick last)
(string-append
- (numbers->string (list w (inexact->exact last)))
+ (numbers->string (list w thick (inexact->exact last)))
"draw_volta"))
- (define (tuplet dx dy dir)
+
+ (define (tuplet dx dy thick dir)
(string-append
- (numbers->string (list dx dy (inexact->exact dir)))
+ (numbers->string (list dx dy thick (inexact->exact dir)))
"draw_tuplet"))
bracket_v /bracket_u exch def
50 /bracket_alpha exch def
staffheight 4 div /interline exch def
-stafflinethickness 1.2 mul /tuplet_t exch def
-stafflinethickness 2.5 mul /volta_t exch def
1 setlinecap}
}