Browse Source

Remove useless and mostly unused vsa from tal plugins

tags/2018-04-16
falkTX 10 years ago
parent
commit
68fce9a70a
21 changed files with 17 additions and 58 deletions
  1. +2
    -3
      ports/tal-dub-3/source/Engine/DCBlock.h
  2. +0
    -4
      ports/tal-noisemaker/source/Effects/Chorus/Chorus.h
  3. +2
    -3
      ports/tal-noisemaker/source/Effects/Chorus/DCBlock.h
  4. +1
    -3
      ports/tal-noisemaker/source/Effects/Chorus/OnePoleLP.h
  5. +2
    -3
      ports/tal-noisemaker/source/Effects/Delay/HighPass.h
  6. +0
    -2
      ports/tal-noisemaker/source/Effects/Delay/HighShelf.h
  7. +0
    -2
      ports/tal-noisemaker/source/Effects/Delay/LowShelf.h
  8. +2
    -3
      ports/tal-noisemaker/source/Engine/HighPass.h
  9. +0
    -2
      ports/tal-reverb-2/source/Engine/HighShelf.h
  10. +0
    -2
      ports/tal-reverb-2/source/Engine/LowShelf.h
  11. +0
    -2
      ports/tal-reverb-2/source/Engine/PeakEq.h
  12. +0
    -2
      ports/tal-reverb-3/source/Engine/HighShelf.h
  13. +0
    -2
      ports/tal-reverb-3/source/Engine/LowShelf.h
  14. +0
    -2
      ports/tal-reverb-3/source/Engine/PeakEq.h
  15. +2
    -3
      ports/tal-vocoder-2/source/engine/HighPass.h
  16. +0
    -4
      ports/tal-vocoder-2/source/engine/chorus/Chorus.h
  17. +2
    -3
      ports/tal-vocoder-2/source/engine/chorus/DCBlock.h
  18. +1
    -3
      ports/tal-vocoder-2/source/engine/chorus/OnePoleLP.h
  19. +2
    -3
      ports/tal-vocoder-2/source/engine/harmonic/DCBlock.h
  20. +0
    -4
      ports/tal-vocoder-2/source/engine/harmonic/Harmonic.h
  21. +1
    -3
      ports/tal-vocoder-2/source/engine/harmonic/OnePoleLP.h

+ 2
- 3
ports/tal-dub-3/source/Engine/DCBlock.h View File

