Esempio n. 1
0
		public override IFilter GetFilter()
		{
			int len = this.Length;
			Mixer.Tuple[] tuples = new Mixer.Tuple[len];
			for(int i=0; i<len; ++i)
			{
				double gain = this.GetGain(i);
				FilterGenerator gen = this.GetSubfilter(i);
				IFilter filter = gen.GetFilter();
				tuples[i] = new Mixer.Tuple(filter, gain);
			}
			return new Mixer(tuples);
		}
Esempio n. 2
0
        public override IFilter GetFilter()
        {
            int len = this.Length;

            Mixer.Tuple[] tuples = new Mixer.Tuple[len];
            for (int i = 0; i < len; ++i)
            {
                double          gain   = this.GetGain(i);
                FilterGenerator gen    = this.GetSubfilter(i);
                IFilter         filter = gen.GetFilter();
                tuples[i] = new Mixer.Tuple(filter, gain);
            }
            return(new Mixer(tuples));
        }