/**
         * simple test of generic Repeat feature - on a SoundEvent. Not directly applied on SampleSoundEvent here.
         */
        public SoundEvent Test_Repeat()
        {
            SoundEvent soundScript = new SoundEvent("Test_Repeat");
            // try a once event
            SampleSoundEvent evDing = new SampleSoundEvent("ambient-echoing-ding.wav");
            evDing.Repeat = 1;
            soundScript.AddEvent(1, evDing);

            SampleSoundEvent evDing2 = new SampleSoundEvent(evDing);
            SoundEvent dingHolderEv = new SoundEvent();
            dingHolderEv.AddEvent(0, evDing2);
            dingHolderEv.Repeat = 10;
            soundScript.AddEvent(5, dingHolderEv);

            soundScript.UpdateDuration(60);
            return soundScript;
        }
 /** oscillator with varying frequency */
 public SoundEvent Test_OscFrequency()
 {
     SoundEvent soundScript = new SoundEvent("Test_OscFrequency");
     OscSoundEvent oscEv = new OscSoundEvent(320);
     oscEv.SetOscType(OscSoundEvent.OscType.SINE);
     //oscEv.SetParameter((int)FMOD.DSP_OSCILLATOR.TYPE, 1);
     oscEv.Amplitude = 0.15;
     oscEv.UpdateDuration(6);
     SignalSoundEvent sEv = new SignalSoundEvent(SignalSoundEvent.Modifier.AMPLITUDE,
         new Signal(new List<double>() { 0, 0,  5.5,  1.0, 6.0, 0, 7.0, 0 }));
     SignalSoundEvent sEv2 = new SignalSoundEvent(SignalSoundEvent.Modifier.DSP_PARAM,
         new Signal(new List<double>() { 0, 320, 1.0, 543, 2, 109, 2.5, 737.3, 6.0, 210 }), (int)FMOD.DSP_OSCILLATOR.RATE);
     oscEv.AddEvent(0.0, sEv);
     oscEv.AddEvent(0.0, sEv2);
     soundScript.AddEvent(1.0, oscEv);
     //soundScript.AddEvent(3.0, new OscSoundEvent(oscEv));
     soundScript.UpdateDuration(10);
     return soundScript;
 }
        /**
         * simple test of Repeat feature for SampleSoundEvent - using the better audio-engine looping instead!
         * there is an audible difference - this one better than Test_Repeat.
         */
        public SoundEvent Test_RepeatForSampleSoundEvents()
        {
            SoundEvent soundScript = new SoundEvent("Test_RepeatForSampleSoundEvents");
            // try a once event
            SampleSoundEvent evDing = new SampleSoundEvent("ding.wav");
            evDing.Repeat = 1;
            soundScript.AddEvent(1, evDing);

            SampleSoundEvent evDing2 = new SampleSoundEvent(evDing);
            evDing2.Repeat = 10;
            soundScript.AddEvent(5, evDing2);

            soundScript.UpdateDuration(60);
            return soundScript;
        }