예제 #1
0
 /// <summary>
 /// Sweeps across a filter in quadrature domains (sine and cosine) to find the
 /// frequency response.  Is interesting because this is a simulation of a real filter,
 /// which may be the only way to analyze a black box object that implements IFilter.
 /// </summary>
 public FrequencyResponseFromQuadratureTimeDomain(IFilter Filter,
     double startFreq, double stopFreq, double operateFreq, double runTime, int sampleRate)
 {
     samplerate = (int)sampleRate;
     numPoints = (int)(runTime * operateFreq);
     opFreq = operateFreq;
     sweep = new FrequencySweep(startFreq, stopFreq, 1 / operateFreq, numPoints);
     iFilter = (IFilter)Filter.Clone();
     qFilter = (IFilter)Filter.Clone();
     iFilter.Load(0.0);
     qFilter.Load(1.0);
 }
예제 #2
0
		/// <summary>
		/// Hll = Hrr, Hlr = Hrlの場合。
		/// </summary>
		/// <param name="ll">特性 Hll を持つフィルタ</param>
		/// <param name="lr">特性 Hlr を持つフィルタ</param>
		public CrossStereoFilter(IFilter ll, IFilter lr)
		{
			this.ll = ll;
			this.lr = lr;
			this.rl = (IFilter)lr.Clone();
			this.rr = (IFilter)ll.Clone();
		}
예제 #3
0
 /// <summary>
 /// Hll = Hrr, Hlr = Hrlの場合。
 /// </summary>
 /// <param name="ll">特性 Hll を持つフィルタ</param>
 /// <param name="lr">特性 Hlr を持つフィルタ</param>
 public CrossStereoFilter(IFilter ll, IFilter lr)
 {
     this.ll = ll;
     this.lr = lr;
     this.rl = (IFilter)lr.Clone();
     this.rr = (IFilter)ll.Clone();
 }
예제 #4
0
 void RefreshAutomaticNameTextBox()
 {
     if (userDefinedNameSet)
     {
         return;
     }
     using (var tempFilter = currentFilter.Clone())
     {
         ReadView(tempFilter);
         view.SetNameEditProperties(new NameEditBoxProperties()
         {
             Value    = tempFilter.Name,
             Enabled  = false,
             LinkText = changeLinkText,
         });
     }
 }
예제 #5
0
		/// <summary>
		/// Hl = Hr の場合。
		/// </summary>
		/// <param name="l">特性 Hl を持つフィルタ</param>
		public StereoFilter(IFilter l)
		{
			this.l = l;
			this.r = (IFilter)l.Clone();
		}
예제 #6
0
 public FilteredPipe(Queue input, Queue output, IFilter filter)
     : this(input, output, filter, (IFilter)filter.Clone())
 {
 }
예제 #7
0
 /// <summary>
 /// Hl = Hr の場合。
 /// </summary>
 /// <param name="l">特性 Hl を持つフィルタ</param>
 public StereoFilter(IFilter l)
 {
     this.l = l;
     this.r = (IFilter)l.Clone();
 }
예제 #8
0
		public FilteredPipe(Queue input, Queue output, IFilter filter)
			: this(input, output, filter, (IFilter)filter.Clone())
		{
		}