Ejemplo n.º 1
0
        public override void Init(double sampleRate)
        {
            SampleRate = sampleRate;

            Component.Init(sampleRate);

            if (IsStereo)
            {
                RightComponent.Init(sampleRate);
            }
        }
Ejemplo n.º 2
0
        public override void Init(double sampleRate)
        {
            base.Init(sampleRate);

            Envelope.Init(sampleRate);
            Lfo.Init(sampleRate);

//			lfoAmpGain =
//				1 + Dx7Lfo.LfoAmpModSensTable[LfoAmpModSens] * (ControllerModVal + LfoAmpModDepth / 99.0);
            lfoAmpGain =
                (double)LfoAmpModSens / 3.0 * (ControllerModVal + (double)LfoAmpModDepth / 99.0);
//			DebugConsole.WriteLine(lfoAmpGain);
            lfoPitchGain =
                1 + Dx7Lfo.LfoPitchModSensTable[LfoPitchModSens] * (ControllerModVal + (double)LfoPitchModDepth / 99.0);
        }
Ejemplo n.º 3
0
        public sealed override void Init(double sampleRate)
        {
            SampleRate      = sampleRate;
            SampleRateRecip = 1 / sampleRate;

            attackSample = (int)(Attack * SampleRate);
            decaySample  = (int)(Decay * SampleRate);
            onLength     = attackSample + decaySample;

            releaseSample = (int)(Release * SampleRate);

            decayDrop = 1 - Sustain;

            Source.Init(sampleRate);
        }
Ejemplo n.º 4
0
        public override void Init(double sampleRate)
        {
            releaseSample = (int)(Release * sampleRate);

            Source.Init(sampleRate);
        }