+*******
+pl 34
+ - better midi syntax.
+ - --midi,-M option.
+ - preliminary midi2mudela (/mudela2midi) converter: m2m (JCN)
+Internal
+ - m2m sources: midi-*; (JCN)
+ - new Midi_walker, fixes several MIDI bugs.
+ - junked Midi_staff, Staff_column children, Midi_walker
+ - Midi_output
+
*******
pl33
Examples
- Swedish notenames (MB)
+
+pl pre33-2
+
+Bugfix
+ - midi pitch
+
Features
- Jan's patches, see below
Bugfix
#include "inputscore.hh"
#include "score.hh"
#include "string.hh"
+#include "paperdef.hh"
+#include "debug.hh"
static Array<Input_score*> score_array_global;
+String default_out_fn = "lelie";
-static String outfn="lelie.out";
-
-// todo: check we don't overwrite default output.
void
do_scores()
{
for (int i=0; i < score_array_global.size(); i++) {
- Score * s_p = score_array_global[i]->parse();
- delete score_array_global[i];
+ Input_score* &is_p = score_array_global[i];
+ if (is_p->errorlevel_i_) {
+ warning("Score contains errors. Will not process it. ",
+ is_p->defined_ch_c_l_);
+ delete is_p;
+ continue;
+ }
+
+ if (only_midi) {
+ delete is_p->paper_p_;
+ is_p->paper_p_ = 0;
+ }
+
+ Score * s_p = is_p->parse();
+ delete is_p;
s_p->print ();
s_p->process();
- s_p->output(outfn);
- s_p->midi();
delete s_p;
}
score_array_global.set_size(0);
score_array_global.push(s);
}
-#if 0
-Input_score*
-current_iscore_l()
-{
- if ( score_array_global.size() )
- return score_array_global.top(); // UGH
- else
- return 0;
-}
-#endif
-
void
set_default_output(String s)
{
- outfn = s;
+ default_out_fn = s;
}