public static void PlayParse(this OutputDevice dev, DebugDelegate d, params string[] songparts)
        {
            var song = string.Join(Environment.NewLine, songparts);
            var msgs = ParseMusicTokens.Quick(d, song, "TestParse");

            PlayMsgs(dev, msgs);
        }
示例#2
0
 static bool ParsePlay(DebugDelegate d, string song_file, ref int c, bool issimpleparse = false)
 {
     setd(d);
     if (ParseMusicTokens.exists(ref song_file))
     {
         //var song = issimpleparse ? Parse.FromFile(d, song_file) : ParseMusicTokens.FromFile(d, song_file);
         var song = ParseMusicTokens.FromFile(d, song_file);
         if (song.Count > 0)
         {
             Test.PlayMsgs(true, song);
             c++;
         }
         else
         {
             debug("No song data obtainable from: " + song_file);
         }
         return(true);
     }
     return(false);
 }