--- /dev/null
+
+% Used for example to print glyphs with stafflines
+test := 0;
+
+if test = -1:
+ % TODO: what's this? Seems to be broken...
+ mode := smoke;
+fi;
+
+% change this to 0.5 to have glyphs positioned on
+% staff spaces instead of stafflines in testing mode
+% (useful e.g. to check how accidentals visually interact
+% with stafflines in different configurations).
+stafflines_y_offset := 0;
% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
-%
-% also show in other configuration wrt staff lines.
-%
-def draw_shifted_too =
-if test > 0:
- fet_beginchar ("shifted too", "");
- set_char_box (0, 0, 0, 0);
- currentpicture := remember_pic;
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-enddef;
-
-
%
% Accidentals from various sources, notably
%
fet_begingroup ("accidentals");
-save remember_pic;
-picture remember_pic;
-
input feta-arrow;
input feta-sharps;
-test := 0;
staffsize# := design_size * pt#;
% ugh, should be bulb, not flare?
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
enddef;
penlabels (1, 2, 3, 4, 5, 6);
- draw_staff_if_debugging (-3, 1, 0);
+ draw_staff_if_debugging (-3, 1);
enddef;
penlabels (range 101 thru 121);
penlabels (110', 111');
- draw_staff_if_debugging (-1, 3, 0);
+ draw_staff_if_debugging (-1, 3);
enddef;
draw_block ((-b, -d), (-b + razt, h));
draw_block ((w - razt, -d), (w, h));
- draw_staff_if_debugging (-3, 1, 1);
+ draw_staff_if_debugging (-3, 1);
enddef;
draw_tab_B ((-b + .025 reduced_ss, -d),
(2.1 reduced_ss, letterheight), 0.25);
- draw_staff_if_debugging (-3, 2, 0.5);
+ draw_staff_if_debugging (-3, 2);
enddef;
% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
-if test = -1:
- mode := smoke;
-fi
-
staffsize# := design_size * pt#;
mode_setup;
input feta-autometric;
design_size := 11.22;
-test := 0;
-
-
input feta-flags-generic;
end.
input feta-autometric;
design_size := 12.60;
-test := 0;
-
-
input feta-flags-generic;
end.
input feta-autometric;
design_size := 14.14;
-test := 0;
-
-
input feta-flags-generic;
end.
input feta-autometric;
design_size := 15.87;
-test := 0;
-
-
input feta-flags-generic;
end.
input feta-autometric;
design_size := 17.82;
-test := 0;
-
-
input feta-flags-generic;
end.
input feta-autometric;
design_size := 20;
-test := 0;
-
-
input feta-flags-generic;
end.
input feta-autometric;
design_size := 22.45;
-test := 0;
-
-
input feta-flags-generic;
end.
input feta-autometric;
design_size := 25.20;
-test := 0;
-
-
input feta-flags-generic;
end.
false, false);
penlabels (range 0 thru 11);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Arrowed Flat (arrow up)", "flat.arrowup");
- draw_arrowed_meta_flat (0, 0.8 staff_space#, 0.31 staff_space,
- true, false);
- penlabels (range 0 thru 23);
-
- remember_pic := currentpicture;
+ draw_arrowed_meta_flat (0, 0.8 staff_space#, 0.31 staff_space,
+ true, false);
+ penlabels (range 0 thru 23);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Arrowed Flat (arrow down)", "flat.arrowdown");
- draw_arrowed_meta_flat (0, 0.8 staff_space#, 0.31 staff_space,
- false, true);
- penlabels (range 0 thru 23);
-
- remember_pic := currentpicture;
+ draw_arrowed_meta_flat (0, 0.8 staff_space#, 0.31 staff_space,
+ false, true);
+ penlabels (range 0 thru 23);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Arrowed Flat (arrow up and down)", "flat.arrowboth");
draw_arrowed_meta_flat (0, 0.8 staff_space#, 0.31 staff_space,
true, true);
penlabels (range 0 thru 23);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Flat (slashed)", "flat.slash");
set_char_box (.4 staff_space#, .8 staff_space#,
0.6 staff_space#, 1.9 staff_space#);
penlabels (12, 13);
labels (14, 15);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
penlabels (22, 23);
labels (24, 25);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
currentpicture := currentpicture shifted (w/2, 0);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Semi flat", "mirroredflat");
set_char_box (1.2 stafflinethickness#, .8 staff_space#,
0.6 staff_space#, 1.9 staff_space#);
penlabels (12, 13);
labels (14, 15);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-
-
-draw_shifted_too;
% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
-if test = -1:
- mode := smoke;
-fi
-
staffsize# := design_size * pt#;
mode_setup;
% debugging
%
+input debugging-settings.mf
+
def print_penpos (suffix $) =
message
"z" & str$ & "l = (" & decimal x.$.l & ", " &decimal y.$.l & ");"
enddef;
-def draw_staff_if_debugging (expr first, last, offset) =
+def draw_staff_if_debugging (expr first, last) =
if test <> 0:
pickup pencircle scaled stafflinethickness;
for i := first step 1 until last:
draw (-staff_space,
- (i + offset) * staff_space_rounded)
+ (i + stafflines_y_offset) * staff_space_rounded)
-- (4 staff_space,
- (i + offset) * staff_space_rounded);
+ (i + stafflines_y_offset) * staff_space_rounded);
endfor;
fi;
enddef;
w := w + extendright;
fi;
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
enddef;
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Arrowed Natural (arrow up)", "natural.arrowup");
draw_natural (true, false);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Arrowed Natural (arrow down)", "natural.arrowdown");
draw_natural (false, true);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Arrowed Natural (arrows up and down)", "natural.arrowboth");
draw_natural (true, true);
fet_endchar;
-
-
-draw_shifted_too;
-
% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
-if test = -1:
- mode := smoke;
-fi
-
staffsize# := design_size * pt#;
mode_setup;
test_outlines := 0;
-save remember_pic;
-picture remember_pic;
-
-
% Most beautiful noteheads are pronounced, not circular,
% and not even symmetric.
% These examples are inspired by [Wanske]; see literature list.
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% NOTE HEAD VARIABLES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fet_beginchar ("Longa notehead", "uM2");
draw_longa (true);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
fet_beginchar ("Longa notehead", "dM2");
draw_longa (false);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Longa notehead", "uM2");
- draw_longa (true);
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-
-
- fet_beginchar ("Longa notehead", "dM2");
- draw_longa (false);
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
def draw_brevis (expr linecount, line_thickness_multiplier) =
save stemthick, fudge, gap;
fet_beginchar ("Brevis notehead", "sM1");
draw_brevis (1, 1);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Brevis notehead", "sM1");
- draw_brevis(1, 1);
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
fet_beginchar ("Double-lined brevis notehead", "sM1double");
draw_brevis (2, 0.8);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Double-lined brevis notehead", "sM1double");
- draw_brevis (2, 0.8);
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
fet_beginchar ("Whole notehead", "s0");
draw_outside_ellipse (1.80 - puff_up_factor / 3.0, 0, 0.707, 0);
undraw_inside_ellipse (1.30, 125 - puff_up_factor * 10,
whole_notehead_width# := charwd;
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Whole notehead", "s0");
- draw_outside_ellipse (1.80 - puff_up_factor / 3.0, 0,
- 0.707, 0);
- undraw_inside_ellipse (1.30, 125 - puff_up_factor * 10,
- 0.68, 2 stafflinethickness#);
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
fet_beginchar ("Half notehead", "s1");
draw_outside_ellipse (1.53 - puff_up_factor / 3.0, 34, 0.66, 0.17);
undraw_inside_ellipse (3.25, 33, 0.81, 2.5 stafflinethickness#);
half_notehead_width# := charwd;
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Half notehead", "s1");
- draw_outside_ellipse (1.53 - puff_up_factor / 3.0, 34,
- 0.66, 0.17);
- undraw_inside_ellipse (3.25, 33, 0.81,
- 2.5 stafflinethickness#);
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
fet_beginchar ("Quarter notehead", "s2");
draw_quarter_path;
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Quarter notehead", "s2");
- draw_outside_ellipse (1.49 - puff_up_factor / 3.0, 31,
- 0.707, 0);
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
undraw_inside_ellipse (1.30, 125, 0.6,
.4 staff_space# + stafflinethickness#);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Whole diamondhead", "s0diamond");
- draw_outside_ellipse (1.80, 0, 0.495, 0);
- undraw_inside_ellipse (1.30, 125, 0.6,
- .4 staff_space# + stafflinethickness#);
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
fet_beginchar ("Half diamondhead", "s1diamond");
draw_outside_ellipse (1.50, 34, 0.49, 0.17);
undraw_inside_ellipse (3.5, 33, 0.80,
.3 staff_space# + 1.5 stafflinethickness#);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Half diamondhead", "s1diamond");
- draw_outside_ellipse (1.50, 34, 0.49, 0.17);
- undraw_inside_ellipse (3.5, 33, 0.80,
- .3 staff_space#
- + 1.5 stafflinethickness#);
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
fet_beginchar ("Quarter diamondhead", "s2diamond");
draw_outside_ellipse (1.80, 35, 0.495, -0.25);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Quarter diamondhead", "s2diamond");
- draw_outside_ellipse (1.80, 35, 0.495, -0.25);
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fet_beginchar ("Whole trianglehead", "s0triangle");
draw_whole_triangle_head;
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Whole trianglehead", "s0triangle");
- draw_whole_triangle_head;
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
def draw_small_triangle_head (expr dir) =
save hei, xs;
save llap;
fet_beginchar ("Half trianglehead (downstem)", "d1triangle");
draw_small_triangle_head (-1);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
fet_beginchar ("Half trianglehead (upstem)", "u1triangle");
draw_small_triangle_head (1);
- draw_staff_if_debugging (-2, 2, 0.5);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
fet_beginchar ("Quarter trianglehead (upstem)", "u2triangle");
draw_closed_triangle_head (1);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
fet_beginchar ("Quarter trianglehead (downstem)", "d2triangle");
draw_closed_triangle_head (-1);
- draw_staff_if_debugging (-2, 2, 0.5);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
fet_beginchar ("Whole slashhead", "s0slash");
draw_slash (4 slash_thick# + 0.5 staff_space#);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
fet_beginchar ("Half slashhead", "s1slash");
draw_slash (3.0 slash_thick# + 0.15 staff_space#);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
fet_beginchar ("Quarter slashhead", "s2slash");
draw_slash (1.5 slash_thick#);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
draw_cross (3.75);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Whole Crossed notehead", "s0cross");
- save wid, hei;
-
- wid# := black_notehead_width# + 4 stafflinethickness#;
- hei# := noteheight# + stafflinethickness#;
-
- set_char_box (0, wid#, hei# / 2, hei# / 2);
-
- currentpicture := remember_pic;
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
fet_beginchar ("Half Crossed notehead", "s1cross");
save wid, hei;
draw_cross (3.0);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Half Crossed notehead", "s1cross");
- save wid, hei;
-
- wid# := black_notehead_width# + 2 stafflinethickness#;
- hei# := noteheight# + stafflinethickness# / 2;
-
- set_char_box (0, wid#, hei# / 2, hei# / 2);
-
- currentpicture := remember_pic;
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
fet_beginchar ("Crossed notehead", "s2cross");
wid# := black_notehead_width#;
hei# := noteheight#;
draw_cross (1.0);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("Crossed notehead", "s2cross");
- wid# := black_notehead_width#;
- hei# := noteheight#;
- set_char_box (0, wid#, hei# / 2, hei# / 2);
-
- currentpicture := remember_pic;
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
fet_beginchar ("X-Circled notehead", "s2xcircle");
save wid, hei;
save cthick, cxd, cyd, dy;
z12 = (charwx * hppp, charwy * vppp);
labels (12);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-if test > 0:
- fet_beginchar ("X-Circled notehead", "s2xcircle");
- save wid, hei;
- save cthick, cxr, cyr;
-
- wid# := black_notehead_width# * sqrt (sqrt2);
- hei# := noteheight# * sqrt (sqrt2);
-
- set_char_box (0, wid#, hei# / 2, hei# / 2);
-
- currentpicture := remember_pic;
-
- draw_staff_if_debugging (-2, 2, 0.5);
- fet_endchar;
-fi;
-
-
%%%%%%%%
%
% SOLFA SHAPED NOTES
if not filled:
undraw_inside_ellipse (3.25, 33, 0.81, 2.5 stafflinethickness#);
fi
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
enddef;
fet_beginchar ("Whole solhead", "s0sol");
if not filled:
undraw_inside_ellipse (1.9, 33, 0.74, 5.5 stafflinethickness#);
fi
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
endgroup
enddef;
input feta-autometric;
design_size := 11.22;
-test := 0;
-
-
input feta-noteheads-generic;
end.
input feta-autometric;
design_size := 12.60;
-test := 0;
-
-
input feta-noteheads-generic;
end.
input feta-autometric;
design_size := 14.14;
-test := 0;
-
-
input feta-noteheads-generic;
end.
input feta-autometric;
design_size := 15.87;
-test := 0;
-
-
input feta-noteheads-generic;
end.
input feta-autometric;
design_size := 17.82;
-test := 0;
-
-
input feta-noteheads-generic;
end.
input feta-autometric;
design_size := 20;
-test := 0;
-
-
input feta-noteheads-generic;
end.
input feta-autometric;
design_size := 22.45;
-test := 0;
-
-
input feta-noteheads-generic;
end.
input feta-autometric;
design_size := 25.20;
-test := 0;
-
-
input feta-noteheads-generic;
end.
draw_paren;
penlabels (1, 2, 3);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Left Parenthesis", "leftparen");
draw_paren;
currentpicture := currentpicture
shifted (0, -block_rest_y + feta_space_shift);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
block_rest;
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
lft x5 = -b - block_rest_y;
rt x6 = w + block_rest_y;
draw_gridline (z5, z6, ledgerlinethickness_rounded);
-
- draw_staff_if_debugging (-2, 2, -3);
fet_endchar;
rt x6 = w + block_rest_y;
draw_gridline (z5, z6, ledgerlinethickness_rounded);
-
- draw_staff_if_debugging (-2, 2, 3);
fet_endchar;
addto currentpicture also currentpicture shifted (2 breve_rest_x, 0);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
draw_block ((0, -breve_rest_y + feta_shift),
(breve_rest_x, breve_rest_y));
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
draw_block ((0, 0), (breve_rest_x, breve_rest_y));
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
fet_beginchar ("breve rest (outside staff)", "M1o");
draw_gridline (z5, z6, ledgerlinethickness_rounded);
draw_gridline ((x5, 0), (x6, 0), ledgerlinethickness_rounded);
-
- draw_staff_if_debugging (-2, 2, 3);
fet_endchar;
penlabels (1, 2, 3, 4, 5, 6, 7);
penlabels (10, 11, 12, 13);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-- z1l
.. cycle;
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
enddef;
penlabels (1, 2);
labels (9);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
penlabels (1, 2);
labels (9);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
penlabels (1, 2);
labels (9);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
penlabels (1, 2);
labels (9);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
addto currentpicture also currentpicture scaled -1;
penlabels (1, 1', 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
- % draw_staff_if_debugging (-2, 2, 0);
fet_endchar;
draw_arpeggio;
penlabels (range 1 thru 9);
- draw_staff_if_debugging (-2, 2, 0.0);
+ draw_staff_if_debugging (-2, 2);
endgroup;
fet_endchar;
stafflinethickness / 2 + stemwidth / 2, true);
fi;
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
enddef;
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Arrowed Sharp (arrow up)", "sharp.arrowup");
draw_sharp (true, false);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Arrowed Sharp (arrow down)", "sharp.arrowdown");
draw_sharp (false, true);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Arrowed Sharp (arrows up and down)", "sharp.arrowboth");
draw_sharp (true, true);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("1/2 Sharp", "sharp.slashslash.stem");
save stem, stemwidth;
save outer_space, interbeam;
draw_gridline (z5, z6, stemwidth);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Sharp (3 beams)", "sharp.slashslashslash.stemstem");
save stem, stemx, stemwidth;
save outer_space, interbeam;
draw_gridline (z5, z6, stemwidth);
draw_gridline (z7, z8, stemwidth);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("1/2 Sharp (3 beams)", "sharp.slashslashslash.stem");
save stem, stemx, stemwidth;
save outer_space, interbeam;
draw_gridline (z5, z6, stemwidth);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("3/4 Sharp", "sharp.slashslash.stemstemstem");
save stem, stemx, stemwidth;
save outer_space, interbeam;
draw_gridline (z7, z8, stemwidth);
draw_gridline (z9, z10, stemwidth);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-draw_shifted_too;
-
-
fet_beginchar ("Double Sharp", "doublesharp");
save klaverblad, klaversteel;
save pat;
% ugh
currentpicture := currentpicture shifted (hround (w / 2), 0);
- remember_pic := currentpicture;
-
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
fet_endchar;
-
-
-draw_shifted_too;
penlabels (1, 2, 3, 4, 5);
- draw_staff_if_debugging (-2, 2, 0);
+ draw_staff_if_debugging (-2, 2);
enddef;
input feta-autometric;
design_size := 11.22;
-test := 0;
-
input feta-generic;
input feta-autometric;
design_size := 12.60;
-test := 0;
-
input feta-generic;
input feta-autometric;
design_size := 14.14;
-test := 0;
-
input feta-generic;
input feta-autometric;
design_size := 15.87;
-test := 0;
-
input feta-generic;
% todo change file name
design_size := 17.82;
-test := 0;
-
input feta-generic;
% use feta-test for debugging.
-test := 0;
input feta-generic;
% todo change file name
design_size := 22.45;
-test := 0;
-
input feta-generic;
input feta-autometric;
design_size := 25.20;
-test := 0;
-
input feta-generic;
fet_beginchar ("Ed. Vat. do clef", "vaticana.do");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_vaticana_do_clef ((0, 0), 1.0);
fet_endchar;
fet_beginchar ("Ed. Vat. fa clef", "vaticana.fa");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_vaticana_fa_clef ((0, 0), 1.0);
fet_endchar;
fet_beginchar ("Ed. Med. do clef", "medicaea.do");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_medicaea_do_clef ((0, 0), 1.0);
fet_endchar;
fet_beginchar ("Ed. Med. fa clef", "medicaea.fa");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_medicaea_fa_clef ((0, 0), 1.0);
fet_endchar;
fet_beginchar ("neo-mensural c clef", "neomensural.c");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_neomensural_c_clef ((0, 0), 1.0);
fet_endchar;
fet_beginchar ("petrucci c1 clef", "petrucci.c1");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_petrucci_c_clef ((0, 0), +2, 1.0);
fet_endchar;
fet_beginchar ("petrucci c2 clef", "petrucci.c2");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_petrucci_c_clef ((0, 0), +1, 1.0);
fet_endchar;
fet_beginchar ("petrucci c3 clef", "petrucci.c3");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_petrucci_c_clef ((0, 0), 0, 1.0);
fet_endchar;
fet_beginchar ("petrucci c4 clef", "petrucci.c4");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_petrucci_c_clef ((0, 0), -1, 1.0);
fet_endchar;
fet_beginchar ("petrucci c5 clef", "petrucci.c5");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_petrucci_c_clef ((0, 0), -2, 1.0);
fet_endchar;
fet_beginchar ("mensural c clef", "mensural.c");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_mensural_c_clef ((0, 0), 1.0, true);
fet_endchar;
fet_beginchar ("black mensural c clef", "blackmensural.c");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_mensural_c_clef ((0, 0), 1.0, false);
fet_endchar;
fet_beginchar ("petrucci f clef", "petrucci.f");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_petrucci_f_clef ((0, 0), 1.0);
fet_endchar;
fet_beginchar ("mensural f clef", "mensural.f");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_mensural_f_clef ((0, 0), 1.0);
fet_endchar;
fet_beginchar ("petrucci g clef", "petrucci.g");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_petrucci_g_clef ((0, 0), 1.0);
fet_endchar;
% until the code for the mensural g clef will be rewritten.
%
fet_beginchar ("mensural g clef", "mensural.g");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_petrucci_g_clef ((0, 0), 1.0);
fet_endchar;
fet_beginchar ("Hufnagel do clef", "hufnagel.do");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_hufnagel_do_clef ((0, 0), 1.0);
fet_endchar;
fet_beginchar ("Hufnagel fa clef", "hufnagel.fa");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_hufnagel_fa_clef ((0, 0), 1.0);
fet_endchar;
fet_beginchar ("Hufnagel do/fa clef", "hufnagel.do.fa");
- if test = 1:
- draw_staff_if_debugging (-1, 3, 0.0);
- fi;
+ draw_staff_if_debugging (-1, 3);
draw_hufnagel_do_fa_clef ((0, 0), 1.0);
fet_endchar;
% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
-if test = -1:
- mode := smoke;
-fi;
-
mode_setup;
staffsize# := design_size * pt#;
% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
-if test = -1:
- mode := smoke;
-fi
-
staffsize# := design_size * pt#;
mode_setup;
input feta-autometric;
design_size := 11.22;
-test := 0;
-
-
input parmesan-noteheads-generic;
end.
input feta-autometric;
design_size := 12.60;
-test := 0;
-
-
input parmesan-noteheads-generic;
end.
input feta-autometric;
design_size := 14.14;
-test := 0;
-
-
input parmesan-noteheads-generic;
end.
input feta-autometric;
design_size := 15.87;
-test := 0;
-
-
input parmesan-noteheads-generic;
end.
input feta-autometric;
design_size := 17.82;
-test := 0;
-
-
input parmesan-noteheads-generic;
end.
input feta-autometric;
design_size := 20;
-test := 0;
-
-
input parmesan-noteheads-generic;
end.
input feta-autometric;
design_size := 22.45;
-test := 0;
-
-
input parmesan-noteheads-generic;
end.
input feta-autometric;
design_size := 25.20;
-test := 0;
-
-
input parmesan-noteheads-generic;
end.
input feta-autometric;
-test := 0;
-
input parmesan-generic;
end.
input feta-autometric;
-test := 0;
-
input parmesan-generic;
input feta-autometric;
-test := 0;
-
input parmesan-generic;
input feta-autometric;
-test := 0;
-
input parmesan-generic;
input feta-autometric;
-test := 0;
-
input parmesan-generic;
input feta-autometric;
-test := 0;
-
input parmesan-generic;
input feta-autometric;
-test := 0;
-
input parmesan-generic;
input feta-autometric;
-test := 0;
-
input parmesan-generic;