--- /dev/null
+\version "1.3.96";
+
+\score {
+ \notes
+ \notes \context GrandStaff <
+ \context Staff = treble {
+ \property GrandStaff.instrument = "Violini "
+ \property Staff.instrument = " vn I" { c''4 }}
+ \context Staff = bass { \property Staff.instrument = " vn II" c''4 }>
+
+
+\paper {
+linewidth=-1.0;
+\translator { \StaffContext
+ \consists "Instrument_name_engraver";
+ }
+\translator { \GrandStaffContext \consists "Instrument_name_engraver"; }
+}}
--- /dev/null
+\version "1.3.96";
+
+\score {
+
+ \notes \context Staff = treble {
+ \property Staff.instrument = "instr " { c''4 }}
+
+\paper {
+linewidth=-1.0;
+\translator { \StaffContext \consists "Instrument_name_engraver"; }
+}}
+
\paper {
linewidth=-1.0;
\translator { \ScoreContext
- %textVerticalAlignment = #0
+
}
-%\translator { \StaffContext \consists "Instrument_name_engraver"; }
-%\translator { \PianoStaffContext \consists "Instrument_name_engraver"; }
\translator { \StaffContext \consists "Instrument_name_engraver"; }
\translator { \PianoStaffContext \consists "Instrument_name_engraver"; }
}}
c2^^^-^\f
\time 3/4;
- \fugaIIPedal }
+ \fugaIIPedal \bar "|." ; }
>
>
#include "string.hh"
#include "molecule.hh"
#include "item.hh"
+#include "lookup.hh"
/*
FIXME: should use symbol for #'style.
-
*/
MAKE_SCHEME_CALLBACK(Clef,before_line_breaking,1);
SCM
}
+
+
+MAKE_SCHEME_CALLBACK(Clef,brew_molecule,1)
+SCM
+Clef::brew_molecule (SCM smob)
+{
+ Score_element * sc = unsmob_element (smob);
+ SCM glyph = sc->get_elt_property ("glyph");
+ if (gh_string_p (glyph))
+ {
+ return sc->lookup_l ()->afm_find (String (ly_scm2string (glyph))).create_scheme ();
+ }
+ else
+ {
+ return SCM_EOL;
+ }
+}
struct Clef
{
DECLARE_SCHEME_CALLBACK(before_line_breaking, (SCM ));
+ DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM ));
static bool has_interface (Score_element*);
static void set_interface (Score_element*);
};
-
/*
new-staff-margin-engraver.cc -- implement Instrument_name_engraver
#include "bar.hh"
#include "system-start-delimiter.hh"
#include "side-position-interface.hh"
+#include "align-interface.hh"
class Instrument_name_engraver : public Engraver
{
Item *text_;
- Spanner * delim_ ;
+ Score_element * delim_ ;
void create_text (SCM s);
public:
text_ = new Item (get_property ("InstrumentName"));
text_->set_elt_property ("text", txt);
- /*
- TODO: use more lispish names for break-align-symbols
- */
if (delim_)
text_->set_parent (delim_, Y_AXIS);
}
}
- if (System_start_delimiter::has_interface (i.elem_l_)
+ if (Align_interface::has_interface (i.elem_l_)
+ && Align_interface::axis (i.elem_l_) == Y_AXIS
+ //System_start_delimiter::has_interface (i.elem_l_)
&& i.origin_trans_l_->daddy_trans_l_ == daddy_trans_l_)
{
- delim_ = dynamic_cast<Spanner*> (i.elem_l_);
+ delim_ = i.elem_l_;
}
}
return SCM_UNDEFINED;
}
+#include "version.hh"
+SCM
+ly_version ()
+{
+ char const* vs = "\'(" MAJOR_VERSION " " MINOR_VERSION " " PATCH_LEVEL " " MY_PATCH_LEVEL ")" ;
+
+
+ return gh_eval_str (vs);
+}
static void
init_functions ()
{
scm_make_gsubr ("ly-warn", 1, 0, 0, (Scheme_function_unknown)ly_warning);
+ scm_make_gsubr ("ly-version", 0, 0, 0, (Scheme_function_unknown)ly_warning);
scm_make_gsubr ("ly-gulp-file", 1,0, 0, (Scheme_function_unknown)ly_gulp_file);
scm_make_gsubr ("dir?", 1,0, 0, (Scheme_function_unknown)ly_isdir_p);
scm_make_gsubr ("undefd", 0,0, 0, (Scheme_function_unknown)undefd);
SCM errport = scm_current_error_port ();
warning (_("Wrong type for property"));
scm_display (prop_sym, errport);
- scm_puts (", type predicate: ", errport);
- scm_display (type_p, errport);
+ scm_puts (", type: ", errport);
+
+ SCM typefunc = scm_eval2 (ly_symbol2scm ("type-name"), SCM_EOL);
+
+ scm_display (gh_call1 (typefunc, type_p), errport);
scm_puts (", value found: ", errport);
scm_display (val, errport);
scm_puts (" type: ", errport);
/*
[TODO]
* fix broken interstaff slurs
+ * should avoid stafflines with horizontal part.
* begin and end should be treated as a/acknowledge Scripts.
* smart changing of endings
* smart changing of (Y-?)offsets to avoid ugly beziers
System_start_delimiter_engraver::do_creation_processing()
{
delim_ = new Spanner (get_property ("SystemStartDelimiter"));
- System_start_delimiter::set_interface (delim_);
+
delim_->set_bound (LEFT, unsmob_element (get_property ("currentCommandColumn")));
- /*
- You can't override the glyph using \property, you must do it in
- the predefined context (ie. \translator { ... } )
- */
- SCM s = get_property ("systemStartDelimiterGlyph");
- if (gh_symbol_p (s))
- {
- delim_->set_elt_property ("glyph", s);
- }
announce_element (delim_,0);
}
void
System_start_delimiter_engraver::do_removal_processing ()
{
- // ugh, should have naming without bracket
- SCM collapse = get_property ("bracketCollapseHeight");
- if (gh_number_p (collapse))
- delim_->set_elt_property ("collapse-height", collapse);
-
delim_->set_bound (RIGHT, unsmob_element (get_property ("currentCommandColumn")));
typeset_element (delim_);
}
void
System_start_delimiter::set_interface (Score_element*me)
{
- me->set_extent_callback (SCM_EOL, Y_AXIS);
me->set_interface (ly_symbol2scm ("system-start-delimiter-interface"));
}
scm_display (eltprop,errport);
scm_puts ( _(", value ").ch_C (), errport);
scm_display (val, errport);
- scm_puts (_(" must satisfy ").ch_C (), errport);
- scm_display (predicate, errport);
+ scm_puts (_(" must be of type ").ch_C (), errport);
+ SCM typefunc = scm_eval2 (ly_symbol2scm ("type-name"), SCM_EOL);
+
+ scm_display (gh_call1 (typefunc, predicate), errport);
scm_puts ("\n", errport);
}
}
cis(e g!)bes e()a, bes()g f()cis d()gis, a8 cis! |
% knee
\stemUp d,16 \stemBoth d''(c!)a bes!(g)e cis' d a f d d,8.
+ \bar "|.";
}
allemande_b = \notes \relative c {
gis, d'(e f e d cis)d a d a cis |
d a f a d, f a, d
d,8.
+ \bar "|.";
}
courante_b = \notes \relative c {
%72
cis'4 \stemBoth d16()c | bes(a g f e)d | cis(b a g f)e | d f a d f a |
d4
+ \bar "|.";
}
gigue_b = \context Staff \notes \relative c {
}
}
\midi{ \tempo 4 = 130; }
- \header{ piece = "Menuetto II"; }
+ \header{
+ piece = "Menuetto II";
+ opus = "";
+ }
}
g4 \skip 4*1; f4 |
cis8 \skip 8*3; d4 |
s2.*2
+ \bar "|.";
}
% UGH, fix this like in sarabande
e( fis g )b a4 |
g8()fis e()d e()cis |
d2.
+ \bar "|.";
}
\version "1.3.93";
}
\midi{ \tempo 4 = 110; }
\header{
- opus= "" ;
- piece ="Menuetto I"; }
+ opus= "" ;
+ piece ="Menuetto I";
+ }
}
menuetto_ii_viola_global = \notes{
f'4 fis4. s8 |
<d4 g,> gis4. s8 |
s2.*2
+ \bar "|.";
}
(flag-width-function . ,default-beam-flag-width-function)
(space-function . ,default-beam-space-function)
(damping . 1)
- (meta . ,(element-description "Beam" general-element-interface beam-interface))
+ (meta . ,(element-description "Beam" beam-interface))
)
)