Ejemplo 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);
		}
Ejemplo 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));
        }