Beispiel #1
0
        private void b_midiPlay_Click(object sender, RoutedEventArgs e)
        {
            print("Play music sequence start.");
            SoundData sd = mkSd();

            WavePicture.sound.mkWave(sd);
            DataZone.mkSong();
            print("step 1/3 done.");
            DataZone.mkSong2();
            print("step 2/3 done.");
            SoundGenerater.Generater.playSong(DataZone._WAVEDATA);
            print("sound compile finished.");
        }
Beispiel #2
0
        private void b_gplay_Click(object sender, RoutedEventArgs e)
        {
            SoundData sd = mkSd();

            WavePicture.sound.mkWave(sd);
            float t = 0.3f;
            int   s = 270;
            int   v = 3;

            SoundGenerater.Generater.play(
                WavePicture.sound.mkHzWave(DataZone.calcHz(57 + v)), t);
            System.Threading.Thread.Sleep(s);
            SoundGenerater.Generater.play(
                WavePicture.sound.mkHzWave(DataZone.calcHz(59 + v)), t);
            System.Threading.Thread.Sleep(s);
            SoundGenerater.Generater.play(
                WavePicture.sound.mkHzWave(DataZone.calcHz(61 + v)), t);
            System.Threading.Thread.Sleep(s);
            SoundGenerater.Generater.play(
                WavePicture.sound.mkHzWave(DataZone.calcHz(62 + v)), t);
            System.Threading.Thread.Sleep(s);
            SoundGenerater.Generater.play(
                WavePicture.sound.mkHzWave(DataZone.calcHz(64 + v)), t);
            System.Threading.Thread.Sleep(s);
            SoundGenerater.Generater.play(
                WavePicture.sound.mkHzWave(DataZone.calcHz(66 + v)), t);
            System.Threading.Thread.Sleep(s);
            SoundGenerater.Generater.play(
                WavePicture.sound.mkHzWave(DataZone.calcHz(68 + v)), t);
            System.Threading.Thread.Sleep(s);
            SoundGenerater.Generater.play(
                WavePicture.sound.mkHzWave(DataZone.calcHz(69 + v)), t);
            System.Threading.Thread.Sleep(s);

            print("play c scale.");
        }