void RunStudiesSoundCommand_Executed( object sender, EventArgs e ) {
   List<ISoundWaveGenerator> wavs = new List<ISoundWaveGenerator>();
   StudyModels.ToList().ForEach( x => {
     var soundWave = new OscillationSoundWave();
     soundWave.SoundWaveData = x.PointModels.Select( y => y.Frequency + 200 );
     wavs.Add( soundWave );
   } );
   SoundWaves = wavs;
   OnSoundLoaded( this, EventArgs.Empty );
   _DispatchTimer.Start();
 }
Beispiel #2
0
        void RunStudiesSoundCommand_Executed(object sender, EventArgs e)
        {
            List <ISoundWaveGenerator> wavs = new List <ISoundWaveGenerator>();

            StudyModels.ToList().ForEach(x => {
                var soundWave           = new OscillationSoundWave();
                soundWave.SoundWaveData = x.PointModels.Select(y => y.Frequency + 200);
                wavs.Add(soundWave);
            });
            SoundWaves = wavs;
            OnSoundLoaded(this, EventArgs.Empty);
            _DispatchTimer.Start();
        }