Beispiel #1
0
        private WaveStream GetWaveStream(string stringSynth, string stringMusic)
        {
            try {
                Tune <INote> tune = PBScore.Tune;

                progressBar1.Maximum = tune.Count;
                progressBar1.Value   = 0;
                progressBar1.Visible = true;

                var synth      = Synthesizer.ParseSynthesizer(stringSynth);
                var waveStream = new WaveStream(tune, synth, SetProgressBarValue);
                return(waveStream);
            } finally {
                progressBar1.Visible = false;
            }
        }