-1.3.60.jcn1
-===========
+1.3.62
+======
+
+* Made callbacks from Score_element::before_line_breaking() and
+Score_element::after_line_breaking()
+
+* Fixed website; backlinks should work again.
+
+* Removed --ignore-version option. Added --verbose option.
+
+1.3.61
+======
* Webpage hacking
#include "source-file.hh"
#include "source.hh"
#include "debug.hh"
+#include "main.hh"
#ifndef YY_BUF_SIZE
#define YY_BUF_SIZE 16384
char_count_stack_.push (0);
if (yy_current_buffer)
state_stack_.push (yy_current_buffer);
- progress_indication (String ("[") + s);
+
+ if (verbose_global_b)
+ progress_indication (String ("[") + s);
include_stack_.push (sl);
char_count_stack_.push (0);
if (yy_current_buffer)
state_stack_.push (yy_current_buffer);
- progress_indication (String ("[") + name);
+
+ if (verbose_global_b)
+ progress_indication (String ("[") + name);
include_stack_.push (file);
yy_switch_to_buffer (yy_create_buffer (file->istream_l (), YY_BUF_SIZE));
{
include_stack_.pop ();
char_count_stack_.pop ();
- progress_indication ("]");
+ if (verbose_global_b)
+ progress_indication ("]");
yy_delete_buffer (yy_current_buffer);
yy_current_buffer = 0;
if (state_stack_.empty ())
}
-/**
- Read a file, and shove it down GUILE. GUILE also has file read
- functions, but you can't fiddle with the path of those.
- */
-void
-read_lily_scm_file (String fn)
+String
+gulp_file_to_string (String fn)
{
String s = global_path.find (fn);
if (s == "")
e += _f ("(load path: `%s')", global_path.str ());
error (e);
}
- else
- progress_indication ("[" + s);
+ else if (verbose_global_b)
+ progress_indication ("[" + s );
Simple_file_storage f(s);
-
- gh_eval_str ((char *) f.ch_C());
- progress_indication ("]");
+ String result (f.ch_C());
+ if (verbose_global_b)
+ progress_indication ("]");
+ return result;
}
-
SCM
-ly_gulp_file (SCM name)
+ly_gulp_file (SCM fn)
{
- String fn (ly_scm2string (name));
- String s = global_path.find (fn);
- if (s == "")
- {
- String e = _f ("can't find file: `%s'", fn);
- e += " ";
- e += _f ("(load path: `%s')", global_path.str ());
- error (e);
- }
- else
- progress_indication ("[" + s );
+ return ly_str02scm (gulp_file_to_string (ly_scm2string (fn)).ch_C());
+}
- Simple_file_storage f(s);
- SCM result = ly_str02scm (f.ch_C());
- progress_indication ("]");
- return result;
+/**
+ Read a file, and shove it down GUILE. GUILE also has file read
+ functions, but you can't fiddle with the path of those.
+ */
+void
+read_lily_scm_file (String fn)
+{
+ gh_eval_str ((char *) gulp_file_to_string (fn).ch_C());
}
+
void
ly_display_scm (SCM s)
{
unsmob_element (gh_car (s))->handle_broken_dependencies ();
}
handle_broken_dependencies ();
- progress_indication ( _f("Element count %d.", count + element_count()));
+
+ if (verbose_global_b)
+ progress_indication ( _f("Element count %d.", count + element_count()));
for (int i=0; i < broken_into_l_arr_.size (); i++)
{
Line_of_score *line_l = dynamic_cast<Line_of_score*> (broken_into_l_arr_[i]);
- progress_indication ("[");
+ if (verbose_global_b)
+ progress_indication ("[");
line_l->post_processing ();
- progress_indication (to_str (i));
- progress_indication ("]");
+
+ if (verbose_global_b)
+ {
+ progress_indication (to_str (i));
+ progress_indication ("]");
+ }
}
}
for (SCM s = get_elt_pointer ("all-elements"); gh_pair_p (s); s = gh_cdr (s))
unsmob_element (gh_car (s))->discretionary_processing ();
- progress_indication ( _f("Element count %d ", element_count ()));
+ if(verbose_global_b)
+ progress_indication ( _f("Element count %d ", element_count ()));
for (SCM s = get_elt_pointer ("all-elements"); gh_pair_p (s); s = gh_cdr (s))
for (SCM s = get_elt_pointer ("all-elements"); gh_pair_p (s); s = gh_cdr (s))
{
Score_element* sc = unsmob_element (gh_car (s));
- sc->calculate_dependencies (PRECALCED, PRECALCING, &Score_element::before_line_breaking);
+ sc->calculate_dependencies (PRECALCED, PRECALCING, ly_symbol2scm ("before-line-breaking-callback"));
}
progress_indication ("\n" + _ ("Calculating column positions...") + " " );
gh_pair_p (s); s = gh_cdr (s))
{
Score_element* sc = unsmob_element (gh_car (s));
- sc->calculate_dependencies (POSTCALCED, POSTCALCING, &Score_element::after_line_breaking);
+ sc->calculate_dependencies (POSTCALCED, POSTCALCING,
+ ly_symbol2scm ("after-line-breaking-callback"));
}
Interval i(extent(Y_AXIS));
void
Paper_score::process ()
{
- progress_indication ( _f("Element count %d ", line_l_->element_count ()));
+ if (verbose_global_b)
+ progress_indication ( _f("Element count %d ", line_l_->element_count ()));
+
progress_indication (_ ("Preprocessing elements...") + " ");
for (int i =0; i < audio_staff_l_arr_.size (); i++)
{
Audio_staff *s = audio_staff_l_arr_[i];
- progress_indication ("[" + to_str (i)) ;
+ if(verbose_global_b)
+ progress_indication ("[" + to_str (i)) ;
/*
Aargh, let's hear it for the MIDI standard.
if (channel == 9)
channel++;
s->output (midi_stream, channel++);
- progress_indication ("]");
+ if(verbose_global_b)
+ progress_indication ("]");
}
}
Music_output * output = trans_p->get_output_p();
delete trans_p;
- progress_indication (_f ("elapsed time: %.2f seconds", timer.read ()));
+ if(verbose_global_b)
+ progress_indication (_f ("elapsed time: %.2f seconds", timer.read ()));
output->header_l_ = header_p_;
output->origin_str_ = location_str();