by 2. Fix that.
* lily/parser.yy (event_that_take_dir): allow () \< \> \! \( \) to
be after the note, combined with -_^, i.e. c4-(-\)-\>
* ly/params-init.ly (ledgerlinethickness): use Scheme expressions.
* lily/parser.yy (number_factor): remove (number) as number
expression. ("Let them eat Lisp").
+2002-10-06 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+ * lily/source-file.cc (get_line): oops. All line numbers were off
+ by 2. Fix that.
+
+ * lily/parser.yy (event_that_take_dir): allow () \< \> \! \( \) to
+ be after the note, combined with -_^, i.e. c4-(-\)-\>
+
+ * ly/params-init.ly (ledgerlinethickness): use Scheme expressions.
+
+ * lily/parser.yy (number_factor): remove (number) as number
+ expression. ("Let them eat Lisp").
+
2002-10-05 Han-Wen Nienhuys <hanwen@cs.uu.nl>
* lily/horizontal-bracket.cc: new file.
{
return (*this)[size_-j-1];
}
-
-
T& boundary (int dir, int idx)
{
Repeated_music * mus = dynamic_cast<Repeated_music *> (get_music ());
if (mus->alternatives ())
{
- /*
- ugh.
- */
+ /*
+ ugh.
+ */
Simultaneous_music_iterator * s = new Simultaneous_music_iterator;
s->separate_contexts_b_ = true;
s->init_translator (mus, report_to ());
extern SCM lily_module;
scm_module_define (lily_module, ly_symbol2scm ("point-and-click"), val);
+
+ store_locations_global_b =gh_procedure_p (val);
return SCM_UNSPECIFIED;
}
event_that_take_dir:
gen_text_def
| verbose_event
+ | close_event
+ | open_event
| script_abbreviation {
SCM s = THIS->lexer_->lookup_identifier ("dash" + ly_scm2string ($1));
Music *a = MY_MAKE_MUSIC("ArticulationEvent");
;
number_factor:
- '(' number_expression ')' {
- $$ = $2;
- }
- | '-' number_factor { /* %prec UNARY_MINUS */
+ '-' number_factor { /* %prec UNARY_MINUS */
$$ = scm_difference ($2, SCM_UNDEFINED);
}
| bare_number
void
Score::run_translator (Music_output_def *odef)
{
- /*
- We want to know if we want to store locations, since they take a
- lot of overhead.
- */
- store_locations_global_b = (gh_eval_str ("point-and-click") != SCM_BOOL_F);
-
- Cpu_timer timer;
+ Cpu_timer timer;
Global_translator * trans = odef->get_global_translator ();
if (!trans)
{
init_port();
}
-
-
-
Source_file::Source_file (String filename_string)
{
name_string_ = filename_string;
if (!in_b (pos_str0))
return 0;
+ if (!newline_locations_.size())
+ return 1;
+
int lo=0;
int hi = newline_locations_.size();
+
+ if (newline_locations_[lo] > pos_str0)
+ return 1;
+
+ if (newline_locations_[hi-1] < pos_str0)
+ return hi;
binary_search_bounds (newline_locations_,
pos_str0,
Link_array<char>::default_compare,
&lo, &hi);
- return lo;
+ return lo + 2;
}
int
\include "paper-init.ly"
unit = "mm"
-staffspace = \staffheight / 4.0
-linethickness = \staffspace / 10.0
-outputscale = \staffheight / 4.0
-ledgerlinethickness = 2.0 * \linethickness
+staffspace = #(/ staffheight 4.0)
+linethickness = #(/ staffspace 10.0)
+outputscale = #(/ staffheight 4.0)
+ledgerlinethickness = #(* 2.0 linethickness)
(string-append (number->string line) " " file)
)
+(define-public point-and-click #f)
+
;; cpp hack to get useful error message
(define ifdef "First run this through cpp.")
(define ifndef "First run this through cpp.")
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define-public X 0)