X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=midi2ly%2Fmain.cc;h=9cc78171d8027b62e0a2cad7702aeb7c1ad97698;hb=5f59b94d95987c866416d07490ce964b0f2d7817;hp=0a6716d1659015c2fed8df7efd00f03fbf2a16a8;hpb=3a7b6b3cbd35499a0993d46c302f37853f1b9c51;p=lilypond.git diff --git a/midi2ly/main.cc b/midi2ly/main.cc index 0a6716d165..9cc78171d8 100644 --- a/midi2ly/main.cc +++ b/midi2ly/main.cc @@ -16,19 +16,20 @@ #include "midi2ly-global.hh" #include "midi-score-parser.hh" -#include "mudela-item.hh" -#include "mudela-score.hh" +#include "lilypond-item.hh" +#include "lilypond-score.hh" #if HAVE_GETTEXT #include #endif +bool testing_level_global; // ugh String filename_str_g; // ugh -Mudela_score* mudela_score_l_g = 0; +Lilypond_score* lilypond_score_l_g = 0; bool no_timestamps_b_g = false; bool no_rests_b_g = false; @@ -59,7 +60,7 @@ version () "midi2ly"); cout << endl; - cout << _f ("Copyright (c) %s by", "1996--2000"); + cout << _f ("Copyright (c) %s by", "1996--2001"); cout << "Han-Wen Nienhuys \n" << "Jan Nieuwenhuizen \n"; } @@ -113,7 +114,7 @@ usage() { cout << _f ("Usage: %s [OPTION]... [FILE]", "midi2ly"); cout << '\n'; - cout << _ ("Translate MIDI-file to mudela"); + cout << _ ("Translate MIDI-file to lilypond"); cout << '\n'; cout << '\n'; cout << _ ("Options:"); @@ -154,7 +155,7 @@ main (int argc_i, char* argv_sz_a[]) #endif bool key_override_b = false; - Mudela_key key (0, 0); + Lilypond_key key (0, 0); Getopt_long getopt_long (argc_i, argv_sz_a, long_option_init_a); @@ -254,22 +255,22 @@ main (int argc_i, char* argv_sz_a[]) show_settings (); filename_str_g = arg_sz; Midi_score_parser midi_parser; - Mudela_score* score_p = midi_parser.parse (arg_sz, &source); + Lilypond_score* score_p = midi_parser.parse (arg_sz, &source); if (!score_p) return 1; // if given on command line: override - if (key_override_b || !score_p->mudela_key_l_) - score_p->mudela_key_l_ = &key; - mudela_score_l_g = score_p; + if (key_override_b || !score_p->lilypond_key_l_) + score_p->lilypond_key_l_ = &key; + lilypond_score_l_g = score_p; score_p->process(); if (!output_str.length_i ()) { - String d, dir, base, ext; - split_path (arg_sz, d, dir, base, ext); - output_str = base + ext + ".ly"; + Path p = split_path (arg_sz); + + output_str = p.base + p.ext + ".ly"; } score_p->output (output_str);