Ejemplo n.º 1
0
        public void CompileFile(string path)
        {
            var    BaseName          = Path.GetFileNameWithoutExtension(path);
            var    SongFileDirectory = Path.GetDirectoryName(path);
            string OutputFilename    = Path.Combine(SongFileDirectory, BaseName + ".s98");

            Console.WriteLine($"InputFile:{path}");

            ParseMmlFile(path);
            if (Error.HasError)
            {
                Error.ShowMessage();
                return;
            }

            // Song = SongTest.MakeTestSong();
            var Driver = new LogDriver();

            Driver.Make(OutputFilename, Song);

            ShowResult();

            if (Play)
            {
                PlaySong(OutputFilename);
            }
        }