예제 #1
0
        void Initialize()
        {
            combFilters    = new Audial.Utils.CombFilter[4];
            combFilters[0] = new Audial.Utils.CombFilter(29.7f, 1);
            combFilters[1] = new Audial.Utils.CombFilter(37.1f, 1);
            combFilters[2] = new Audial.Utils.CombFilter(41.1f, 1);
            combFilters[3] = new Audial.Utils.CombFilter(43.7f, 1);

            Callibrate();

            allPassFilters    = new Audial.Utils.AllPassFilter[2];
            allPassFilters[0] = new Audial.Utils.AllPassFilter(5.0f, 1);
            allPassFilters[0].SetGainByDecayTime(1.683f);
            allPassFilters[1] = new Audial.Utils.AllPassFilter(1.7f, 1);
            allPassFilters[1].SetGainByDecayTime(2.232f);
        }
예제 #2
0
 void Awake()
 {
     sampleRate = Audial.Utils.Settings.SampleRate = AudioSettings.outputSampleRate;
     combFilter = new Audial.Utils.CombFilter(DelayLengthMS, 0.5f);
     ChangeDelay();
 }
예제 #3
0
 void Awake()
 {
     sampleRate = Audial.Utils.Settings.SampleRate = AudioSettings.outputSampleRate;
     combFilter = new Audial.Utils.CombFilter(DelayLengthMS,0.5f);
     ChangeDelay();
 }