@@ -17,18 +17,17 @@ to build up inside recursive structures
class DCBlock
{
public:
float inputs, outputs, lastOutput, vsa;
float inputs, outputs, lastOutput;
DCBlock()
{
lastOutput = inputs = outputs = 0.0f;
vsa= 1.0f/4294967295.0f; // Very small amount (Denormal Fix)
}
inline void tick(float *sample, float cutoff)
{
outputs = *sample-inputs+(0.9999f-cutoff*0.4f)*outputs;
inputs = *sample+vsa;
inputs = *sample;
lastOutput = outputs;
*sample = lastOutput;
}


+ 0
- 4
ports/tal-noisemaker/source/Effects/Chorus/Chorus.h View File

@@ -55,8 +55,6 @@ public:
// lfo
float lfoPhase, lfoStepSize, lfoSign;
float vsa; // Very small amount (Denormal Fix)
Chorus(float sampleRate, float phase, float rate, float delayTime)
{
this->rate= rate;
@@ -92,8 +90,6 @@ public:
writePtr = delayLineStart + delayLineLength -1;
delayLineOutput = 0.0f;
lp = new OnePoleLP();
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
~Chorus()


+ 2
- 3
ports/tal-noisemaker/source/Effects/Chorus/DCBlock.h View File

@@ -27,12 +27,11 @@
class DCBlock
{
public:
float inputs, outputs, lastOutput, vsa;
float inputs, outputs, lastOutput;
DCBlock()
{
lastOutput = inputs = outputs = 0.0f;
vsa= 0.0000001f; // Very small amount (Denormal Fix)
}
~DCBlock()
@@ -42,7 +41,7 @@ class DCBlock
inline void tick(float *sample, float cutoff)
{
outputs = *sample-inputs+(0.999f-cutoff*0.4f)*outputs;
inputs = *sample+vsa;
inputs = *sample;
lastOutput = outputs;
*sample = lastOutput;
}


+ 1
- 3
ports/tal-noisemaker/source/Effects/Chorus/OnePoleLP.h View File

@@ -28,12 +28,10 @@ class OnePoleLP
{
public:
float inputs, outputs, lastOutput;
float vsa; // Very small amount (Denormal Fix)
OnePoleLP()
{
lastOutput = inputs = outputs = 0.0f;
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
~OnePoleLP()
@@ -43,7 +41,7 @@ class OnePoleLP
void tick(float *sample, float cutoff)
{
float p = (cutoff*0.98f)*(cutoff*0.98f)*(cutoff*0.98f)*(cutoff*0.98f);
outputs = (1.0f-p)*(*sample) + p*outputs+vsa;
outputs = (1.0f-p)*(*sample) + p*outputs;
*sample= outputs;
}
};


+ 2
- 3
ports/tal-noisemaker/source/Effects/Delay/HighPass.h View File

@@ -27,7 +27,7 @@
class HighPass
{
public:
float inputs, outputs, lastOutput, vsa;
float inputs, outputs, lastOutput;
float cutoff;
@@ -35,7 +35,6 @@ class HighPass
{
cutoff = 1.0f;
lastOutput = inputs = outputs = 0.0f;
vsa= 1.0f/4294967295.0f; // Very small amount (Denormal Fix)
}
~HighPass()
@@ -50,7 +49,7 @@ class HighPass
inline void tick(float *sample)
{
outputs = *sample-inputs+cutoff*outputs;
inputs = *sample + vsa;
inputs = *sample;
lastOutput = outputs;
*sample = lastOutput;
}


+ 0
- 2
ports/tal-noisemaker/source/Effects/Delay/HighShelf.h View File

@@ -43,7 +43,6 @@ public:
float a, w0, q, s, alpha;
float cosValue, sqrtValue;
float vsa; // Very small amount (Denormal Fix)
float dBgain, freq;
@@ -62,7 +61,6 @@ public:
q = dBgain = freq = 0.0f;
s = 2.0f;
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
// gain [0..1], q[0..1], freq[0..44100]


+ 0
- 2
ports/tal-noisemaker/source/Effects/Delay/LowShelf.h View File

@@ -43,7 +43,6 @@ public:
float a, w0, q, s, alpha;
float cosValue, sqrtValue;
float vsa; // Very small amount (Denormal Fix)
float dBgain, freq;
@@ -63,7 +62,6 @@ public:
q = dBgain = freq = 0.0f;
s = 1.0f;
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
// gain [0..1], q[0..1], freq[0..44100]


+ 2
- 3
ports/tal-noisemaker/source/Engine/HighPass.h View File

@@ -27,7 +27,7 @@
class HighPass
{
public:
float inputs, outputs, lastOutput, vsa;
float inputs, outputs, lastOutput;
float cutoff;
@@ -35,7 +35,6 @@ class HighPass
{
cutoff = 1.0f;
lastOutput = inputs = outputs = 0.0f;
vsa= 1.0f/4294967295.0f; // Very small amount (Denormal Fix)
}
~HighPass()
@@ -50,7 +49,7 @@ class HighPass
inline void tick(float *sample)
{
outputs = *sample-inputs+cutoff*outputs;
inputs = *sample + vsa;
inputs = *sample;
lastOutput = outputs;
*sample = lastOutput;
}


+ 0
- 2
ports/tal-reverb-2/source/Engine/HighShelf.h View File

@@ -28,7 +28,6 @@ public:
float a, w0, q, s, alpha;
float cosValue, sqrtValue;
float vsa; // Very small amount (Denormal Fix)
float dBgain, freq;
@@ -47,7 +46,6 @@ public:
q = dBgain = freq = 0.0f;
s = 2.0f;
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
// gain [0..1], q[0..1], freq[0..44100]


+ 0
- 2
ports/tal-reverb-2/source/Engine/LowShelf.h View File

@@ -28,7 +28,6 @@ public:
float a, w0, q, s, alpha;
float cosValue, sqrtValue;
float vsa; // Very small amount (Denormal Fix)
float dBgain, freq;
@@ -48,7 +47,6 @@ public:
q = dBgain = freq = 0.0f;
s = 1.0f;
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
// gain [0..1], q[0..1], freq[0..44100]


+ 0
- 2
ports/tal-reverb-2/source/Engine/PeakEq.h View File

@@ -21,7 +21,6 @@ public:
float a, w0, q, s, alpha;
float cosValue, sqrtValue;
float vsa; // Very small amount (Denormal Fix)
float dBgain, freq;
@@ -40,7 +39,6 @@ public:
q = dBgain = freq = 0.0f;
s = 2.0f;
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
// gain [0..1], q[0..1], freq[0..44100]


+ 0
- 2
ports/tal-reverb-3/source/Engine/HighShelf.h View File

@@ -43,7 +43,6 @@ public:
float a, w0, q, s, alpha;
float cosValue, sqrtValue;
float vsa; // Very small amount (Denormal Fix)
float dBgain, freq;
@@ -62,7 +61,6 @@ public:
q = dBgain = freq = 0.0f;
s = 2.0f;
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
// gain [0..1], q[0..1], freq[0..44100]


+ 0
- 2
ports/tal-reverb-3/source/Engine/LowShelf.h View File

@@ -43,7 +43,6 @@ public:
float a, w0, q, s, alpha;
float cosValue, sqrtValue;
float vsa; // Very small amount (Denormal Fix)
float dBgain, freq;
@@ -63,7 +62,6 @@ public:
q = dBgain = freq = 0.0f;
s = 1.0f;
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
// gain [0..1], q[0..1], freq[0..44100]


+ 0
- 2
ports/tal-reverb-3/source/Engine/PeakEq.h View File

@@ -21,7 +21,6 @@ public:
float a, w0, q, s, alpha;
float cosValue, sqrtValue;
float vsa; // Very small amount (Denormal Fix)
float dBgain, freq;
@@ -40,7 +39,6 @@ public:
q = dBgain = freq = 0.0f;
s = 2.0f;
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
// gain [0..1], q[0..1], freq[0..44100]


+ 2
- 3
ports/tal-vocoder-2/source/engine/HighPass.h View File

@@ -27,7 +27,7 @@
class HighPass
{
public:
float inputs, outputs, lastOutput, vsa;
float inputs, outputs, lastOutput;
float cutoff;
@@ -35,7 +35,6 @@ class HighPass
{
cutoff = 1.0f;
lastOutput = inputs = outputs = 0.0f;
vsa= 1.0f/4294967295.0f; // Very small amount (Denormal Fix)
}
~HighPass()
@@ -50,7 +49,7 @@ class HighPass
inline void tick(float *sample)
{
outputs = *sample-inputs+cutoff*outputs;
inputs = *sample + vsa;
inputs = *sample;
lastOutput = outputs;
*sample = lastOutput;
}


+ 0
- 4
ports/tal-vocoder-2/source/engine/chorus/Chorus.h View File

@@ -53,8 +53,6 @@ public:
// lfo
float lfoPhase, lfoStepSize, lfoSign;
float vsa; // Very small amount (Denormal Fix)
Chorus(float sampleRate, float phase, float rate, float delayTime)
{
this->rate= rate;
@@ -87,8 +85,6 @@ public:
writePtr = delayLineStart + delayLineLength -1;
delayLineOutput = 0.0f;
lp = new OnePoleLP();
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
~Chorus()


+ 2
- 3
ports/tal-vocoder-2/source/engine/chorus/DCBlock.h View File

@@ -27,12 +27,11 @@
class DCBlock
{
public:
float inputs, outputs, lastOutput, vsa;
float inputs, outputs, lastOutput;
DCBlock()
{
lastOutput = inputs = outputs = 0.0f;
vsa= 0.0000001f; // Very small amount (Denormal Fix)
}
~DCBlock()
@@ -42,7 +41,7 @@ class DCBlock
inline void tick(float *sample, float cutoff)
{
outputs = *sample-inputs+(0.999f-cutoff*0.4f)*outputs;
inputs = *sample+vsa;
inputs = *sample;
lastOutput = outputs;
*sample = lastOutput;
}


+ 1
- 3
ports/tal-vocoder-2/source/engine/chorus/OnePoleLP.h View File

@@ -28,12 +28,10 @@ class OnePoleLP
{
public:
float inputs, outputs, lastOutput;
float vsa; // Very small amount (Denormal Fix)
OnePoleLP()
{
lastOutput = inputs = outputs = 0.0f;
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
~OnePoleLP()
@@ -43,7 +41,7 @@ class OnePoleLP
void tick(float *sample, float cutoff)
{
float p = (cutoff*0.98f)*(cutoff*0.98f)*(cutoff*0.98f)*(cutoff*0.98f);
outputs = (1.0f-p)*(*sample) + p*outputs+vsa;
outputs = (1.0f-p)*(*sample) + p*outputs;
*sample= outputs;
}
};


+ 2
- 3
ports/tal-vocoder-2/source/engine/harmonic/DCBlock.h View File

@@ -15,18 +15,17 @@ to build up inside recursive structures
class DCBlock
{
public:
float inputs, outputs, lastOutput, vsa;
float inputs, outputs, lastOutput;
DCBlock()
{
lastOutput = inputs = outputs = 0.0f;
vsa= 0.0000001f; // Very small amount (Denormal Fix)
}
inline void tick(float *sample, float cutoff)
{
outputs = *sample-inputs+(0.999f-cutoff*0.4f)*outputs;
inputs = *sample+vsa;
inputs = *sample;
lastOutput = outputs;
*sample = lastOutput;
}


+ 0
- 4
ports/tal-vocoder-2/source/engine/harmonic/Harmonic.h View File

@@ -53,8 +53,6 @@ public:
// lfo
float lfoPhase, lfoStepSize, lfoSign;
float vsa; // Very small amount (Denormal Fix)
Harmonic(float sampleRate, float phase, float rate, float delayTime)
{
this->rate= rate;
@@ -87,8 +85,6 @@ public:
writePtr= delayLineStart + delayLineLength -1;
delayLineOutput= 0.0f;
lp= new OnePoleLP();
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
float process(float *sample)


+ 1
- 3
ports/tal-vocoder-2/source/engine/harmonic/OnePoleLP.h View File

@@ -28,19 +28,17 @@ class OnePoleLP
{
public:
float inputs, outputs, lastOutput;
float vsa; // Very small amount (Denormal Fix)
OnePoleLP()
{
lastOutput = inputs = outputs = 0.0f;
vsa= (1.0f/4294967295.0f); // Very small amount (Denormal Fix)
}
inline void tick(float *sample, float cutoff)
{
float p = (cutoff*0.98f)*(cutoff*0.98f)*(cutoff*0.98f)*(cutoff*0.98f);
outputs = (1.0f-p)*(*sample) + p*outputs+vsa;
outputs = (1.0f-p)*(*sample) + p*outputs;
*sample= outputs;
}
};


Loading…
Cancel
Save