Esempio n. 1
0
        static void Main(string[] args)
        {
            Mozart mozart = new Mozart("Mozart");
            Piano  piano  = new Piano();

            Console.Title = "♪♪♪♪";

            mozart.MakeNewSong();
            mozart.Play(piano);
        }
Esempio n. 2
0
        //sends the audio files to the piano to play
        public void Play(Piano piano)
        {
            string songPath;

            for (int i = 0; i < vals.Length; i++)
            {
                //Run Miniuette
                if (i < 16)
                {
                    songPath = Directory.GetCurrentDirectory() + @"\SoundsFiles\M\M" + vals[i] + ".wav";
                    piano.PlayMusic(songPath);
                }
                //Run Trio
                else
                {
                    songPath = Directory.GetCurrentDirectory() + @"C:\Users\seje_\Source\Repos\WizzyVeigar\H1_Opgaver\Mozart\SoundsFiles\T\T" + vals[i] + ".wav";
                    piano.PlayMusic(songPath);
                }
            }
        }