Esempio n. 1
0
 public void QuickSetup(int sampleRate, LfoDescriptor lfoInfo)
 {
     _generator = lfoInfo.Generator;
     _delayTime = (int)(sampleRate * lfoInfo.DelayTime);
     Frequency  = lfoInfo.Frequency;
     _increment = _generator.Period * Frequency / sampleRate;
     Depth      = lfoInfo.Depth;
     Reset();
 }
Esempio n. 2
0
 public Lfo()
 {
     CurrentState = LfoState.Delay;
     _generator   = DefaultGenerators.DefaultSine;
     _delayTime   = 0;
     _increment   = 0;
     _phase       = 0;
     Frequency    = 0;
     CurrentState = 0;
     Value        = 0;
     Depth        = 0;
 }