mirror of
https://github.com/airwindows/airwindows.git
synced 2026-05-15 14:16:00 -06:00
High Impact shows up in Consolidated if it's spelled HighImpact
This commit is contained in:
parent
ad8ecb58b2
commit
1e0fd756ed
605 changed files with 117800 additions and 14921 deletions
|
|
@ -2164,7 +2164,7 @@ Thing is, the person who’d requested this is the same one who requested Hermep
|
|||
|
||||
So, now Hermepass has a companion, HermeTrim. This is exactly the same as EveryTrim, only it’s 1.5 dB plus and minus. It’s more a mastering tool: make tiny little tweaks to get the master just right. EveryTrim will sound just as good, but this one’s geared towards non-mixing purposes. Hope you like it.
|
||||
|
||||
############ High Impact is distorted grit and punch without fatness. This is also another little window into Airwindows history, as this is the point where I began putting out the for-pay plugins for free through Patreon. The post is presented in its entirety as a picture of where I was at on April 9, 2017. By now I have put out more than 300 plugins and I'm still going, but this was when I'd done 47 and all the most sought-after ones were still being held back as goals… here is the original post.
|
||||
############ HighImpact is distorted grit and punch without fatness. This is also another little window into Airwindows history, as this is the point where I began putting out the for-pay plugins for free through Patreon. The post is presented in its entirety as a picture of where I was at on April 9, 2017. By now I have put out more than 300 plugins and I'm still going, but this was when I'd done 47 and all the most sought-after ones were still being held back as goals… here is the original post.
|
||||
|
||||
Sometimes it’s all in the name.
|
||||
|
||||
|
|
|
|||
|
|
@ -33,8 +33,10 @@ add_airwindows_plugin(BigAmp)
|
|||
add_airwindows_plugin(Biquad)
|
||||
add_airwindows_plugin(Biquad2)
|
||||
add_airwindows_plugin(BiquadDouble)
|
||||
add_airwindows_plugin(BiquadHiLo)
|
||||
add_airwindows_plugin(BiquadNonLin)
|
||||
add_airwindows_plugin(BiquadOneHalf)
|
||||
add_airwindows_plugin(BiquadStack)
|
||||
add_airwindows_plugin(BiquadTriple)
|
||||
add_airwindows_plugin(Bite)
|
||||
add_airwindows_plugin(BitGlitter)
|
||||
|
|
@ -110,8 +112,6 @@ add_airwindows_plugin(ConsoleMDBuss)
|
|||
add_airwindows_plugin(ConsoleMDChannel)
|
||||
add_airwindows_plugin(ConsoleXBuss)
|
||||
add_airwindows_plugin(ConsoleXChannel)
|
||||
add_airwindows_plugin(ConsoleXSubIn)
|
||||
add_airwindows_plugin(ConsoleXSubOut)
|
||||
add_airwindows_plugin(ContentHideD)
|
||||
add_airwindows_plugin(Creature)
|
||||
add_airwindows_plugin(CrickBass)
|
||||
|
|
@ -138,6 +138,7 @@ add_airwindows_plugin(Dirt)
|
|||
add_airwindows_plugin(Discontinuity)
|
||||
add_airwindows_plugin(Distance)
|
||||
add_airwindows_plugin(Distance2)
|
||||
add_airwindows_plugin(Distance3)
|
||||
add_airwindows_plugin(Distortion)
|
||||
add_airwindows_plugin(Doublelay)
|
||||
add_airwindows_plugin(DoublePaul)
|
||||
|
|
@ -259,6 +260,7 @@ add_airwindows_plugin(OrbitKick)
|
|||
add_airwindows_plugin(Overheads)
|
||||
add_airwindows_plugin(Pafnuty)
|
||||
add_airwindows_plugin(Pafnuty2)
|
||||
add_airwindows_plugin(Parametric)
|
||||
add_airwindows_plugin(PaulDither)
|
||||
add_airwindows_plugin(PaulWide)
|
||||
add_airwindows_plugin(PeaksOnly)
|
||||
|
|
@ -278,6 +280,7 @@ add_airwindows_plugin(PodcastDeluxe)
|
|||
add_airwindows_plugin(Point)
|
||||
add_airwindows_plugin(Pop)
|
||||
add_airwindows_plugin(Pop2)
|
||||
add_airwindows_plugin(Pop3)
|
||||
add_airwindows_plugin(PowerSag)
|
||||
add_airwindows_plugin(PowerSag2)
|
||||
add_airwindows_plugin(Precious)
|
||||
|
|
@ -335,6 +338,7 @@ add_airwindows_plugin(StereoDoubler)
|
|||
add_airwindows_plugin(StereoEnsemble)
|
||||
add_airwindows_plugin(StereoFX)
|
||||
add_airwindows_plugin(Stonefire)
|
||||
add_airwindows_plugin(StoneFireComp)
|
||||
add_airwindows_plugin(StudioTan)
|
||||
add_airwindows_plugin(SubsOnly)
|
||||
add_airwindows_plugin(SubTight)
|
||||
|
|
|
|||
128
plugins/LinuxVST/src/BiquadHiLo/BiquadHiLo.cpp
Executable file
128
plugins/LinuxVST/src/BiquadHiLo/BiquadHiLo.cpp
Executable file
|
|
@ -0,0 +1,128 @@
|
|||
/* ========================================
|
||||
* BiquadHiLo - BiquadHiLo.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __BiquadHiLo_H
|
||||
#include "BiquadHiLo.h"
|
||||
#endif
|
||||
|
||||
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new BiquadHiLo(audioMaster);}
|
||||
|
||||
BiquadHiLo::BiquadHiLo(audioMasterCallback audioMaster) :
|
||||
AudioEffectX(audioMaster, kNumPrograms, kNumParameters)
|
||||
{
|
||||
A = 0.0;
|
||||
B = 0.0;
|
||||
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
//this is reset: values being initialized only once. Startup values, whatever they are.
|
||||
|
||||
_canDo.insert("plugAsChannelInsert"); // plug-in can be used as a channel insert effect.
|
||||
_canDo.insert("plugAsSend"); // plug-in can be used as a send effect.
|
||||
_canDo.insert("x2in2out");
|
||||
setNumInputs(kNumInputs);
|
||||
setNumOutputs(kNumOutputs);
|
||||
setUniqueID(kUniqueId);
|
||||
canProcessReplacing(); // supports output replacing
|
||||
canDoubleReplacing(); // supports double precision processing
|
||||
programsAreChunks(true);
|
||||
vst_strncpy (_programName, "Default", kVstMaxProgNameLen); // default program name
|
||||
}
|
||||
|
||||
BiquadHiLo::~BiquadHiLo() {}
|
||||
VstInt32 BiquadHiLo::getVendorVersion () {return 1000;}
|
||||
void BiquadHiLo::setProgramName(char *name) {vst_strncpy (_programName, name, kVstMaxProgNameLen);}
|
||||
void BiquadHiLo::getProgramName(char *name) {vst_strncpy (name, _programName, kVstMaxProgNameLen);}
|
||||
//airwindows likes to ignore this stuff. Make your own programs, and make a different plugin rather than
|
||||
//trying to do versioning and preventing people from using older versions. Maybe they like the old one!
|
||||
|
||||
static float pinParameter(float data)
|
||||
{
|
||||
if (data < 0.0f) return 0.0f;
|
||||
if (data > 1.0f) return 1.0f;
|
||||
return data;
|
||||
}
|
||||
|
||||
VstInt32 BiquadHiLo::getChunk (void** data, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)calloc(kNumParameters, sizeof(float));
|
||||
chunkData[0] = A;
|
||||
chunkData[1] = B;
|
||||
/* Note: The way this is set up, it will break if you manage to save settings on an Intel
|
||||
machine and load them on a PPC Mac. However, it's fine if you stick to the machine you
|
||||
started with. */
|
||||
|
||||
*data = chunkData;
|
||||
return kNumParameters * sizeof(float);
|
||||
}
|
||||
|
||||
VstInt32 BiquadHiLo::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)data;
|
||||
A = pinParameter(chunkData[0]);
|
||||
B = pinParameter(chunkData[1]);
|
||||
/* We're ignoring byteSize as we found it to be a filthy liar */
|
||||
|
||||
/* calculate any other fields you need here - you could copy in
|
||||
code from setParameter() here. */
|
||||
return 0;
|
||||
}
|
||||
|
||||
void BiquadHiLo::setParameter(VstInt32 index, float value) {
|
||||
switch (index) {
|
||||
case kParamA: A = value; break;
|
||||
case kParamB: B = value; break;
|
||||
default: throw; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
float BiquadHiLo::getParameter(VstInt32 index) {
|
||||
switch (index) {
|
||||
case kParamA: return A; break;
|
||||
case kParamB: return B; break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} return 0.0; //we only need to update the relevant name, this is simple to manage
|
||||
}
|
||||
|
||||
void BiquadHiLo::getParameterName(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "Highpas", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "Lowpass", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this is our labels for displaying in the VST host
|
||||
}
|
||||
|
||||
void BiquadHiLo::getParameterDisplay(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: float2string (A, text, kVstMaxParamStrLen); break;
|
||||
case kParamB: float2string (B, text, kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this displays the values and handles 'popups' where it's discrete choices
|
||||
}
|
||||
|
||||
void BiquadHiLo::getParameterLabel(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
VstInt32 BiquadHiLo::canDo(char *text)
|
||||
{ return (_canDo.find(text) == _canDo.end()) ? -1: 1; } // 1 = yes, -1 = no, 0 = don't know
|
||||
|
||||
bool BiquadHiLo::getEffectName(char* name) {
|
||||
vst_strncpy(name, "BiquadHiLo", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
VstPlugCategory BiquadHiLo::getPlugCategory() {return kPlugCategEffect;}
|
||||
|
||||
bool BiquadHiLo::getProductString(char* text) {
|
||||
vst_strncpy (text, "airwindows BiquadHiLo", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
bool BiquadHiLo::getVendorString(char* text) {
|
||||
vst_strncpy (text, "airwindows", kVstMaxVendorStrLen); return true;
|
||||
}
|
||||
77
plugins/LinuxVST/src/BiquadHiLo/BiquadHiLo.h
Executable file
77
plugins/LinuxVST/src/BiquadHiLo/BiquadHiLo.h
Executable file
|
|
@ -0,0 +1,77 @@
|
|||
/* ========================================
|
||||
* BiquadHiLo - BiquadHiLo.h
|
||||
* Created 8/12/11 by SPIAdmin
|
||||
* Copyright (c) Airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __BiquadHiLo_H
|
||||
#define __BiquadHiLo_H
|
||||
|
||||
#ifndef __audioeffect__
|
||||
#include "audioeffectx.h"
|
||||
#endif
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <math.h>
|
||||
|
||||
enum {
|
||||
kParamA =0,
|
||||
kParamB =1,
|
||||
kNumParameters = 2
|
||||
}; //
|
||||
|
||||
const int kNumPrograms = 0;
|
||||
const int kNumInputs = 2;
|
||||
const int kNumOutputs = 2;
|
||||
const unsigned long kUniqueId = 'biqh'; //Change this to what the AU identity is!
|
||||
|
||||
class BiquadHiLo :
|
||||
public AudioEffectX
|
||||
{
|
||||
public:
|
||||
BiquadHiLo(audioMasterCallback audioMaster);
|
||||
~BiquadHiLo();
|
||||
virtual bool getEffectName(char* name); // The plug-in name
|
||||
virtual VstPlugCategory getPlugCategory(); // The general category for the plug-in
|
||||
virtual bool getProductString(char* text); // This is a unique plug-in string provided by Steinberg
|
||||
virtual bool getVendorString(char* text); // Vendor info
|
||||
virtual VstInt32 getVendorVersion(); // Version number
|
||||
virtual void processReplacing (float** inputs, float** outputs, VstInt32 sampleFrames);
|
||||
virtual void processDoubleReplacing (double** inputs, double** outputs, VstInt32 sampleFrames);
|
||||
virtual void getProgramName(char *name); // read the name from the host
|
||||
virtual void setProgramName(char *name); // changes the name of the preset displayed in the host
|
||||
virtual VstInt32 getChunk (void** data, bool isPreset);
|
||||
virtual VstInt32 setChunk (void* data, VstInt32 byteSize, bool isPreset);
|
||||
virtual float getParameter(VstInt32 index); // get the parameter value at the specified index
|
||||
virtual void setParameter(VstInt32 index, float value); // set the parameter at index to value
|
||||
virtual void getParameterLabel(VstInt32 index, char *text); // label for the parameter (eg dB)
|
||||
virtual void getParameterName(VstInt32 index, char *text); // name of the parameter
|
||||
virtual void getParameterDisplay(VstInt32 index, char *text); // text description of the current value
|
||||
virtual VstInt32 canDo(char *text);
|
||||
private:
|
||||
char _programName[kVstMaxProgNameLen + 1];
|
||||
std::set< std::string > _canDo;
|
||||
|
||||
float A;
|
||||
float B;
|
||||
|
||||
enum {
|
||||
hilp_freq, hilp_temp,
|
||||
hilp_a0, hilp_a1, hilp_b1, hilp_b2,
|
||||
hilp_c0, hilp_c1, hilp_d1, hilp_d2,
|
||||
hilp_e0, hilp_e1, hilp_f1, hilp_f2,
|
||||
hilp_aL1, hilp_aL2, hilp_aR1, hilp_aR2,
|
||||
hilp_cL1, hilp_cL2, hilp_cR1, hilp_cR2,
|
||||
hilp_eL1, hilp_eL2, hilp_eR1, hilp_eR2,
|
||||
hilp_total
|
||||
};
|
||||
double highpass[hilp_total];
|
||||
double lowpass[hilp_total];
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
};
|
||||
|
||||
#endif
|
||||
258
plugins/LinuxVST/src/BiquadHiLo/BiquadHiLoProc.cpp
Executable file
258
plugins/LinuxVST/src/BiquadHiLo/BiquadHiLoProc.cpp
Executable file
|
|
@ -0,0 +1,258 @@
|
|||
/* ========================================
|
||||
* BiquadHiLo - BiquadHiLo.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __BiquadHiLo_H
|
||||
#include "BiquadHiLo.h"
|
||||
#endif
|
||||
|
||||
void BiquadHiLo::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
float* in1 = inputs[0];
|
||||
float* in2 = inputs[1];
|
||||
float* out1 = outputs[0];
|
||||
float* out2 = outputs[1];
|
||||
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
|
||||
highpass[hilp_freq] = ((A*330.0)+20.0)/getSampleRate();
|
||||
bool highpassEngage = true; if (A == 0.0) highpassEngage = false;
|
||||
|
||||
lowpass[hilp_freq] = ((pow(1.0-B,2)*17000.0)+3000.0)/getSampleRate();
|
||||
bool lowpassEngage = true; if (B == 0.0) lowpassEngage = false;
|
||||
|
||||
double K = tan(M_PI * highpass[hilp_freq]); //highpass
|
||||
double norm = 1.0 / (1.0 + K / 1.93185165 + K * K);
|
||||
highpass[hilp_a0] = norm;
|
||||
highpass[hilp_a1] = -2.0 * highpass[hilp_a0];
|
||||
highpass[hilp_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
highpass[hilp_b2] = (1.0 - K / 1.93185165 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.70710678 + K * K);
|
||||
highpass[hilp_c0] = norm;
|
||||
highpass[hilp_c1] = -2.0 * highpass[hilp_c0];
|
||||
highpass[hilp_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
highpass[hilp_d2] = (1.0 - K / 0.70710678 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.51763809 + K * K);
|
||||
highpass[hilp_e0] = norm;
|
||||
highpass[hilp_e1] = -2.0 * highpass[hilp_e0];
|
||||
highpass[hilp_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
highpass[hilp_f2] = (1.0 - K / 0.51763809 + K * K) * norm;
|
||||
|
||||
K = tan(M_PI * lowpass[hilp_freq]); //lowpass
|
||||
norm = 1.0 / (1.0 + K / 1.93185165 + K * K);
|
||||
lowpass[hilp_a0] = K * K * norm;
|
||||
lowpass[hilp_a1] = 2.0 * lowpass[hilp_a0];
|
||||
lowpass[hilp_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lowpass[hilp_b2] = (1.0 - K / 1.93185165 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.70710678 + K * K);
|
||||
lowpass[hilp_c0] = K * K * norm;
|
||||
lowpass[hilp_c1] = 2.0 * lowpass[hilp_c0];
|
||||
lowpass[hilp_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lowpass[hilp_d2] = (1.0 - K / 0.70710678 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.51763809 + K * K);
|
||||
lowpass[hilp_e0] = K * K * norm;
|
||||
lowpass[hilp_e1] = 2.0 * lowpass[hilp_e0];
|
||||
lowpass[hilp_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lowpass[hilp_f2] = (1.0 - K / 0.51763809 + K * K) * norm;
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (highpassEngage) { //begin Stacked Highpass
|
||||
highpass[hilp_temp] = (inputSampleL*highpass[hilp_a0])+highpass[hilp_aL1];
|
||||
highpass[hilp_aL1] = (inputSampleL*highpass[hilp_a1])-(highpass[hilp_temp]*highpass[hilp_b1])+highpass[hilp_aL2];
|
||||
highpass[hilp_aL2] = (inputSampleL*highpass[hilp_a0])-(highpass[hilp_temp]*highpass[hilp_b2]); inputSampleL = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSampleL*highpass[hilp_c0])+highpass[hilp_cL1];
|
||||
highpass[hilp_cL1] = (inputSampleL*highpass[hilp_c1])-(highpass[hilp_temp]*highpass[hilp_d1])+highpass[hilp_cL2];
|
||||
highpass[hilp_cL2] = (inputSampleL*highpass[hilp_c0])-(highpass[hilp_temp]*highpass[hilp_d2]); inputSampleL = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSampleL*highpass[hilp_e0])+highpass[hilp_eL1];
|
||||
highpass[hilp_eL1] = (inputSampleL*highpass[hilp_e1])-(highpass[hilp_temp]*highpass[hilp_f1])+highpass[hilp_eL2];
|
||||
highpass[hilp_eL2] = (inputSampleL*highpass[hilp_e0])-(highpass[hilp_temp]*highpass[hilp_f2]); inputSampleL = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSampleR*highpass[hilp_a0])+highpass[hilp_aR1];
|
||||
highpass[hilp_aR1] = (inputSampleR*highpass[hilp_a1])-(highpass[hilp_temp]*highpass[hilp_b1])+highpass[hilp_aR2];
|
||||
highpass[hilp_aR2] = (inputSampleR*highpass[hilp_a0])-(highpass[hilp_temp]*highpass[hilp_b2]); inputSampleR = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSampleR*highpass[hilp_c0])+highpass[hilp_cR1];
|
||||
highpass[hilp_cR1] = (inputSampleR*highpass[hilp_c1])-(highpass[hilp_temp]*highpass[hilp_d1])+highpass[hilp_cR2];
|
||||
highpass[hilp_cR2] = (inputSampleR*highpass[hilp_c0])-(highpass[hilp_temp]*highpass[hilp_d2]); inputSampleR = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSampleR*highpass[hilp_e0])+highpass[hilp_eR1];
|
||||
highpass[hilp_eR1] = (inputSampleR*highpass[hilp_e1])-(highpass[hilp_temp]*highpass[hilp_f1])+highpass[hilp_eR2];
|
||||
highpass[hilp_eR2] = (inputSampleR*highpass[hilp_e0])-(highpass[hilp_temp]*highpass[hilp_f2]); inputSampleR = highpass[hilp_temp];
|
||||
} else {
|
||||
highpass[hilp_aL1] = highpass[hilp_aL2] = highpass[hilp_aR1] = highpass[hilp_aR2] = 0.0;
|
||||
} //end Stacked Highpass
|
||||
|
||||
//rest of control strip goes here
|
||||
|
||||
if (lowpassEngage) { //begin Stacked Lowpass
|
||||
lowpass[hilp_temp] = (inputSampleL*lowpass[hilp_a0])+lowpass[hilp_aL1];
|
||||
lowpass[hilp_aL1] = (inputSampleL*lowpass[hilp_a1])-(lowpass[hilp_temp]*lowpass[hilp_b1])+lowpass[hilp_aL2];
|
||||
lowpass[hilp_aL2] = (inputSampleL*lowpass[hilp_a0])-(lowpass[hilp_temp]*lowpass[hilp_b2]); inputSampleL = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSampleL*lowpass[hilp_c0])+lowpass[hilp_cL1];
|
||||
lowpass[hilp_cL1] = (inputSampleL*lowpass[hilp_c1])-(lowpass[hilp_temp]*lowpass[hilp_d1])+lowpass[hilp_cL2];
|
||||
lowpass[hilp_cL2] = (inputSampleL*lowpass[hilp_c0])-(lowpass[hilp_temp]*lowpass[hilp_d2]); inputSampleL = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSampleL*lowpass[hilp_e0])+lowpass[hilp_eL1];
|
||||
lowpass[hilp_eL1] = (inputSampleL*lowpass[hilp_e1])-(lowpass[hilp_temp]*lowpass[hilp_f1])+lowpass[hilp_eL2];
|
||||
lowpass[hilp_eL2] = (inputSampleL*lowpass[hilp_e0])-(lowpass[hilp_temp]*lowpass[hilp_f2]); inputSampleL = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSampleR*lowpass[hilp_a0])+lowpass[hilp_aR1];
|
||||
lowpass[hilp_aR1] = (inputSampleR*lowpass[hilp_a1])-(lowpass[hilp_temp]*lowpass[hilp_b1])+lowpass[hilp_aR2];
|
||||
lowpass[hilp_aR2] = (inputSampleR*lowpass[hilp_a0])-(lowpass[hilp_temp]*lowpass[hilp_b2]); inputSampleR = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSampleR*lowpass[hilp_c0])+lowpass[hilp_cR1];
|
||||
lowpass[hilp_cR1] = (inputSampleR*lowpass[hilp_c1])-(lowpass[hilp_temp]*lowpass[hilp_d1])+lowpass[hilp_cR2];
|
||||
lowpass[hilp_cR2] = (inputSampleR*lowpass[hilp_c0])-(lowpass[hilp_temp]*lowpass[hilp_d2]); inputSampleR = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSampleR*lowpass[hilp_e0])+lowpass[hilp_eR1];
|
||||
lowpass[hilp_eR1] = (inputSampleR*lowpass[hilp_e1])-(lowpass[hilp_temp]*lowpass[hilp_f1])+lowpass[hilp_eR2];
|
||||
lowpass[hilp_eR2] = (inputSampleR*lowpass[hilp_e0])-(lowpass[hilp_temp]*lowpass[hilp_f2]); inputSampleR = lowpass[hilp_temp];
|
||||
} else {
|
||||
lowpass[hilp_aL1] = lowpass[hilp_aL2] = lowpass[hilp_aR1] = lowpass[hilp_aR2] = 0.0;
|
||||
} //end Stacked Lowpass
|
||||
|
||||
//begin 32 bit stereo floating point dither
|
||||
int expon; frexpf((float)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
frexpf((float)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
|
||||
void BiquadHiLo::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
double* in1 = inputs[0];
|
||||
double* in2 = inputs[1];
|
||||
double* out1 = outputs[0];
|
||||
double* out2 = outputs[1];
|
||||
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
|
||||
highpass[hilp_freq] = ((A*330.0)+20.0)/getSampleRate();
|
||||
bool highpassEngage = true; if (A == 0.0) highpassEngage = false;
|
||||
|
||||
lowpass[hilp_freq] = ((pow(1.0-B,2)*17000.0)+3000.0)/getSampleRate();
|
||||
bool lowpassEngage = true; if (B == 0.0) lowpassEngage = false;
|
||||
|
||||
double K = tan(M_PI * highpass[hilp_freq]); //highpass
|
||||
double norm = 1.0 / (1.0 + K / 1.93185165 + K * K);
|
||||
highpass[hilp_a0] = norm;
|
||||
highpass[hilp_a1] = -2.0 * highpass[hilp_a0];
|
||||
highpass[hilp_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
highpass[hilp_b2] = (1.0 - K / 1.93185165 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.70710678 + K * K);
|
||||
highpass[hilp_c0] = norm;
|
||||
highpass[hilp_c1] = -2.0 * highpass[hilp_c0];
|
||||
highpass[hilp_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
highpass[hilp_d2] = (1.0 - K / 0.70710678 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.51763809 + K * K);
|
||||
highpass[hilp_e0] = norm;
|
||||
highpass[hilp_e1] = -2.0 * highpass[hilp_e0];
|
||||
highpass[hilp_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
highpass[hilp_f2] = (1.0 - K / 0.51763809 + K * K) * norm;
|
||||
|
||||
K = tan(M_PI * lowpass[hilp_freq]); //lowpass
|
||||
norm = 1.0 / (1.0 + K / 1.93185165 + K * K);
|
||||
lowpass[hilp_a0] = K * K * norm;
|
||||
lowpass[hilp_a1] = 2.0 * lowpass[hilp_a0];
|
||||
lowpass[hilp_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lowpass[hilp_b2] = (1.0 - K / 1.93185165 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.70710678 + K * K);
|
||||
lowpass[hilp_c0] = K * K * norm;
|
||||
lowpass[hilp_c1] = 2.0 * lowpass[hilp_c0];
|
||||
lowpass[hilp_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lowpass[hilp_d2] = (1.0 - K / 0.70710678 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.51763809 + K * K);
|
||||
lowpass[hilp_e0] = K * K * norm;
|
||||
lowpass[hilp_e1] = 2.0 * lowpass[hilp_e0];
|
||||
lowpass[hilp_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lowpass[hilp_f2] = (1.0 - K / 0.51763809 + K * K) * norm;
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (highpassEngage) { //begin Stacked Highpass
|
||||
highpass[hilp_temp] = (inputSampleL*highpass[hilp_a0])+highpass[hilp_aL1];
|
||||
highpass[hilp_aL1] = (inputSampleL*highpass[hilp_a1])-(highpass[hilp_temp]*highpass[hilp_b1])+highpass[hilp_aL2];
|
||||
highpass[hilp_aL2] = (inputSampleL*highpass[hilp_a0])-(highpass[hilp_temp]*highpass[hilp_b2]); inputSampleL = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSampleL*highpass[hilp_c0])+highpass[hilp_cL1];
|
||||
highpass[hilp_cL1] = (inputSampleL*highpass[hilp_c1])-(highpass[hilp_temp]*highpass[hilp_d1])+highpass[hilp_cL2];
|
||||
highpass[hilp_cL2] = (inputSampleL*highpass[hilp_c0])-(highpass[hilp_temp]*highpass[hilp_d2]); inputSampleL = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSampleL*highpass[hilp_e0])+highpass[hilp_eL1];
|
||||
highpass[hilp_eL1] = (inputSampleL*highpass[hilp_e1])-(highpass[hilp_temp]*highpass[hilp_f1])+highpass[hilp_eL2];
|
||||
highpass[hilp_eL2] = (inputSampleL*highpass[hilp_e0])-(highpass[hilp_temp]*highpass[hilp_f2]); inputSampleL = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSampleR*highpass[hilp_a0])+highpass[hilp_aR1];
|
||||
highpass[hilp_aR1] = (inputSampleR*highpass[hilp_a1])-(highpass[hilp_temp]*highpass[hilp_b1])+highpass[hilp_aR2];
|
||||
highpass[hilp_aR2] = (inputSampleR*highpass[hilp_a0])-(highpass[hilp_temp]*highpass[hilp_b2]); inputSampleR = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSampleR*highpass[hilp_c0])+highpass[hilp_cR1];
|
||||
highpass[hilp_cR1] = (inputSampleR*highpass[hilp_c1])-(highpass[hilp_temp]*highpass[hilp_d1])+highpass[hilp_cR2];
|
||||
highpass[hilp_cR2] = (inputSampleR*highpass[hilp_c0])-(highpass[hilp_temp]*highpass[hilp_d2]); inputSampleR = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSampleR*highpass[hilp_e0])+highpass[hilp_eR1];
|
||||
highpass[hilp_eR1] = (inputSampleR*highpass[hilp_e1])-(highpass[hilp_temp]*highpass[hilp_f1])+highpass[hilp_eR2];
|
||||
highpass[hilp_eR2] = (inputSampleR*highpass[hilp_e0])-(highpass[hilp_temp]*highpass[hilp_f2]); inputSampleR = highpass[hilp_temp];
|
||||
} else {
|
||||
highpass[hilp_aL1] = highpass[hilp_aL2] = highpass[hilp_aR1] = highpass[hilp_aR2] = 0.0;
|
||||
} //end Stacked Highpass
|
||||
|
||||
//rest of control strip goes here
|
||||
|
||||
if (lowpassEngage) { //begin Stacked Lowpass
|
||||
lowpass[hilp_temp] = (inputSampleL*lowpass[hilp_a0])+lowpass[hilp_aL1];
|
||||
lowpass[hilp_aL1] = (inputSampleL*lowpass[hilp_a1])-(lowpass[hilp_temp]*lowpass[hilp_b1])+lowpass[hilp_aL2];
|
||||
lowpass[hilp_aL2] = (inputSampleL*lowpass[hilp_a0])-(lowpass[hilp_temp]*lowpass[hilp_b2]); inputSampleL = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSampleL*lowpass[hilp_c0])+lowpass[hilp_cL1];
|
||||
lowpass[hilp_cL1] = (inputSampleL*lowpass[hilp_c1])-(lowpass[hilp_temp]*lowpass[hilp_d1])+lowpass[hilp_cL2];
|
||||
lowpass[hilp_cL2] = (inputSampleL*lowpass[hilp_c0])-(lowpass[hilp_temp]*lowpass[hilp_d2]); inputSampleL = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSampleL*lowpass[hilp_e0])+lowpass[hilp_eL1];
|
||||
lowpass[hilp_eL1] = (inputSampleL*lowpass[hilp_e1])-(lowpass[hilp_temp]*lowpass[hilp_f1])+lowpass[hilp_eL2];
|
||||
lowpass[hilp_eL2] = (inputSampleL*lowpass[hilp_e0])-(lowpass[hilp_temp]*lowpass[hilp_f2]); inputSampleL = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSampleR*lowpass[hilp_a0])+lowpass[hilp_aR1];
|
||||
lowpass[hilp_aR1] = (inputSampleR*lowpass[hilp_a1])-(lowpass[hilp_temp]*lowpass[hilp_b1])+lowpass[hilp_aR2];
|
||||
lowpass[hilp_aR2] = (inputSampleR*lowpass[hilp_a0])-(lowpass[hilp_temp]*lowpass[hilp_b2]); inputSampleR = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSampleR*lowpass[hilp_c0])+lowpass[hilp_cR1];
|
||||
lowpass[hilp_cR1] = (inputSampleR*lowpass[hilp_c1])-(lowpass[hilp_temp]*lowpass[hilp_d1])+lowpass[hilp_cR2];
|
||||
lowpass[hilp_cR2] = (inputSampleR*lowpass[hilp_c0])-(lowpass[hilp_temp]*lowpass[hilp_d2]); inputSampleR = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSampleR*lowpass[hilp_e0])+lowpass[hilp_eR1];
|
||||
lowpass[hilp_eR1] = (inputSampleR*lowpass[hilp_e1])-(lowpass[hilp_temp]*lowpass[hilp_f1])+lowpass[hilp_eR2];
|
||||
lowpass[hilp_eR2] = (inputSampleR*lowpass[hilp_e0])-(lowpass[hilp_temp]*lowpass[hilp_f2]); inputSampleR = lowpass[hilp_temp];
|
||||
} else {
|
||||
lowpass[hilp_aL1] = lowpass[hilp_aL2] = lowpass[hilp_aR1] = lowpass[hilp_aR2] = 0.0;
|
||||
} //end Stacked Lowpass
|
||||
|
||||
//begin 64 bit stereo floating point dither
|
||||
//int expon; frexp((double)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
//inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//frexp((double)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
//inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//end 64 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
138
plugins/LinuxVST/src/BiquadStack/BiquadStack.cpp
Executable file
138
plugins/LinuxVST/src/BiquadStack/BiquadStack.cpp
Executable file
|
|
@ -0,0 +1,138 @@
|
|||
/* ========================================
|
||||
* BiquadStack - BiquadStack.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __BiquadStack_H
|
||||
#include "BiquadStack.h"
|
||||
#endif
|
||||
|
||||
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new BiquadStack(audioMaster);}
|
||||
|
||||
BiquadStack::BiquadStack(audioMasterCallback audioMaster) :
|
||||
AudioEffectX(audioMaster, kNumPrograms, kNumParameters)
|
||||
{
|
||||
A = 0.5;
|
||||
B = 0.5;
|
||||
C = 0.5;
|
||||
|
||||
for (int x = 0; x < biqs_total; x++) {biqs[x] = 0.0;}
|
||||
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
//this is reset: values being initialized only once. Startup values, whatever they are.
|
||||
|
||||
_canDo.insert("plugAsChannelInsert"); // plug-in can be used as a channel insert effect.
|
||||
_canDo.insert("plugAsSend"); // plug-in can be used as a send effect.
|
||||
_canDo.insert("x2in2out");
|
||||
setNumInputs(kNumInputs);
|
||||
setNumOutputs(kNumOutputs);
|
||||
setUniqueID(kUniqueId);
|
||||
canProcessReplacing(); // supports output replacing
|
||||
canDoubleReplacing(); // supports double precision processing
|
||||
programsAreChunks(true);
|
||||
vst_strncpy (_programName, "Default", kVstMaxProgNameLen); // default program name
|
||||
}
|
||||
|
||||
BiquadStack::~BiquadStack() {}
|
||||
VstInt32 BiquadStack::getVendorVersion () {return 1000;}
|
||||
void BiquadStack::setProgramName(char *name) {vst_strncpy (_programName, name, kVstMaxProgNameLen);}
|
||||
void BiquadStack::getProgramName(char *name) {vst_strncpy (name, _programName, kVstMaxProgNameLen);}
|
||||
//airwindows likes to ignore this stuff. Make your own programs, and make a different plugin rather than
|
||||
//trying to do versioning and preventing people from using older versions. Maybe they like the old one!
|
||||
|
||||
static float pinParameter(float data)
|
||||
{
|
||||
if (data < 0.0f) return 0.0f;
|
||||
if (data > 1.0f) return 1.0f;
|
||||
return data;
|
||||
}
|
||||
|
||||
VstInt32 BiquadStack::getChunk (void** data, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)calloc(kNumParameters, sizeof(float));
|
||||
chunkData[0] = A;
|
||||
chunkData[1] = B;
|
||||
chunkData[2] = C;
|
||||
/* Note: The way this is set up, it will break if you manage to save settings on an Intel
|
||||
machine and load them on a PPC Mac. However, it's fine if you stick to the machine you
|
||||
started with. */
|
||||
|
||||
*data = chunkData;
|
||||
return kNumParameters * sizeof(float);
|
||||
}
|
||||
|
||||
VstInt32 BiquadStack::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)data;
|
||||
A = pinParameter(chunkData[0]);
|
||||
B = pinParameter(chunkData[1]);
|
||||
C = pinParameter(chunkData[2]);
|
||||
/* We're ignoring byteSize as we found it to be a filthy liar */
|
||||
|
||||
/* calculate any other fields you need here - you could copy in
|
||||
code from setParameter() here. */
|
||||
return 0;
|
||||
}
|
||||
|
||||
void BiquadStack::setParameter(VstInt32 index, float value) {
|
||||
switch (index) {
|
||||
case kParamA: A = value; break;
|
||||
case kParamB: B = value; break;
|
||||
case kParamC: C = value; break;
|
||||
default: throw; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
float BiquadStack::getParameter(VstInt32 index) {
|
||||
switch (index) {
|
||||
case kParamA: return A; break;
|
||||
case kParamB: return B; break;
|
||||
case kParamC: return C; break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} return 0.0; //we only need to update the relevant name, this is simple to manage
|
||||
}
|
||||
|
||||
void BiquadStack::getParameterName(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "Freq", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "Level", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "Reso", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this is our labels for displaying in the VST host
|
||||
}
|
||||
|
||||
void BiquadStack::getParameterDisplay(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: float2string (A, text, kVstMaxParamStrLen); break;
|
||||
case kParamB: float2string (B, text, kVstMaxParamStrLen); break;
|
||||
case kParamC: float2string (C, text, kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this displays the values and handles 'popups' where it's discrete choices
|
||||
}
|
||||
|
||||
void BiquadStack::getParameterLabel(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
VstInt32 BiquadStack::canDo(char *text)
|
||||
{ return (_canDo.find(text) == _canDo.end()) ? -1: 1; } // 1 = yes, -1 = no, 0 = don't know
|
||||
|
||||
bool BiquadStack::getEffectName(char* name) {
|
||||
vst_strncpy(name, "BiquadStack", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
VstPlugCategory BiquadStack::getPlugCategory() {return kPlugCategEffect;}
|
||||
|
||||
bool BiquadStack::getProductString(char* text) {
|
||||
vst_strncpy (text, "airwindows BiquadStack", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
bool BiquadStack::getVendorString(char* text) {
|
||||
vst_strncpy (text, "airwindows", kVstMaxVendorStrLen); return true;
|
||||
}
|
||||
78
plugins/LinuxVST/src/BiquadStack/BiquadStack.h
Executable file
78
plugins/LinuxVST/src/BiquadStack/BiquadStack.h
Executable file
|
|
@ -0,0 +1,78 @@
|
|||
/* ========================================
|
||||
* BiquadStack - BiquadStack.h
|
||||
* Created 8/12/11 by SPIAdmin
|
||||
* Copyright (c) Airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __BiquadStack_H
|
||||
#define __BiquadStack_H
|
||||
|
||||
#ifndef __audioeffect__
|
||||
#include "audioeffectx.h"
|
||||
#endif
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <math.h>
|
||||
|
||||
enum {
|
||||
kParamA =0,
|
||||
kParamB =1,
|
||||
kParamC =2,
|
||||
kNumParameters = 3
|
||||
}; //
|
||||
|
||||
const int kNumPrograms = 0;
|
||||
const int kNumInputs = 2;
|
||||
const int kNumOutputs = 2;
|
||||
const unsigned long kUniqueId = 'biqk'; //Change this to what the AU identity is!
|
||||
|
||||
class BiquadStack :
|
||||
public AudioEffectX
|
||||
{
|
||||
public:
|
||||
BiquadStack(audioMasterCallback audioMaster);
|
||||
~BiquadStack();
|
||||
virtual bool getEffectName(char* name); // The plug-in name
|
||||
virtual VstPlugCategory getPlugCategory(); // The general category for the plug-in
|
||||
virtual bool getProductString(char* text); // This is a unique plug-in string provided by Steinberg
|
||||
virtual bool getVendorString(char* text); // Vendor info
|
||||
virtual VstInt32 getVendorVersion(); // Version number
|
||||
virtual void processReplacing (float** inputs, float** outputs, VstInt32 sampleFrames);
|
||||
virtual void processDoubleReplacing (double** inputs, double** outputs, VstInt32 sampleFrames);
|
||||
virtual void getProgramName(char *name); // read the name from the host
|
||||
virtual void setProgramName(char *name); // changes the name of the preset displayed in the host
|
||||
virtual VstInt32 getChunk (void** data, bool isPreset);
|
||||
virtual VstInt32 setChunk (void* data, VstInt32 byteSize, bool isPreset);
|
||||
virtual float getParameter(VstInt32 index); // get the parameter value at the specified index
|
||||
virtual void setParameter(VstInt32 index, float value); // set the parameter at index to value
|
||||
virtual void getParameterLabel(VstInt32 index, char *text); // label for the parameter (eg dB)
|
||||
virtual void getParameterName(VstInt32 index, char *text); // name of the parameter
|
||||
virtual void getParameterDisplay(VstInt32 index, char *text); // text description of the current value
|
||||
virtual VstInt32 canDo(char *text);
|
||||
private:
|
||||
char _programName[kVstMaxProgNameLen + 1];
|
||||
std::set< std::string > _canDo;
|
||||
|
||||
float A;
|
||||
float B;
|
||||
float C;
|
||||
|
||||
enum {
|
||||
biqs_freq, biqs_reso, biqs_level, biqs_levelA, biqs_levelB, biqs_nonlin, biqs_temp, biqs_dis,
|
||||
biqs_a0, biqs_aA0, biqs_aB0, biqs_b1, biqs_bA1, biqs_bB1, biqs_b2, biqs_bA2, biqs_bB2,
|
||||
biqs_c0, biqs_cA0, biqs_cB0, biqs_d1, biqs_dA1, biqs_dB1, biqs_d2, biqs_dA2, biqs_dB2,
|
||||
biqs_e0, biqs_eA0, biqs_eB0, biqs_f1, biqs_fA1, biqs_fB1, biqs_f2, biqs_fA2, biqs_fB2,
|
||||
biqs_aL1, biqs_aL2, biqs_aR1, biqs_aR2,
|
||||
biqs_cL1, biqs_cL2, biqs_cR1, biqs_cR2,
|
||||
biqs_eL1, biqs_eL2, biqs_eR1, biqs_eR2,
|
||||
biqs_outL, biqs_outR, biqs_total
|
||||
};
|
||||
double biqs[biqs_total];
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
};
|
||||
|
||||
#endif
|
||||
302
plugins/LinuxVST/src/BiquadStack/BiquadStackProc.cpp
Executable file
302
plugins/LinuxVST/src/BiquadStack/BiquadStackProc.cpp
Executable file
|
|
@ -0,0 +1,302 @@
|
|||
/* ========================================
|
||||
* BiquadStack - BiquadStack.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __BiquadStack_H
|
||||
#include "BiquadStack.h"
|
||||
#endif
|
||||
|
||||
void BiquadStack::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
float* in1 = inputs[0];
|
||||
float* in2 = inputs[1];
|
||||
float* out1 = outputs[0];
|
||||
float* out2 = outputs[1];
|
||||
|
||||
VstInt32 inFramesToProcess = sampleFrames; //vst doesn't give us this as a separate variable so we'll make it
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
|
||||
biqs[biqs_levelA] = biqs[biqs_levelB];
|
||||
biqs[biqs_aA0] = biqs[biqs_aB0];
|
||||
biqs[biqs_bA1] = biqs[biqs_bB1];
|
||||
biqs[biqs_bA2] = biqs[biqs_bB2];
|
||||
biqs[biqs_cA0] = biqs[biqs_cB0];
|
||||
biqs[biqs_dA1] = biqs[biqs_dB1];
|
||||
biqs[biqs_dA2] = biqs[biqs_dB2];
|
||||
biqs[biqs_eA0] = biqs[biqs_eB0];
|
||||
biqs[biqs_fA1] = biqs[biqs_fB1];
|
||||
biqs[biqs_fA2] = biqs[biqs_fB2];
|
||||
//previous run through the buffer is still in the filter, so we move it
|
||||
//to the A section and now it's the new starting point.
|
||||
|
||||
biqs[biqs_freq] = (((pow(A,4)*19980.0)+20.0)/getSampleRate());
|
||||
biqs[biqs_nonlin] = B;
|
||||
biqs[biqs_levelB] = (biqs[biqs_nonlin]*2.0)-1.0;
|
||||
if (biqs[biqs_levelB] > 0.0) biqs[biqs_levelB] *= 2.0;
|
||||
biqs[biqs_reso] = ((0.5+(biqs[biqs_nonlin]*0.5)+sqrt(biqs[biqs_freq]))-(1.0-pow(1.0-C,2.0)))+0.5+(biqs[biqs_nonlin]*0.5);
|
||||
|
||||
double K = tan(M_PI * biqs[biqs_freq]);
|
||||
double norm = 1.0 / (1.0 + K / (biqs[biqs_reso]*1.93185165) + K * K);
|
||||
biqs[biqs_aB0] = K / (biqs[biqs_reso]*1.93185165) * norm;
|
||||
biqs[biqs_bB1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biqs[biqs_bB2] = (1.0 - K / (biqs[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (biqs[biqs_reso]*0.70710678) + K * K);
|
||||
biqs[biqs_cB0] = K / (biqs[biqs_reso]*0.70710678) * norm;
|
||||
biqs[biqs_dB1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biqs[biqs_dB2] = (1.0 - K / (biqs[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (biqs[biqs_reso]*0.51763809) + K * K);
|
||||
biqs[biqs_eB0] = K / (biqs[biqs_reso]*0.51763809) * norm;
|
||||
biqs[biqs_fB1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biqs[biqs_fB2] = (1.0 - K / (biqs[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
|
||||
if (biqs[biqs_aA0] == 0.0) { // if we have just started, start directly with raw info
|
||||
biqs[biqs_levelA] = biqs[biqs_levelB];
|
||||
biqs[biqs_aA0] = biqs[biqs_aB0];
|
||||
biqs[biqs_bA1] = biqs[biqs_bB1];
|
||||
biqs[biqs_bA2] = biqs[biqs_bB2];
|
||||
biqs[biqs_cA0] = biqs[biqs_cB0];
|
||||
biqs[biqs_dA1] = biqs[biqs_dB1];
|
||||
biqs[biqs_dA2] = biqs[biqs_dB2];
|
||||
biqs[biqs_eA0] = biqs[biqs_eB0];
|
||||
biqs[biqs_fA1] = biqs[biqs_fB1];
|
||||
biqs[biqs_fA2] = biqs[biqs_fB2];
|
||||
}
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
double buf = (double)sampleFrames/inFramesToProcess;
|
||||
biqs[biqs_level] = (biqs[biqs_levelA]*buf)+(biqs[biqs_levelB]*(1.0-buf));
|
||||
biqs[biqs_a0] = (biqs[biqs_aA0]*buf)+(biqs[biqs_aB0]*(1.0-buf));
|
||||
biqs[biqs_b1] = (biqs[biqs_bA1]*buf)+(biqs[biqs_bB1]*(1.0-buf));
|
||||
biqs[biqs_b2] = (biqs[biqs_bA2]*buf)+(biqs[biqs_bB2]*(1.0-buf));
|
||||
biqs[biqs_c0] = (biqs[biqs_cA0]*buf)+(biqs[biqs_cB0]*(1.0-buf));
|
||||
biqs[biqs_d1] = (biqs[biqs_dA1]*buf)+(biqs[biqs_dB1]*(1.0-buf));
|
||||
biqs[biqs_d2] = (biqs[biqs_dA2]*buf)+(biqs[biqs_dB2]*(1.0-buf));
|
||||
biqs[biqs_e0] = (biqs[biqs_eA0]*buf)+(biqs[biqs_eB0]*(1.0-buf));
|
||||
biqs[biqs_f1] = (biqs[biqs_fA1]*buf)+(biqs[biqs_fB1]*(1.0-buf));
|
||||
biqs[biqs_f2] = (biqs[biqs_fA2]*buf)+(biqs[biqs_fB2]*(1.0-buf));
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
biqs[biqs_outL] = inputSampleL * fabs(biqs[biqs_level]);
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_a0] * (1.0+(biqs[biqs_outL]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outL] * biqs[biqs_dis]) + biqs[biqs_aL1];
|
||||
biqs[biqs_aL1] = biqs[biqs_aL2] - (biqs[biqs_temp]*biqs[biqs_b1]);
|
||||
biqs[biqs_aL2] = (biqs[biqs_outL] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_b2]);
|
||||
biqs[biqs_outL] = biqs[biqs_temp];
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_c0] * (1.0+(biqs[biqs_outL]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outL] * biqs[biqs_dis]) + biqs[biqs_cL1];
|
||||
biqs[biqs_cL1] = biqs[biqs_cL2] - (biqs[biqs_temp]*biqs[biqs_d1]);
|
||||
biqs[biqs_cL2] = (biqs[biqs_outL] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_d2]);
|
||||
biqs[biqs_outL] = biqs[biqs_temp];
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_e0] * (1.0+(biqs[biqs_outL]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outL] * biqs[biqs_dis]) + biqs[biqs_eL1];
|
||||
biqs[biqs_eL1] = biqs[biqs_eL2] - (biqs[biqs_temp]*biqs[biqs_f1]);
|
||||
biqs[biqs_eL2] = (biqs[biqs_outL] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_f2]);
|
||||
biqs[biqs_outL] = biqs[biqs_temp];
|
||||
biqs[biqs_outL] *= biqs[biqs_level];
|
||||
if (biqs[biqs_level] > 1.0) biqs[biqs_outL] *= biqs[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow R
|
||||
biqs[biqs_outR] = inputSampleR * fabs(biqs[biqs_level]);
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_a0] * (1.0+(biqs[biqs_outR]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outR] * biqs[biqs_dis]) + biqs[biqs_aR1];
|
||||
biqs[biqs_aR1] = biqs[biqs_aR2] - (biqs[biqs_temp]*biqs[biqs_b1]);
|
||||
biqs[biqs_aR2] = (biqs[biqs_outR] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_b2]);
|
||||
biqs[biqs_outR] = biqs[biqs_temp];
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_c0] * (1.0+(biqs[biqs_outR]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outR] * biqs[biqs_dis]) + biqs[biqs_cR1];
|
||||
biqs[biqs_cR1] = biqs[biqs_cR2] - (biqs[biqs_temp]*biqs[biqs_d1]);
|
||||
biqs[biqs_cR2] = (biqs[biqs_outR] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_d2]);
|
||||
biqs[biqs_outR] = biqs[biqs_temp];
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_e0] * (1.0+(biqs[biqs_outR]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outR] * biqs[biqs_dis]) + biqs[biqs_eR1];
|
||||
biqs[biqs_eR1] = biqs[biqs_eR2] - (biqs[biqs_temp]*biqs[biqs_f1]);
|
||||
biqs[biqs_eR2] = (biqs[biqs_outR] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_f2]);
|
||||
biqs[biqs_outR] = biqs[biqs_temp];
|
||||
biqs[biqs_outR] *= biqs[biqs_level];
|
||||
if (biqs[biqs_level] > 1.0) biqs[biqs_outR] *= biqs[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow R
|
||||
|
||||
inputSampleL += biqs[biqs_outL]; //purely a parallel filter stage here
|
||||
inputSampleR += biqs[biqs_outR]; //purely a parallel filter stage here
|
||||
|
||||
//begin 32 bit stereo floating point dither
|
||||
int expon; frexpf((float)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
frexpf((float)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
|
||||
void BiquadStack::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
double* in1 = inputs[0];
|
||||
double* in2 = inputs[1];
|
||||
double* out1 = outputs[0];
|
||||
double* out2 = outputs[1];
|
||||
|
||||
VstInt32 inFramesToProcess = sampleFrames; //vst doesn't give us this as a separate variable so we'll make it
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
|
||||
biqs[biqs_levelA] = biqs[biqs_levelB];
|
||||
biqs[biqs_aA0] = biqs[biqs_aB0];
|
||||
biqs[biqs_bA1] = biqs[biqs_bB1];
|
||||
biqs[biqs_bA2] = biqs[biqs_bB2];
|
||||
biqs[biqs_cA0] = biqs[biqs_cB0];
|
||||
biqs[biqs_dA1] = biqs[biqs_dB1];
|
||||
biqs[biqs_dA2] = biqs[biqs_dB2];
|
||||
biqs[biqs_eA0] = biqs[biqs_eB0];
|
||||
biqs[biqs_fA1] = biqs[biqs_fB1];
|
||||
biqs[biqs_fA2] = biqs[biqs_fB2];
|
||||
//previous run through the buffer is still in the filter, so we move it
|
||||
//to the A section and now it's the new starting point.
|
||||
|
||||
biqs[biqs_freq] = (((pow(A,4)*19980.0)+20.0)/getSampleRate());
|
||||
biqs[biqs_nonlin] = B;
|
||||
biqs[biqs_levelB] = (biqs[biqs_nonlin]*2.0)-1.0;
|
||||
if (biqs[biqs_levelB] > 0.0) biqs[biqs_levelB] *= 2.0;
|
||||
biqs[biqs_reso] = ((0.5+(biqs[biqs_nonlin]*0.5)+sqrt(biqs[biqs_freq]))-(1.0-pow(1.0-C,2.0)))+0.5+(biqs[biqs_nonlin]*0.5);
|
||||
|
||||
double K = tan(M_PI * biqs[biqs_freq]);
|
||||
double norm = 1.0 / (1.0 + K / (biqs[biqs_reso]*1.93185165) + K * K);
|
||||
biqs[biqs_aB0] = K / (biqs[biqs_reso]*1.93185165) * norm;
|
||||
biqs[biqs_bB1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biqs[biqs_bB2] = (1.0 - K / (biqs[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (biqs[biqs_reso]*0.70710678) + K * K);
|
||||
biqs[biqs_cB0] = K / (biqs[biqs_reso]*0.70710678) * norm;
|
||||
biqs[biqs_dB1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biqs[biqs_dB2] = (1.0 - K / (biqs[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (biqs[biqs_reso]*0.51763809) + K * K);
|
||||
biqs[biqs_eB0] = K / (biqs[biqs_reso]*0.51763809) * norm;
|
||||
biqs[biqs_fB1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biqs[biqs_fB2] = (1.0 - K / (biqs[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
|
||||
if (biqs[biqs_aA0] == 0.0) { // if we have just started, start directly with raw info
|
||||
biqs[biqs_levelA] = biqs[biqs_levelB];
|
||||
biqs[biqs_aA0] = biqs[biqs_aB0];
|
||||
biqs[biqs_bA1] = biqs[biqs_bB1];
|
||||
biqs[biqs_bA2] = biqs[biqs_bB2];
|
||||
biqs[biqs_cA0] = biqs[biqs_cB0];
|
||||
biqs[biqs_dA1] = biqs[biqs_dB1];
|
||||
biqs[biqs_dA2] = biqs[biqs_dB2];
|
||||
biqs[biqs_eA0] = biqs[biqs_eB0];
|
||||
biqs[biqs_fA1] = biqs[biqs_fB1];
|
||||
biqs[biqs_fA2] = biqs[biqs_fB2];
|
||||
}
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
double buf = (double)sampleFrames/inFramesToProcess;
|
||||
biqs[biqs_level] = (biqs[biqs_levelA]*buf)+(biqs[biqs_levelB]*(1.0-buf));
|
||||
biqs[biqs_a0] = (biqs[biqs_aA0]*buf)+(biqs[biqs_aB0]*(1.0-buf));
|
||||
biqs[biqs_b1] = (biqs[biqs_bA1]*buf)+(biqs[biqs_bB1]*(1.0-buf));
|
||||
biqs[biqs_b2] = (biqs[biqs_bA2]*buf)+(biqs[biqs_bB2]*(1.0-buf));
|
||||
biqs[biqs_c0] = (biqs[biqs_cA0]*buf)+(biqs[biqs_cB0]*(1.0-buf));
|
||||
biqs[biqs_d1] = (biqs[biqs_dA1]*buf)+(biqs[biqs_dB1]*(1.0-buf));
|
||||
biqs[biqs_d2] = (biqs[biqs_dA2]*buf)+(biqs[biqs_dB2]*(1.0-buf));
|
||||
biqs[biqs_e0] = (biqs[biqs_eA0]*buf)+(biqs[biqs_eB0]*(1.0-buf));
|
||||
biqs[biqs_f1] = (biqs[biqs_fA1]*buf)+(biqs[biqs_fB1]*(1.0-buf));
|
||||
biqs[biqs_f2] = (biqs[biqs_fA2]*buf)+(biqs[biqs_fB2]*(1.0-buf));
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
biqs[biqs_outL] = inputSampleL * fabs(biqs[biqs_level]);
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_a0] * (1.0+(biqs[biqs_outL]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outL] * biqs[biqs_dis]) + biqs[biqs_aL1];
|
||||
biqs[biqs_aL1] = biqs[biqs_aL2] - (biqs[biqs_temp]*biqs[biqs_b1]);
|
||||
biqs[biqs_aL2] = (biqs[biqs_outL] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_b2]);
|
||||
biqs[biqs_outL] = biqs[biqs_temp];
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_c0] * (1.0+(biqs[biqs_outL]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outL] * biqs[biqs_dis]) + biqs[biqs_cL1];
|
||||
biqs[biqs_cL1] = biqs[biqs_cL2] - (biqs[biqs_temp]*biqs[biqs_d1]);
|
||||
biqs[biqs_cL2] = (biqs[biqs_outL] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_d2]);
|
||||
biqs[biqs_outL] = biqs[biqs_temp];
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_e0] * (1.0+(biqs[biqs_outL]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outL] * biqs[biqs_dis]) + biqs[biqs_eL1];
|
||||
biqs[biqs_eL1] = biqs[biqs_eL2] - (biqs[biqs_temp]*biqs[biqs_f1]);
|
||||
biqs[biqs_eL2] = (biqs[biqs_outL] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_f2]);
|
||||
biqs[biqs_outL] = biqs[biqs_temp];
|
||||
biqs[biqs_outL] *= biqs[biqs_level];
|
||||
if (biqs[biqs_level] > 1.0) biqs[biqs_outL] *= biqs[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow R
|
||||
biqs[biqs_outR] = inputSampleR * fabs(biqs[biqs_level]);
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_a0] * (1.0+(biqs[biqs_outR]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outR] * biqs[biqs_dis]) + biqs[biqs_aR1];
|
||||
biqs[biqs_aR1] = biqs[biqs_aR2] - (biqs[biqs_temp]*biqs[biqs_b1]);
|
||||
biqs[biqs_aR2] = (biqs[biqs_outR] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_b2]);
|
||||
biqs[biqs_outR] = biqs[biqs_temp];
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_c0] * (1.0+(biqs[biqs_outR]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outR] * biqs[biqs_dis]) + biqs[biqs_cR1];
|
||||
biqs[biqs_cR1] = biqs[biqs_cR2] - (biqs[biqs_temp]*biqs[biqs_d1]);
|
||||
biqs[biqs_cR2] = (biqs[biqs_outR] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_d2]);
|
||||
biqs[biqs_outR] = biqs[biqs_temp];
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_e0] * (1.0+(biqs[biqs_outR]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outR] * biqs[biqs_dis]) + biqs[biqs_eR1];
|
||||
biqs[biqs_eR1] = biqs[biqs_eR2] - (biqs[biqs_temp]*biqs[biqs_f1]);
|
||||
biqs[biqs_eR2] = (biqs[biqs_outR] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_f2]);
|
||||
biqs[biqs_outR] = biqs[biqs_temp];
|
||||
biqs[biqs_outR] *= biqs[biqs_level];
|
||||
if (biqs[biqs_level] > 1.0) biqs[biqs_outR] *= biqs[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow R
|
||||
|
||||
inputSampleL += biqs[biqs_outL]; //purely a parallel filter stage here
|
||||
inputSampleR += biqs[biqs_outR]; //purely a parallel filter stage here
|
||||
|
||||
//begin 64 bit stereo floating point dither
|
||||
//int expon; frexp((double)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
//inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//frexp((double)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
//inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//end 64 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
|
|
@ -12,24 +12,64 @@ AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new C
|
|||
ConsoleXBuss::ConsoleXBuss(audioMasterCallback audioMaster) :
|
||||
AudioEffectX(audioMaster, kNumPrograms, kNumParameters)
|
||||
{
|
||||
A = 0.5;
|
||||
B = 0.5;
|
||||
C = 0.5;
|
||||
D = 0.5;
|
||||
E = 0.5;
|
||||
F = 0.5;
|
||||
G = 0.5;
|
||||
H = 0.5;
|
||||
HIP = 0.0;
|
||||
LOP = 0.0;
|
||||
AIR = 0.5;
|
||||
FIR = 0.5;
|
||||
STO = 0.5;
|
||||
RNG = 0.5;
|
||||
FCT = 1.0;
|
||||
SCT = 1.0;
|
||||
FCR = 1.0;
|
||||
SCR = 1.0;
|
||||
FCA = 0.5;
|
||||
SCA = 0.5;
|
||||
FCL = 0.5;
|
||||
SCL = 0.5;
|
||||
FGT = 0.0;
|
||||
SGT = 0.0;
|
||||
FGR = 1.0;
|
||||
SGR = 1.0;
|
||||
FGS = 0.5;
|
||||
SGS = 0.5;
|
||||
FGL = 0.5;
|
||||
SGL = 0.5;
|
||||
TRF = 0.5;
|
||||
TRG = 0.5;
|
||||
TRR = 0.5;
|
||||
HMF = 0.5;
|
||||
HMG = 0.5;
|
||||
HMR = 0.5;
|
||||
LMF = 0.5;
|
||||
LMG = 0.5;
|
||||
LMR = 0.5;
|
||||
BSF = 0.5;
|
||||
BSG = 0.5;
|
||||
BSR = 0.5;
|
||||
DSC = 0.5;
|
||||
PAN = 0.5;
|
||||
FAD = 0.5;
|
||||
|
||||
for (int x = 0; x < hilp_total; x++) {
|
||||
highpass[x] = 0.0;
|
||||
lowpass[x] = 0.0;
|
||||
}
|
||||
|
||||
for (int x = 0; x < biq_total; x++) {biquad[x] = 0.0;}
|
||||
for (int x = 0; x < air_total; x++) air[x] = 0.0;
|
||||
for (int x = 0; x < kal_total; x++) kal[x] = 0.0;
|
||||
fireCompL = 1.0;
|
||||
fireCompR = 1.0;
|
||||
fireGate = 1.0;
|
||||
stoneCompL = 1.0;
|
||||
stoneCompR = 1.0;
|
||||
stoneGate = 1.0;
|
||||
|
||||
for(int count = 0; count < 2004; count++) {mpkL[count] = 0.0; mpkR[count] = 0.0;}
|
||||
for(int count = 0; count < 65; count++) {f[count] = 0.0;}
|
||||
prevfreqMPeak = -1;
|
||||
prevamountMPeak = -1;
|
||||
mpc = 1;
|
||||
for (int x = 0; x < biqs_total; x++) {
|
||||
high[x] = 0.0;
|
||||
hmid[x] = 0.0;
|
||||
lmid[x] = 0.0;
|
||||
bass[x] = 0.0;
|
||||
}
|
||||
|
||||
for(int count = 0; count < dscBuf+2; count++) {
|
||||
dBaL[count] = 0.0;
|
||||
|
|
@ -39,13 +79,13 @@ ConsoleXBuss::ConsoleXBuss(audioMasterCallback audioMaster) :
|
|||
dBaPosR = 0.0;
|
||||
dBaXL = 1;
|
||||
dBaXR = 1;
|
||||
|
||||
trebleGainA = 1.0; trebleGainB = 1.0;
|
||||
midGainA = 1.0; midGainB = 1.0;
|
||||
mPeakA = 1.0; mPeakB = 1.0;
|
||||
bassGainA = 1.0; bassGainB = 1.0;
|
||||
|
||||
airGainA = 0.5; airGainB = 0.5;
|
||||
fireGainA = 0.5; fireGainB = 0.5;
|
||||
stoneGainA = 0.5; stoneGainB = 0.5;
|
||||
panA = 0.5; panB = 0.5;
|
||||
inTrimA = 1.0; inTrimB = 1.0;
|
||||
inTrimA = 1.0; inTrimB = 1.0;
|
||||
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
//this is reset: values being initialized only once. Startup values, whatever they are.
|
||||
|
|
@ -79,14 +119,43 @@ static float pinParameter(float data)
|
|||
VstInt32 ConsoleXBuss::getChunk (void** data, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)calloc(kNumParameters, sizeof(float));
|
||||
chunkData[0] = A;
|
||||
chunkData[1] = B;
|
||||
chunkData[2] = C;
|
||||
chunkData[3] = D;
|
||||
chunkData[4] = E;
|
||||
chunkData[5] = F;
|
||||
chunkData[6] = G;
|
||||
chunkData[7] = H;
|
||||
chunkData[0] = HIP;
|
||||
chunkData[1] = LOP;
|
||||
chunkData[2] = AIR;
|
||||
chunkData[3] = FIR;
|
||||
chunkData[4] = STO;
|
||||
chunkData[5] = RNG;
|
||||
chunkData[6] = FCT;
|
||||
chunkData[7] = SCT;
|
||||
chunkData[8] = FCR;
|
||||
chunkData[9] = SCR;
|
||||
chunkData[10] = FCA;
|
||||
chunkData[11] = SCA;
|
||||
chunkData[12] = FCL;
|
||||
chunkData[13] = SCL;
|
||||
chunkData[14] = FGT;
|
||||
chunkData[15] = SGT;
|
||||
chunkData[16] = FGR;
|
||||
chunkData[17] = SGR;
|
||||
chunkData[18] = FGS;
|
||||
chunkData[19] = SGS;
|
||||
chunkData[20] = FGL;
|
||||
chunkData[21] = SGL;
|
||||
chunkData[22] = TRF;
|
||||
chunkData[23] = TRG;
|
||||
chunkData[24] = TRR;
|
||||
chunkData[25] = HMF;
|
||||
chunkData[26] = HMG;
|
||||
chunkData[27] = HMR;
|
||||
chunkData[28] = LMF;
|
||||
chunkData[29] = LMG;
|
||||
chunkData[30] = LMR;
|
||||
chunkData[31] = BSF;
|
||||
chunkData[32] = BSG;
|
||||
chunkData[33] = BSR;
|
||||
chunkData[34] = DSC;
|
||||
chunkData[35] = PAN;
|
||||
chunkData[36] = FAD;
|
||||
/* Note: The way this is set up, it will break if you manage to save settings on an Intel
|
||||
machine and load them on a PPC Mac. However, it's fine if you stick to the machine you
|
||||
started with. */
|
||||
|
|
@ -98,14 +167,43 @@ VstInt32 ConsoleXBuss::getChunk (void** data, bool isPreset)
|
|||
VstInt32 ConsoleXBuss::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)data;
|
||||
A = pinParameter(chunkData[0]);
|
||||
B = pinParameter(chunkData[1]);
|
||||
C = pinParameter(chunkData[2]);
|
||||
D = pinParameter(chunkData[3]);
|
||||
E = pinParameter(chunkData[4]);
|
||||
F = pinParameter(chunkData[5]);
|
||||
G = pinParameter(chunkData[6]);
|
||||
H = pinParameter(chunkData[7]);
|
||||
HIP = pinParameter(chunkData[0]);
|
||||
LOP = pinParameter(chunkData[1]);
|
||||
AIR = pinParameter(chunkData[2]);
|
||||
FIR = pinParameter(chunkData[3]);
|
||||
STO = pinParameter(chunkData[4]);
|
||||
RNG = pinParameter(chunkData[5]);
|
||||
FCT = pinParameter(chunkData[6]);
|
||||
SCT = pinParameter(chunkData[7]);
|
||||
FCR = pinParameter(chunkData[8]);
|
||||
SCR = pinParameter(chunkData[9]);
|
||||
FCA = pinParameter(chunkData[10]);
|
||||
SCA = pinParameter(chunkData[11]);
|
||||
FCL = pinParameter(chunkData[12]);
|
||||
SCL = pinParameter(chunkData[13]);
|
||||
FGT = pinParameter(chunkData[14]);
|
||||
SGT = pinParameter(chunkData[15]);
|
||||
FGR = pinParameter(chunkData[16]);
|
||||
SGR = pinParameter(chunkData[17]);
|
||||
FGS = pinParameter(chunkData[18]);
|
||||
SGS = pinParameter(chunkData[19]);
|
||||
FGL = pinParameter(chunkData[20]);
|
||||
SGL = pinParameter(chunkData[21]);
|
||||
TRF = pinParameter(chunkData[22]);
|
||||
TRG = pinParameter(chunkData[23]);
|
||||
TRR = pinParameter(chunkData[24]);
|
||||
HMF = pinParameter(chunkData[25]);
|
||||
HMG = pinParameter(chunkData[26]);
|
||||
HMR = pinParameter(chunkData[27]);
|
||||
LMF = pinParameter(chunkData[28]);
|
||||
LMG = pinParameter(chunkData[29]);
|
||||
LMR = pinParameter(chunkData[30]);
|
||||
BSF = pinParameter(chunkData[31]);
|
||||
BSG = pinParameter(chunkData[32]);
|
||||
BSR = pinParameter(chunkData[33]);
|
||||
DSC = pinParameter(chunkData[34]);
|
||||
PAN = pinParameter(chunkData[35]);
|
||||
FAD = pinParameter(chunkData[36]);
|
||||
/* We're ignoring byteSize as we found it to be a filthy liar */
|
||||
|
||||
/* calculate any other fields you need here - you could copy in
|
||||
|
|
@ -115,70 +213,215 @@ VstInt32 ConsoleXBuss::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
|||
|
||||
void ConsoleXBuss::setParameter(VstInt32 index, float value) {
|
||||
switch (index) {
|
||||
case kParamA: A = value; break;
|
||||
case kParamB: B = value; break;
|
||||
case kParamC: C = value; break;
|
||||
case kParamD: D = value; break;
|
||||
case kParamE: E = value; break;
|
||||
case kParamF: F = value; break;
|
||||
case kParamG: G = value; break;
|
||||
case kParamH: H = value; break;
|
||||
case kParamHIP: HIP = value; break;
|
||||
case kParamLOP: LOP = value; break;
|
||||
case kParamAIR: AIR = value; break;
|
||||
case kParamFIR: FIR = value; break;
|
||||
case kParamSTO: STO = value; break;
|
||||
case kParamRNG: RNG = value; break;
|
||||
case kParamFCT: FCT = value; break;
|
||||
case kParamSCT: SCT = value; break;
|
||||
case kParamFCR: FCR = value; break;
|
||||
case kParamSCR: SCR = value; break;
|
||||
case kParamFCA: FCA = value; break;
|
||||
case kParamSCA: SCA = value; break;
|
||||
case kParamFCL: FCL = value; break;
|
||||
case kParamSCL: SCL = value; break;
|
||||
case kParamFGT: FGT = value; break;
|
||||
case kParamSGT: SGT = value; break;
|
||||
case kParamFGR: FGR = value; break;
|
||||
case kParamSGR: SGR = value; break;
|
||||
case kParamFGS: FGS = value; break;
|
||||
case kParamSGS: SGS = value; break;
|
||||
case kParamFGL: FGL = value; break;
|
||||
case kParamSGL: SGL = value; break;
|
||||
case kParamTRF: TRF = value; break;
|
||||
case kParamTRG: TRG = value; break;
|
||||
case kParamTRR: TRR = value; break;
|
||||
case kParamHMF: HMF = value; break;
|
||||
case kParamHMG: HMG = value; break;
|
||||
case kParamHMR: HMR = value; break;
|
||||
case kParamLMF: LMF = value; break;
|
||||
case kParamLMG: LMG = value; break;
|
||||
case kParamLMR: LMR = value; break;
|
||||
case kParamBSF: BSF = value; break;
|
||||
case kParamBSG: BSG = value; break;
|
||||
case kParamBSR: BSR = value; break;
|
||||
case kParamDSC: DSC = value; break;
|
||||
case kParamPAN: PAN = value; break;
|
||||
case kParamFAD: FAD = value; break;
|
||||
default: throw; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
float ConsoleXBuss::getParameter(VstInt32 index) {
|
||||
switch (index) {
|
||||
case kParamA: return A; break;
|
||||
case kParamB: return B; break;
|
||||
case kParamC: return C; break;
|
||||
case kParamD: return D; break;
|
||||
case kParamE: return E; break;
|
||||
case kParamF: return F; break;
|
||||
case kParamG: return G; break;
|
||||
case kParamH: return H; break;
|
||||
case kParamHIP: return HIP; break;
|
||||
case kParamLOP: return LOP; break;
|
||||
case kParamAIR: return AIR; break;
|
||||
case kParamFIR: return FIR; break;
|
||||
case kParamSTO: return STO; break;
|
||||
case kParamRNG: return RNG; break;
|
||||
case kParamFCT: return FCT; break;
|
||||
case kParamSCT: return SCT; break;
|
||||
case kParamFCR: return FCR; break;
|
||||
case kParamSCR: return SCR; break;
|
||||
case kParamFCA: return FCA; break;
|
||||
case kParamSCA: return SCA; break;
|
||||
case kParamFCL: return FCL; break;
|
||||
case kParamSCL: return SCL; break;
|
||||
case kParamFGT: return FGT; break;
|
||||
case kParamSGT: return SGT; break;
|
||||
case kParamFGR: return FGR; break;
|
||||
case kParamSGR: return SGR; break;
|
||||
case kParamFGS: return FGS; break;
|
||||
case kParamSGS: return SGS; break;
|
||||
case kParamFGL: return FGL; break;
|
||||
case kParamSGL: return SGL; break;
|
||||
case kParamTRF: return TRF; break;
|
||||
case kParamTRG: return TRG; break;
|
||||
case kParamTRR: return TRR; break;
|
||||
case kParamHMF: return HMF; break;
|
||||
case kParamHMG: return HMG; break;
|
||||
case kParamHMR: return HMR; break;
|
||||
case kParamLMF: return LMF; break;
|
||||
case kParamLMG: return LMG; break;
|
||||
case kParamLMR: return LMR; break;
|
||||
case kParamBSF: return BSF; break;
|
||||
case kParamBSG: return BSG; break;
|
||||
case kParamBSR: return BSR; break;
|
||||
case kParamDSC: return DSC; break;
|
||||
case kParamPAN: return PAN; break;
|
||||
case kParamFAD: return FAD; break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} return 0.0; //we only need to update the relevant name, this is simple to manage
|
||||
}
|
||||
|
||||
void ConsoleXBuss::getParameterName(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "Air", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "Fire", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "Stone", kVstMaxParamStrLen); break;
|
||||
case kParamD: vst_strncpy (text, "Reso", kVstMaxParamStrLen); break;
|
||||
case kParamE: vst_strncpy (text, "Range", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "Top dB", kVstMaxParamStrLen); break;
|
||||
case kParamG: vst_strncpy (text, "Pan", kVstMaxParamStrLen); break;
|
||||
case kParamH: vst_strncpy (text, "Fader", kVstMaxParamStrLen); break;
|
||||
case kParamHIP: vst_strncpy (text, "Highpas", kVstMaxParamStrLen); break;
|
||||
case kParamLOP: vst_strncpy (text, "Lowpass", kVstMaxParamStrLen); break;
|
||||
case kParamAIR: vst_strncpy (text, "Air", kVstMaxParamStrLen); break;
|
||||
case kParamFIR: vst_strncpy (text, "Fire", kVstMaxParamStrLen); break;
|
||||
case kParamSTO: vst_strncpy (text, "Stone", kVstMaxParamStrLen); break;
|
||||
case kParamRNG: vst_strncpy (text, "Range", kVstMaxParamStrLen); break;
|
||||
case kParamFCT: vst_strncpy (text, "FC Thrs", kVstMaxParamStrLen); break;
|
||||
case kParamSCT: vst_strncpy (text, "SC Thrs", kVstMaxParamStrLen); break;
|
||||
case kParamFCR: vst_strncpy (text, "FC Rati", kVstMaxParamStrLen); break;
|
||||
case kParamSCR: vst_strncpy (text, "SC Rati", kVstMaxParamStrLen); break;
|
||||
case kParamFCA: vst_strncpy (text, "FC Atk", kVstMaxParamStrLen); break;
|
||||
case kParamSCA: vst_strncpy (text, "SC Atk", kVstMaxParamStrLen); break;
|
||||
case kParamFCL: vst_strncpy (text, "FC Rls", kVstMaxParamStrLen); break;
|
||||
case kParamSCL: vst_strncpy (text, "SC Rls", kVstMaxParamStrLen); break;
|
||||
case kParamFGT: vst_strncpy (text, "FG Thrs", kVstMaxParamStrLen); break;
|
||||
case kParamSGT: vst_strncpy (text, "SG Thrs", kVstMaxParamStrLen); break;
|
||||
case kParamFGR: vst_strncpy (text, "FG Rati", kVstMaxParamStrLen); break;
|
||||
case kParamSGR: vst_strncpy (text, "SG Rati", kVstMaxParamStrLen); break;
|
||||
case kParamFGS: vst_strncpy (text, "FG Sust", kVstMaxParamStrLen); break;
|
||||
case kParamSGS: vst_strncpy (text, "SG Sust", kVstMaxParamStrLen); break;
|
||||
case kParamFGL: vst_strncpy (text, "FG Rls", kVstMaxParamStrLen); break;
|
||||
case kParamSGL: vst_strncpy (text, "SG Rls", kVstMaxParamStrLen); break;
|
||||
case kParamTRF: vst_strncpy (text, "Tr Freq", kVstMaxParamStrLen); break;
|
||||
case kParamTRG: vst_strncpy (text, "Treble", kVstMaxParamStrLen); break;
|
||||
case kParamTRR: vst_strncpy (text, "Tr Reso", kVstMaxParamStrLen); break;
|
||||
case kParamHMF: vst_strncpy (text, "HM Freq", kVstMaxParamStrLen); break;
|
||||
case kParamHMG: vst_strncpy (text, "HighMid", kVstMaxParamStrLen); break;
|
||||
case kParamHMR: vst_strncpy (text, "HM Reso", kVstMaxParamStrLen); break;
|
||||
case kParamLMF: vst_strncpy (text, "LM Freq", kVstMaxParamStrLen); break;
|
||||
case kParamLMG: vst_strncpy (text, "LowMid", kVstMaxParamStrLen); break;
|
||||
case kParamLMR: vst_strncpy (text, "LM Reso", kVstMaxParamStrLen); break;
|
||||
case kParamBSF: vst_strncpy (text, "Bs Freq", kVstMaxParamStrLen); break;
|
||||
case kParamBSG: vst_strncpy (text, "Bass", kVstMaxParamStrLen); break;
|
||||
case kParamBSR: vst_strncpy (text, "Bs Reso", kVstMaxParamStrLen); break;
|
||||
case kParamDSC: vst_strncpy (text, "Top dB", kVstMaxParamStrLen); break;
|
||||
case kParamPAN: vst_strncpy (text, "Pan", kVstMaxParamStrLen); break;
|
||||
case kParamFAD: vst_strncpy (text, "Fader", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this is our labels for displaying in the VST host
|
||||
}
|
||||
|
||||
void ConsoleXBuss::getParameterDisplay(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: float2string (A, text, kVstMaxParamStrLen); break;
|
||||
case kParamB: float2string (B, text, kVstMaxParamStrLen); break;
|
||||
case kParamC: float2string (C, text, kVstMaxParamStrLen); break;
|
||||
case kParamD: float2string (D, text, kVstMaxParamStrLen); break;
|
||||
case kParamE: float2string (E, text, kVstMaxParamStrLen); break;
|
||||
case kParamF: float2string ((F*70.0)+70.0, text, kVstMaxParamStrLen); break;
|
||||
case kParamG: float2string (G, text, kVstMaxParamStrLen); break;
|
||||
case kParamH: float2string (H, text, kVstMaxParamStrLen); break;
|
||||
case kParamHIP: float2string (HIP, text, kVstMaxParamStrLen); break;
|
||||
case kParamLOP: float2string (LOP, text, kVstMaxParamStrLen); break;
|
||||
case kParamAIR: float2string (AIR, text, kVstMaxParamStrLen); break;
|
||||
case kParamFIR: float2string (FIR, text, kVstMaxParamStrLen); break;
|
||||
case kParamSTO: float2string (STO, text, kVstMaxParamStrLen); break;
|
||||
case kParamRNG: float2string (RNG, text, kVstMaxParamStrLen); break;
|
||||
case kParamFCT: float2string (FCT, text, kVstMaxParamStrLen); break;
|
||||
case kParamSCT: float2string (SCT, text, kVstMaxParamStrLen); break;
|
||||
case kParamFCR: float2string (FCR, text, kVstMaxParamStrLen); break;
|
||||
case kParamSCR: float2string (SCR, text, kVstMaxParamStrLen); break;
|
||||
case kParamFCA: float2string (FCA, text, kVstMaxParamStrLen); break;
|
||||
case kParamSCA: float2string (SCA, text, kVstMaxParamStrLen); break;
|
||||
case kParamFCL: float2string (FCL, text, kVstMaxParamStrLen); break;
|
||||
case kParamSCL: float2string (SCL, text, kVstMaxParamStrLen); break;
|
||||
case kParamFGT: float2string (FGT, text, kVstMaxParamStrLen); break;
|
||||
case kParamSGT: float2string (SGT, text, kVstMaxParamStrLen); break;
|
||||
case kParamFGR: float2string (FGR, text, kVstMaxParamStrLen); break;
|
||||
case kParamSGR: float2string (SGR, text, kVstMaxParamStrLen); break;
|
||||
case kParamFGS: float2string (FGS, text, kVstMaxParamStrLen); break;
|
||||
case kParamSGS: float2string (SGS, text, kVstMaxParamStrLen); break;
|
||||
case kParamFGL: float2string (FGL, text, kVstMaxParamStrLen); break;
|
||||
case kParamSGL: float2string (SGL, text, kVstMaxParamStrLen); break;
|
||||
case kParamTRF: float2string (TRF, text, kVstMaxParamStrLen); break;
|
||||
case kParamTRG: float2string (TRG, text, kVstMaxParamStrLen); break;
|
||||
case kParamTRR: float2string (TRR, text, kVstMaxParamStrLen); break;
|
||||
case kParamHMF: float2string (HMF, text, kVstMaxParamStrLen); break;
|
||||
case kParamHMG: float2string (HMG, text, kVstMaxParamStrLen); break;
|
||||
case kParamHMR: float2string (HMR, text, kVstMaxParamStrLen); break;
|
||||
case kParamLMF: float2string (LMF, text, kVstMaxParamStrLen); break;
|
||||
case kParamLMG: float2string (LMG, text, kVstMaxParamStrLen); break;
|
||||
case kParamLMR: float2string (LMR, text, kVstMaxParamStrLen); break;
|
||||
case kParamBSF: float2string (BSF, text, kVstMaxParamStrLen); break;
|
||||
case kParamBSG: float2string (BSG, text, kVstMaxParamStrLen); break;
|
||||
case kParamBSR: float2string (BSR, text, kVstMaxParamStrLen); break;
|
||||
case kParamDSC: float2string ((DSC*70.0)+70.0, text, kVstMaxParamStrLen); break;
|
||||
case kParamPAN: float2string (PAN, text, kVstMaxParamStrLen); break;
|
||||
case kParamFAD: float2string (FAD, text, kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this displays the values and handles 'popups' where it's discrete choices
|
||||
}
|
||||
|
||||
void ConsoleXBuss::getParameterLabel(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamD: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamE: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "dB", kVstMaxParamStrLen); break;
|
||||
case kParamG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamH: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamHIP: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamLOP: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamAIR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFIR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSTO: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamRNG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFCT: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSCT: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFCR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSCR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFCA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSCA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFCL: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSCL: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFGT: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSGT: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFGR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSGR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFGS: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSGS: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFGL: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSGL: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamTRF: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamTRG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamTRR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamHMF: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamHMG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamHMR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamLMF: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamLMG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamLMR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamBSF: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamBSG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamBSR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamDSC: vst_strncpy (text, "dB", kVstMaxParamStrLen); break;
|
||||
case kParamPAN: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFAD: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,18 +16,48 @@
|
|||
#include <math.h>
|
||||
|
||||
enum {
|
||||
kParamA = 0,
|
||||
kParamB = 1,
|
||||
kParamC = 2,
|
||||
kParamD = 3,
|
||||
kParamE = 4,
|
||||
kParamF = 5,
|
||||
kParamG = 6,
|
||||
kParamH = 7,
|
||||
kNumParameters = 8
|
||||
kParamHIP = 0,
|
||||
kParamLOP = 1,
|
||||
kParamAIR = 2,
|
||||
kParamFIR = 3,
|
||||
kParamSTO = 4,
|
||||
kParamRNG = 5,
|
||||
kParamFCT = 6,
|
||||
kParamSCT = 7,
|
||||
kParamFCR = 8,
|
||||
kParamSCR = 9,
|
||||
kParamFCA = 10,
|
||||
kParamSCA = 11,
|
||||
kParamFCL = 12,
|
||||
kParamSCL = 13,
|
||||
kParamFGT = 14,
|
||||
kParamSGT = 15,
|
||||
kParamFGR = 16,
|
||||
kParamSGR = 17,
|
||||
kParamFGS = 18,
|
||||
kParamSGS = 19,
|
||||
kParamFGL = 20,
|
||||
kParamSGL = 21,
|
||||
kParamTRF = 22,
|
||||
kParamTRG = 23,
|
||||
kParamTRR = 24,
|
||||
kParamHMF = 25,
|
||||
kParamHMG = 26,
|
||||
kParamHMR = 27,
|
||||
kParamLMF = 28,
|
||||
kParamLMG = 29,
|
||||
kParamLMR = 30,
|
||||
kParamBSF = 31,
|
||||
kParamBSG = 32,
|
||||
kParamBSR = 33,
|
||||
kParamDSC = 34,
|
||||
kParamPAN = 35,
|
||||
kParamFAD = 36,
|
||||
kNumParameters = 37
|
||||
}; //
|
||||
const int dscBuf = 90;
|
||||
|
||||
|
||||
const int kNumPrograms = 0;
|
||||
const int kNumInputs = 2;
|
||||
const int kNumOutputs = 2;
|
||||
|
|
@ -60,96 +90,112 @@ private:
|
|||
char _programName[kVstMaxProgNameLen + 1];
|
||||
std::set< std::string > _canDo;
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
float HIP;
|
||||
float LOP;
|
||||
float AIR;
|
||||
float FIR;
|
||||
float STO;
|
||||
float RNG;
|
||||
float FCT;
|
||||
float SCT;
|
||||
float FCR;
|
||||
float SCR;
|
||||
float FCA;
|
||||
float SCA;
|
||||
float FCL;
|
||||
float SCL;
|
||||
float FGT;
|
||||
float SGT;
|
||||
float FGR;
|
||||
float SGR;
|
||||
float FGS;
|
||||
float SGS;
|
||||
float FGL;
|
||||
float SGL;
|
||||
float TRF;
|
||||
float TRG;
|
||||
float TRR;
|
||||
float HMF;
|
||||
float HMG;
|
||||
float HMR;
|
||||
float LMF;
|
||||
float LMG;
|
||||
float LMR;
|
||||
float BSF;
|
||||
float BSG;
|
||||
float BSR;
|
||||
float DSC;
|
||||
float PAN;
|
||||
float FAD;
|
||||
|
||||
enum {
|
||||
biq_freq,
|
||||
biq_reso,
|
||||
biq_a0,
|
||||
biq_a1,
|
||||
biq_a2,
|
||||
biq_b1,
|
||||
biq_b2,
|
||||
biq_sL1,
|
||||
biq_sL2,
|
||||
biq_sR1,
|
||||
biq_sR2,
|
||||
biq_total
|
||||
hilp_freq, hilp_temp,
|
||||
hilp_a0, hilp_aA0, hilp_aB0, hilp_a1, hilp_aA1, hilp_aB1, hilp_b1, hilp_bA1, hilp_bB1, hilp_b2, hilp_bA2, hilp_bB2,
|
||||
hilp_c0, hilp_cA0, hilp_cB0, hilp_c1, hilp_cA1, hilp_cB1, hilp_d1, hilp_dA1, hilp_dB1, hilp_d2, hilp_dA2, hilp_dB2,
|
||||
hilp_e0, hilp_eA0, hilp_eB0, hilp_e1, hilp_eA1, hilp_eB1, hilp_f1, hilp_fA1, hilp_fB1, hilp_f2, hilp_fA2, hilp_fB2,
|
||||
hilp_aL1, hilp_aL2, hilp_aR1, hilp_aR2,
|
||||
hilp_cL1, hilp_cL2, hilp_cR1, hilp_cR2,
|
||||
hilp_eL1, hilp_eL2, hilp_eR1, hilp_eR2,
|
||||
hilp_total
|
||||
};
|
||||
double biquad[biq_total];
|
||||
double highpass[hilp_total];
|
||||
double lowpass[hilp_total];
|
||||
|
||||
enum {
|
||||
pvAL1,
|
||||
pvSL1,
|
||||
accSL1,
|
||||
acc2SL1,
|
||||
pvAL2,
|
||||
pvSL2,
|
||||
accSL2,
|
||||
acc2SL2,
|
||||
pvAL3,
|
||||
pvSL3,
|
||||
accSL3,
|
||||
pvAL4,
|
||||
pvSL4,
|
||||
gndavgL,
|
||||
outAL,
|
||||
gainAL,
|
||||
pvAR1,
|
||||
pvSR1,
|
||||
accSR1,
|
||||
acc2SR1,
|
||||
pvAR2,
|
||||
pvSR2,
|
||||
accSR2,
|
||||
acc2SR2,
|
||||
pvAR3,
|
||||
pvSR3,
|
||||
accSR3,
|
||||
pvAR4,
|
||||
pvSR4,
|
||||
gndavgR,
|
||||
outAR,
|
||||
gainAR,
|
||||
pvAL1, pvSL1, accSL1, acc2SL1,
|
||||
pvAL2, pvSL2, accSL2, acc2SL2,
|
||||
pvAL3, pvSL3, accSL3,
|
||||
pvAL4, pvSL4,
|
||||
gndavgL, outAL, gainAL,
|
||||
pvAR1, pvSR1, accSR1, acc2SR1,
|
||||
pvAR2, pvSR2, accSR2, acc2SR2,
|
||||
pvAR3, pvSR3, accSR3,
|
||||
pvAR4, pvSR4,
|
||||
gndavgR, outAR, gainAR,
|
||||
air_total
|
||||
};
|
||||
double air[air_total];
|
||||
|
||||
enum {
|
||||
prevSampL1,
|
||||
prevSlewL1,
|
||||
accSlewL1,
|
||||
prevSampL2,
|
||||
prevSlewL2,
|
||||
accSlewL2,
|
||||
prevSampL3,
|
||||
prevSlewL3,
|
||||
accSlewL3,
|
||||
kalGainL,
|
||||
kalOutL,
|
||||
prevSampR1,
|
||||
prevSlewR1,
|
||||
accSlewR1,
|
||||
prevSampR2,
|
||||
prevSlewR2,
|
||||
accSlewR2,
|
||||
prevSampR3,
|
||||
prevSlewR3,
|
||||
accSlewR3,
|
||||
kalGainR,
|
||||
kalOutR,
|
||||
prevSampL1, prevSlewL1, accSlewL1,
|
||||
prevSampL2, prevSlewL2, accSlewL2,
|
||||
prevSampL3, prevSlewL3, accSlewL3,
|
||||
kalGainL, kalOutL,
|
||||
prevSampR1, prevSlewR1, accSlewR1,
|
||||
prevSampR2, prevSlewR2, accSlewR2,
|
||||
prevSampR3, prevSlewR3, accSlewR3,
|
||||
kalGainR, kalOutR,
|
||||
kal_total
|
||||
};
|
||||
double kal[kal_total];
|
||||
double fireCompL;
|
||||
double fireCompR;
|
||||
double fireGate;
|
||||
double stoneCompL;
|
||||
double stoneCompR;
|
||||
double stoneGate;
|
||||
double airGainA;
|
||||
double airGainB;
|
||||
double fireGainA;
|
||||
double fireGainB;
|
||||
double stoneGainA;
|
||||
double stoneGainB;
|
||||
|
||||
double mpkL[2005];
|
||||
double mpkR[2005];
|
||||
double f[66];
|
||||
double prevfreqMPeak;
|
||||
double prevamountMPeak;
|
||||
int mpc;
|
||||
enum {
|
||||
biqs_freq, biqs_reso, biqs_level,
|
||||
biqs_nonlin, biqs_temp, biqs_dis,
|
||||
biqs_a0, biqs_a1, biqs_b1, biqs_b2,
|
||||
biqs_c0, biqs_c1, biqs_d1, biqs_d2,
|
||||
biqs_e0, biqs_e1, biqs_f1, biqs_f2,
|
||||
biqs_aL1, biqs_aL2, biqs_aR1, biqs_aR2,
|
||||
biqs_cL1, biqs_cL2, biqs_cR1, biqs_cR2,
|
||||
biqs_eL1, biqs_eL2, biqs_eR1, biqs_eR2,
|
||||
biqs_outL, biqs_outR, biqs_total
|
||||
};
|
||||
double high[biqs_total];
|
||||
double hmid[biqs_total];
|
||||
double lmid[biqs_total];
|
||||
double bass[biqs_total];
|
||||
|
||||
double dBaL[dscBuf+5];
|
||||
double dBaR[dscBuf+5];
|
||||
|
|
@ -158,27 +204,14 @@ private:
|
|||
int dBaXL;
|
||||
int dBaXR;
|
||||
|
||||
double trebleGainA;
|
||||
double trebleGainB;
|
||||
double midGainA;
|
||||
double midGainB;
|
||||
double mPeakA;
|
||||
double mPeakB;
|
||||
double bassGainA;
|
||||
double bassGainB;
|
||||
double panA;
|
||||
double panB;
|
||||
double inTrimA;
|
||||
double inTrimB;
|
||||
|
||||
float A;
|
||||
float B;
|
||||
float C;
|
||||
float D;
|
||||
float E;
|
||||
float F;
|
||||
float G;
|
||||
float H;
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -12,24 +12,64 @@ AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new C
|
|||
ConsoleXChannel::ConsoleXChannel(audioMasterCallback audioMaster) :
|
||||
AudioEffectX(audioMaster, kNumPrograms, kNumParameters)
|
||||
{
|
||||
A = 0.5;
|
||||
B = 0.5;
|
||||
C = 0.5;
|
||||
D = 0.5;
|
||||
E = 0.5;
|
||||
F = 0.5;
|
||||
G = 0.5;
|
||||
H = 0.5;
|
||||
HIP = 0.0;
|
||||
LOP = 0.0;
|
||||
AIR = 0.5;
|
||||
FIR = 0.5;
|
||||
STO = 0.5;
|
||||
RNG = 0.5;
|
||||
FCT = 1.0;
|
||||
SCT = 1.0;
|
||||
FCR = 1.0;
|
||||
SCR = 1.0;
|
||||
FCA = 0.5;
|
||||
SCA = 0.5;
|
||||
FCL = 0.5;
|
||||
SCL = 0.5;
|
||||
FGT = 0.0;
|
||||
SGT = 0.0;
|
||||
FGR = 1.0;
|
||||
SGR = 1.0;
|
||||
FGS = 0.5;
|
||||
SGS = 0.5;
|
||||
FGL = 0.5;
|
||||
SGL = 0.5;
|
||||
TRF = 0.5;
|
||||
TRG = 0.5;
|
||||
TRR = 0.5;
|
||||
HMF = 0.5;
|
||||
HMG = 0.5;
|
||||
HMR = 0.5;
|
||||
LMF = 0.5;
|
||||
LMG = 0.5;
|
||||
LMR = 0.5;
|
||||
BSF = 0.5;
|
||||
BSG = 0.5;
|
||||
BSR = 0.5;
|
||||
DSC = 0.5;
|
||||
PAN = 0.5;
|
||||
FAD = 0.5;
|
||||
|
||||
for (int x = 0; x < hilp_total; x++) {
|
||||
highpass[x] = 0.0;
|
||||
lowpass[x] = 0.0;
|
||||
}
|
||||
|
||||
for (int x = 0; x < biq_total; x++) {biquad[x] = 0.0;}
|
||||
for (int x = 0; x < air_total; x++) air[x] = 0.0;
|
||||
for (int x = 0; x < kal_total; x++) kal[x] = 0.0;
|
||||
fireCompL = 1.0;
|
||||
fireCompR = 1.0;
|
||||
fireGate = 1.0;
|
||||
stoneCompL = 1.0;
|
||||
stoneCompR = 1.0;
|
||||
stoneGate = 1.0;
|
||||
|
||||
for(int count = 0; count < 2004; count++) {mpkL[count] = 0.0; mpkR[count] = 0.0;}
|
||||
for(int count = 0; count < 65; count++) {f[count] = 0.0;}
|
||||
prevfreqMPeak = -1;
|
||||
prevamountMPeak = -1;
|
||||
mpc = 1;
|
||||
for (int x = 0; x < biqs_total; x++) {
|
||||
high[x] = 0.0;
|
||||
hmid[x] = 0.0;
|
||||
lmid[x] = 0.0;
|
||||
bass[x] = 0.0;
|
||||
}
|
||||
|
||||
for(int count = 0; count < dscBuf+2; count++) {
|
||||
dBaL[count] = 0.0;
|
||||
|
|
@ -40,12 +80,12 @@ ConsoleXChannel::ConsoleXChannel(audioMasterCallback audioMaster) :
|
|||
dBaXL = 1;
|
||||
dBaXR = 1;
|
||||
|
||||
trebleGainA = 1.0; trebleGainB = 1.0;
|
||||
midGainA = 1.0; midGainB = 1.0;
|
||||
mPeakA = 1.0; mPeakB = 1.0;
|
||||
bassGainA = 1.0; bassGainB = 1.0;
|
||||
airGainA = 0.5; airGainB = 0.5;
|
||||
fireGainA = 0.5; fireGainB = 0.5;
|
||||
stoneGainA = 0.5; stoneGainB = 0.5;
|
||||
panA = 0.5; panB = 0.5;
|
||||
inTrimA = 1.0; inTrimB = 1.0;
|
||||
inTrimA = 1.0; inTrimB = 1.0;
|
||||
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
//this is reset: values being initialized only once. Startup values, whatever they are.
|
||||
|
|
@ -79,14 +119,43 @@ static float pinParameter(float data)
|
|||
VstInt32 ConsoleXChannel::getChunk (void** data, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)calloc(kNumParameters, sizeof(float));
|
||||
chunkData[0] = A;
|
||||
chunkData[1] = B;
|
||||
chunkData[2] = C;
|
||||
chunkData[3] = D;
|
||||
chunkData[4] = E;
|
||||
chunkData[5] = F;
|
||||
chunkData[6] = G;
|
||||
chunkData[7] = H;
|
||||
chunkData[0] = HIP;
|
||||
chunkData[1] = LOP;
|
||||
chunkData[2] = AIR;
|
||||
chunkData[3] = FIR;
|
||||
chunkData[4] = STO;
|
||||
chunkData[5] = RNG;
|
||||
chunkData[6] = FCT;
|
||||
chunkData[7] = SCT;
|
||||
chunkData[8] = FCR;
|
||||
chunkData[9] = SCR;
|
||||
chunkData[10] = FCA;
|
||||
chunkData[11] = SCA;
|
||||
chunkData[12] = FCL;
|
||||
chunkData[13] = SCL;
|
||||
chunkData[14] = FGT;
|
||||
chunkData[15] = SGT;
|
||||
chunkData[16] = FGR;
|
||||
chunkData[17] = SGR;
|
||||
chunkData[18] = FGS;
|
||||
chunkData[19] = SGS;
|
||||
chunkData[20] = FGL;
|
||||
chunkData[21] = SGL;
|
||||
chunkData[22] = TRF;
|
||||
chunkData[23] = TRG;
|
||||
chunkData[24] = TRR;
|
||||
chunkData[25] = HMF;
|
||||
chunkData[26] = HMG;
|
||||
chunkData[27] = HMR;
|
||||
chunkData[28] = LMF;
|
||||
chunkData[29] = LMG;
|
||||
chunkData[30] = LMR;
|
||||
chunkData[31] = BSF;
|
||||
chunkData[32] = BSG;
|
||||
chunkData[33] = BSR;
|
||||
chunkData[34] = DSC;
|
||||
chunkData[35] = PAN;
|
||||
chunkData[36] = FAD;
|
||||
/* Note: The way this is set up, it will break if you manage to save settings on an Intel
|
||||
machine and load them on a PPC Mac. However, it's fine if you stick to the machine you
|
||||
started with. */
|
||||
|
|
@ -98,14 +167,43 @@ VstInt32 ConsoleXChannel::getChunk (void** data, bool isPreset)
|
|||
VstInt32 ConsoleXChannel::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)data;
|
||||
A = pinParameter(chunkData[0]);
|
||||
B = pinParameter(chunkData[1]);
|
||||
C = pinParameter(chunkData[2]);
|
||||
D = pinParameter(chunkData[3]);
|
||||
E = pinParameter(chunkData[4]);
|
||||
F = pinParameter(chunkData[5]);
|
||||
G = pinParameter(chunkData[6]);
|
||||
H = pinParameter(chunkData[7]);
|
||||
HIP = pinParameter(chunkData[0]);
|
||||
LOP = pinParameter(chunkData[1]);
|
||||
AIR = pinParameter(chunkData[2]);
|
||||
FIR = pinParameter(chunkData[3]);
|
||||
STO = pinParameter(chunkData[4]);
|
||||
RNG = pinParameter(chunkData[5]);
|
||||
FCT = pinParameter(chunkData[6]);
|
||||
SCT = pinParameter(chunkData[7]);
|
||||
FCR = pinParameter(chunkData[8]);
|
||||
SCR = pinParameter(chunkData[9]);
|
||||
FCA = pinParameter(chunkData[10]);
|
||||
SCA = pinParameter(chunkData[11]);
|
||||
FCL = pinParameter(chunkData[12]);
|
||||
SCL = pinParameter(chunkData[13]);
|
||||
FGT = pinParameter(chunkData[14]);
|
||||
SGT = pinParameter(chunkData[15]);
|
||||
FGR = pinParameter(chunkData[16]);
|
||||
SGR = pinParameter(chunkData[17]);
|
||||
FGS = pinParameter(chunkData[18]);
|
||||
SGS = pinParameter(chunkData[19]);
|
||||
FGL = pinParameter(chunkData[20]);
|
||||
SGL = pinParameter(chunkData[21]);
|
||||
TRF = pinParameter(chunkData[22]);
|
||||
TRG = pinParameter(chunkData[23]);
|
||||
TRR = pinParameter(chunkData[24]);
|
||||
HMF = pinParameter(chunkData[25]);
|
||||
HMG = pinParameter(chunkData[26]);
|
||||
HMR = pinParameter(chunkData[27]);
|
||||
LMF = pinParameter(chunkData[28]);
|
||||
LMG = pinParameter(chunkData[29]);
|
||||
LMR = pinParameter(chunkData[30]);
|
||||
BSF = pinParameter(chunkData[31]);
|
||||
BSG = pinParameter(chunkData[32]);
|
||||
BSR = pinParameter(chunkData[33]);
|
||||
DSC = pinParameter(chunkData[34]);
|
||||
PAN = pinParameter(chunkData[35]);
|
||||
FAD = pinParameter(chunkData[36]);
|
||||
/* We're ignoring byteSize as we found it to be a filthy liar */
|
||||
|
||||
/* calculate any other fields you need here - you could copy in
|
||||
|
|
@ -115,70 +213,215 @@ VstInt32 ConsoleXChannel::setChunk (void* data, VstInt32 byteSize, bool isPreset
|
|||
|
||||
void ConsoleXChannel::setParameter(VstInt32 index, float value) {
|
||||
switch (index) {
|
||||
case kParamA: A = value; break;
|
||||
case kParamB: B = value; break;
|
||||
case kParamC: C = value; break;
|
||||
case kParamD: D = value; break;
|
||||
case kParamE: E = value; break;
|
||||
case kParamF: F = value; break;
|
||||
case kParamG: G = value; break;
|
||||
case kParamH: H = value; break;
|
||||
case kParamHIP: HIP = value; break;
|
||||
case kParamLOP: LOP = value; break;
|
||||
case kParamAIR: AIR = value; break;
|
||||
case kParamFIR: FIR = value; break;
|
||||
case kParamSTO: STO = value; break;
|
||||
case kParamRNG: RNG = value; break;
|
||||
case kParamFCT: FCT = value; break;
|
||||
case kParamSCT: SCT = value; break;
|
||||
case kParamFCR: FCR = value; break;
|
||||
case kParamSCR: SCR = value; break;
|
||||
case kParamFCA: FCA = value; break;
|
||||
case kParamSCA: SCA = value; break;
|
||||
case kParamFCL: FCL = value; break;
|
||||
case kParamSCL: SCL = value; break;
|
||||
case kParamFGT: FGT = value; break;
|
||||
case kParamSGT: SGT = value; break;
|
||||
case kParamFGR: FGR = value; break;
|
||||
case kParamSGR: SGR = value; break;
|
||||
case kParamFGS: FGS = value; break;
|
||||
case kParamSGS: SGS = value; break;
|
||||
case kParamFGL: FGL = value; break;
|
||||
case kParamSGL: SGL = value; break;
|
||||
case kParamTRF: TRF = value; break;
|
||||
case kParamTRG: TRG = value; break;
|
||||
case kParamTRR: TRR = value; break;
|
||||
case kParamHMF: HMF = value; break;
|
||||
case kParamHMG: HMG = value; break;
|
||||
case kParamHMR: HMR = value; break;
|
||||
case kParamLMF: LMF = value; break;
|
||||
case kParamLMG: LMG = value; break;
|
||||
case kParamLMR: LMR = value; break;
|
||||
case kParamBSF: BSF = value; break;
|
||||
case kParamBSG: BSG = value; break;
|
||||
case kParamBSR: BSR = value; break;
|
||||
case kParamDSC: DSC = value; break;
|
||||
case kParamPAN: PAN = value; break;
|
||||
case kParamFAD: FAD = value; break;
|
||||
default: throw; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
float ConsoleXChannel::getParameter(VstInt32 index) {
|
||||
switch (index) {
|
||||
case kParamA: return A; break;
|
||||
case kParamB: return B; break;
|
||||
case kParamC: return C; break;
|
||||
case kParamD: return D; break;
|
||||
case kParamE: return E; break;
|
||||
case kParamF: return F; break;
|
||||
case kParamG: return G; break;
|
||||
case kParamH: return H; break;
|
||||
case kParamHIP: return HIP; break;
|
||||
case kParamLOP: return LOP; break;
|
||||
case kParamAIR: return AIR; break;
|
||||
case kParamFIR: return FIR; break;
|
||||
case kParamSTO: return STO; break;
|
||||
case kParamRNG: return RNG; break;
|
||||
case kParamFCT: return FCT; break;
|
||||
case kParamSCT: return SCT; break;
|
||||
case kParamFCR: return FCR; break;
|
||||
case kParamSCR: return SCR; break;
|
||||
case kParamFCA: return FCA; break;
|
||||
case kParamSCA: return SCA; break;
|
||||
case kParamFCL: return FCL; break;
|
||||
case kParamSCL: return SCL; break;
|
||||
case kParamFGT: return FGT; break;
|
||||
case kParamSGT: return SGT; break;
|
||||
case kParamFGR: return FGR; break;
|
||||
case kParamSGR: return SGR; break;
|
||||
case kParamFGS: return FGS; break;
|
||||
case kParamSGS: return SGS; break;
|
||||
case kParamFGL: return FGL; break;
|
||||
case kParamSGL: return SGL; break;
|
||||
case kParamTRF: return TRF; break;
|
||||
case kParamTRG: return TRG; break;
|
||||
case kParamTRR: return TRR; break;
|
||||
case kParamHMF: return HMF; break;
|
||||
case kParamHMG: return HMG; break;
|
||||
case kParamHMR: return HMR; break;
|
||||
case kParamLMF: return LMF; break;
|
||||
case kParamLMG: return LMG; break;
|
||||
case kParamLMR: return LMR; break;
|
||||
case kParamBSF: return BSF; break;
|
||||
case kParamBSG: return BSG; break;
|
||||
case kParamBSR: return BSR; break;
|
||||
case kParamDSC: return DSC; break;
|
||||
case kParamPAN: return PAN; break;
|
||||
case kParamFAD: return FAD; break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} return 0.0; //we only need to update the relevant name, this is simple to manage
|
||||
}
|
||||
|
||||
void ConsoleXChannel::getParameterName(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "Air", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "Fire", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "Stone", kVstMaxParamStrLen); break;
|
||||
case kParamD: vst_strncpy (text, "Reso", kVstMaxParamStrLen); break;
|
||||
case kParamE: vst_strncpy (text, "Range", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "Top dB", kVstMaxParamStrLen); break;
|
||||
case kParamG: vst_strncpy (text, "Pan", kVstMaxParamStrLen); break;
|
||||
case kParamH: vst_strncpy (text, "Fader", kVstMaxParamStrLen); break;
|
||||
case kParamHIP: vst_strncpy (text, "Highpas", kVstMaxParamStrLen); break;
|
||||
case kParamLOP: vst_strncpy (text, "Lowpass", kVstMaxParamStrLen); break;
|
||||
case kParamAIR: vst_strncpy (text, "Air", kVstMaxParamStrLen); break;
|
||||
case kParamFIR: vst_strncpy (text, "Fire", kVstMaxParamStrLen); break;
|
||||
case kParamSTO: vst_strncpy (text, "Stone", kVstMaxParamStrLen); break;
|
||||
case kParamRNG: vst_strncpy (text, "Range", kVstMaxParamStrLen); break;
|
||||
case kParamFCT: vst_strncpy (text, "FC Thrs", kVstMaxParamStrLen); break;
|
||||
case kParamSCT: vst_strncpy (text, "SC Thrs", kVstMaxParamStrLen); break;
|
||||
case kParamFCR: vst_strncpy (text, "FC Rati", kVstMaxParamStrLen); break;
|
||||
case kParamSCR: vst_strncpy (text, "SC Rati", kVstMaxParamStrLen); break;
|
||||
case kParamFCA: vst_strncpy (text, "FC Atk", kVstMaxParamStrLen); break;
|
||||
case kParamSCA: vst_strncpy (text, "SC Atk", kVstMaxParamStrLen); break;
|
||||
case kParamFCL: vst_strncpy (text, "FC Rls", kVstMaxParamStrLen); break;
|
||||
case kParamSCL: vst_strncpy (text, "SC Rls", kVstMaxParamStrLen); break;
|
||||
case kParamFGT: vst_strncpy (text, "FG Thrs", kVstMaxParamStrLen); break;
|
||||
case kParamSGT: vst_strncpy (text, "SG Thrs", kVstMaxParamStrLen); break;
|
||||
case kParamFGR: vst_strncpy (text, "FG Rati", kVstMaxParamStrLen); break;
|
||||
case kParamSGR: vst_strncpy (text, "SG Rati", kVstMaxParamStrLen); break;
|
||||
case kParamFGS: vst_strncpy (text, "FG Sust", kVstMaxParamStrLen); break;
|
||||
case kParamSGS: vst_strncpy (text, "SG Sust", kVstMaxParamStrLen); break;
|
||||
case kParamFGL: vst_strncpy (text, "FG Rls", kVstMaxParamStrLen); break;
|
||||
case kParamSGL: vst_strncpy (text, "SG Rls", kVstMaxParamStrLen); break;
|
||||
case kParamTRF: vst_strncpy (text, "Tr Freq", kVstMaxParamStrLen); break;
|
||||
case kParamTRG: vst_strncpy (text, "Treble", kVstMaxParamStrLen); break;
|
||||
case kParamTRR: vst_strncpy (text, "Tr Reso", kVstMaxParamStrLen); break;
|
||||
case kParamHMF: vst_strncpy (text, "HM Freq", kVstMaxParamStrLen); break;
|
||||
case kParamHMG: vst_strncpy (text, "HighMid", kVstMaxParamStrLen); break;
|
||||
case kParamHMR: vst_strncpy (text, "HM Reso", kVstMaxParamStrLen); break;
|
||||
case kParamLMF: vst_strncpy (text, "LM Freq", kVstMaxParamStrLen); break;
|
||||
case kParamLMG: vst_strncpy (text, "LowMid", kVstMaxParamStrLen); break;
|
||||
case kParamLMR: vst_strncpy (text, "LM Reso", kVstMaxParamStrLen); break;
|
||||
case kParamBSF: vst_strncpy (text, "Bs Freq", kVstMaxParamStrLen); break;
|
||||
case kParamBSG: vst_strncpy (text, "Bass", kVstMaxParamStrLen); break;
|
||||
case kParamBSR: vst_strncpy (text, "Bs Reso", kVstMaxParamStrLen); break;
|
||||
case kParamDSC: vst_strncpy (text, "Top dB", kVstMaxParamStrLen); break;
|
||||
case kParamPAN: vst_strncpy (text, "Pan", kVstMaxParamStrLen); break;
|
||||
case kParamFAD: vst_strncpy (text, "Fader", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this is our labels for displaying in the VST host
|
||||
}
|
||||
|
||||
void ConsoleXChannel::getParameterDisplay(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: float2string (A, text, kVstMaxParamStrLen); break;
|
||||
case kParamB: float2string (B, text, kVstMaxParamStrLen); break;
|
||||
case kParamC: float2string (C, text, kVstMaxParamStrLen); break;
|
||||
case kParamD: float2string (D, text, kVstMaxParamStrLen); break;
|
||||
case kParamE: float2string (E, text, kVstMaxParamStrLen); break;
|
||||
case kParamF: float2string ((F*70.0)+70.0, text, kVstMaxParamStrLen); break;
|
||||
case kParamG: float2string (G, text, kVstMaxParamStrLen); break;
|
||||
case kParamH: float2string (H, text, kVstMaxParamStrLen); break;
|
||||
case kParamHIP: float2string (HIP, text, kVstMaxParamStrLen); break;
|
||||
case kParamLOP: float2string (LOP, text, kVstMaxParamStrLen); break;
|
||||
case kParamAIR: float2string (AIR, text, kVstMaxParamStrLen); break;
|
||||
case kParamFIR: float2string (FIR, text, kVstMaxParamStrLen); break;
|
||||
case kParamSTO: float2string (STO, text, kVstMaxParamStrLen); break;
|
||||
case kParamRNG: float2string (RNG, text, kVstMaxParamStrLen); break;
|
||||
case kParamFCT: float2string (FCT, text, kVstMaxParamStrLen); break;
|
||||
case kParamSCT: float2string (SCT, text, kVstMaxParamStrLen); break;
|
||||
case kParamFCR: float2string (FCR, text, kVstMaxParamStrLen); break;
|
||||
case kParamSCR: float2string (SCR, text, kVstMaxParamStrLen); break;
|
||||
case kParamFCA: float2string (FCA, text, kVstMaxParamStrLen); break;
|
||||
case kParamSCA: float2string (SCA, text, kVstMaxParamStrLen); break;
|
||||
case kParamFCL: float2string (FCL, text, kVstMaxParamStrLen); break;
|
||||
case kParamSCL: float2string (SCL, text, kVstMaxParamStrLen); break;
|
||||
case kParamFGT: float2string (FGT, text, kVstMaxParamStrLen); break;
|
||||
case kParamSGT: float2string (SGT, text, kVstMaxParamStrLen); break;
|
||||
case kParamFGR: float2string (FGR, text, kVstMaxParamStrLen); break;
|
||||
case kParamSGR: float2string (SGR, text, kVstMaxParamStrLen); break;
|
||||
case kParamFGS: float2string (FGS, text, kVstMaxParamStrLen); break;
|
||||
case kParamSGS: float2string (SGS, text, kVstMaxParamStrLen); break;
|
||||
case kParamFGL: float2string (FGL, text, kVstMaxParamStrLen); break;
|
||||
case kParamSGL: float2string (SGL, text, kVstMaxParamStrLen); break;
|
||||
case kParamTRF: float2string (TRF, text, kVstMaxParamStrLen); break;
|
||||
case kParamTRG: float2string (TRG, text, kVstMaxParamStrLen); break;
|
||||
case kParamTRR: float2string (TRR, text, kVstMaxParamStrLen); break;
|
||||
case kParamHMF: float2string (HMF, text, kVstMaxParamStrLen); break;
|
||||
case kParamHMG: float2string (HMG, text, kVstMaxParamStrLen); break;
|
||||
case kParamHMR: float2string (HMR, text, kVstMaxParamStrLen); break;
|
||||
case kParamLMF: float2string (LMF, text, kVstMaxParamStrLen); break;
|
||||
case kParamLMG: float2string (LMG, text, kVstMaxParamStrLen); break;
|
||||
case kParamLMR: float2string (LMR, text, kVstMaxParamStrLen); break;
|
||||
case kParamBSF: float2string (BSF, text, kVstMaxParamStrLen); break;
|
||||
case kParamBSG: float2string (BSG, text, kVstMaxParamStrLen); break;
|
||||
case kParamBSR: float2string (BSR, text, kVstMaxParamStrLen); break;
|
||||
case kParamDSC: float2string ((DSC*70.0)+70.0, text, kVstMaxParamStrLen); break;
|
||||
case kParamPAN: float2string (PAN, text, kVstMaxParamStrLen); break;
|
||||
case kParamFAD: float2string (FAD, text, kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this displays the values and handles 'popups' where it's discrete choices
|
||||
}
|
||||
|
||||
void ConsoleXChannel::getParameterLabel(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamD: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamE: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "dB", kVstMaxParamStrLen); break;
|
||||
case kParamG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamH: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamHIP: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamLOP: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamAIR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFIR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSTO: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamRNG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFCT: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSCT: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFCR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSCR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFCA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSCA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFCL: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSCL: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFGT: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSGT: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFGR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSGR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFGS: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSGS: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFGL: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamSGL: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamTRF: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamTRG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamTRR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamHMF: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamHMG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamHMR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamLMF: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamLMG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamLMR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamBSF: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamBSG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamBSR: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamDSC: vst_strncpy (text, "dB", kVstMaxParamStrLen); break;
|
||||
case kParamPAN: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamFAD: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,15 +16,44 @@
|
|||
#include <math.h>
|
||||
|
||||
enum {
|
||||
kParamA = 0,
|
||||
kParamB = 1,
|
||||
kParamC = 2,
|
||||
kParamD = 3,
|
||||
kParamE = 4,
|
||||
kParamF = 5,
|
||||
kParamG = 6,
|
||||
kParamH = 7,
|
||||
kNumParameters = 8
|
||||
kParamHIP = 0,
|
||||
kParamLOP = 1,
|
||||
kParamAIR = 2,
|
||||
kParamFIR = 3,
|
||||
kParamSTO = 4,
|
||||
kParamRNG = 5,
|
||||
kParamFCT = 6,
|
||||
kParamSCT = 7,
|
||||
kParamFCR = 8,
|
||||
kParamSCR = 9,
|
||||
kParamFCA = 10,
|
||||
kParamSCA = 11,
|
||||
kParamFCL = 12,
|
||||
kParamSCL = 13,
|
||||
kParamFGT = 14,
|
||||
kParamSGT = 15,
|
||||
kParamFGR = 16,
|
||||
kParamSGR = 17,
|
||||
kParamFGS = 18,
|
||||
kParamSGS = 19,
|
||||
kParamFGL = 20,
|
||||
kParamSGL = 21,
|
||||
kParamTRF = 22,
|
||||
kParamTRG = 23,
|
||||
kParamTRR = 24,
|
||||
kParamHMF = 25,
|
||||
kParamHMG = 26,
|
||||
kParamHMR = 27,
|
||||
kParamLMF = 28,
|
||||
kParamLMG = 29,
|
||||
kParamLMR = 30,
|
||||
kParamBSF = 31,
|
||||
kParamBSG = 32,
|
||||
kParamBSR = 33,
|
||||
kParamDSC = 34,
|
||||
kParamPAN = 35,
|
||||
kParamFAD = 36,
|
||||
kNumParameters = 37
|
||||
}; //
|
||||
const int dscBuf = 90;
|
||||
|
||||
|
|
@ -60,96 +89,112 @@ private:
|
|||
char _programName[kVstMaxProgNameLen + 1];
|
||||
std::set< std::string > _canDo;
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
|
||||
enum {
|
||||
biq_freq,
|
||||
biq_reso,
|
||||
biq_a0,
|
||||
biq_a1,
|
||||
biq_a2,
|
||||
biq_b1,
|
||||
biq_b2,
|
||||
biq_sL1,
|
||||
biq_sL2,
|
||||
biq_sR1,
|
||||
biq_sR2,
|
||||
biq_total
|
||||
};
|
||||
double biquad[biq_total];
|
||||
float HIP;
|
||||
float LOP;
|
||||
float AIR;
|
||||
float FIR;
|
||||
float STO;
|
||||
float RNG;
|
||||
float FCT;
|
||||
float SCT;
|
||||
float FCR;
|
||||
float SCR;
|
||||
float FCA;
|
||||
float SCA;
|
||||
float FCL;
|
||||
float SCL;
|
||||
float FGT;
|
||||
float SGT;
|
||||
float FGR;
|
||||
float SGR;
|
||||
float FGS;
|
||||
float SGS;
|
||||
float FGL;
|
||||
float SGL;
|
||||
float TRF;
|
||||
float TRG;
|
||||
float TRR;
|
||||
float HMF;
|
||||
float HMG;
|
||||
float HMR;
|
||||
float LMF;
|
||||
float LMG;
|
||||
float LMR;
|
||||
float BSF;
|
||||
float BSG;
|
||||
float BSR;
|
||||
float DSC;
|
||||
float PAN;
|
||||
float FAD;
|
||||
|
||||
enum {
|
||||
pvAL1,
|
||||
pvSL1,
|
||||
accSL1,
|
||||
acc2SL1,
|
||||
pvAL2,
|
||||
pvSL2,
|
||||
accSL2,
|
||||
acc2SL2,
|
||||
pvAL3,
|
||||
pvSL3,
|
||||
accSL3,
|
||||
pvAL4,
|
||||
pvSL4,
|
||||
gndavgL,
|
||||
outAL,
|
||||
gainAL,
|
||||
pvAR1,
|
||||
pvSR1,
|
||||
accSR1,
|
||||
acc2SR1,
|
||||
pvAR2,
|
||||
pvSR2,
|
||||
accSR2,
|
||||
acc2SR2,
|
||||
pvAR3,
|
||||
pvSR3,
|
||||
accSR3,
|
||||
pvAR4,
|
||||
pvSR4,
|
||||
gndavgR,
|
||||
outAR,
|
||||
gainAR,
|
||||
hilp_freq, hilp_temp,
|
||||
hilp_a0, hilp_a1, hilp_b1, hilp_b2,
|
||||
hilp_c0, hilp_c1, hilp_d1, hilp_d2,
|
||||
hilp_e0, hilp_e1, hilp_f1, hilp_f2,
|
||||
hilp_aL1, hilp_aL2, hilp_aR1, hilp_aR2,
|
||||
hilp_cL1, hilp_cL2, hilp_cR1, hilp_cR2,
|
||||
hilp_eL1, hilp_eL2, hilp_eR1, hilp_eR2,
|
||||
hilp_total
|
||||
};
|
||||
double highpass[hilp_total];
|
||||
double lowpass[hilp_total];
|
||||
|
||||
enum {
|
||||
pvAL1, pvSL1, accSL1, acc2SL1,
|
||||
pvAL2, pvSL2, accSL2, acc2SL2,
|
||||
pvAL3, pvSL3, accSL3,
|
||||
pvAL4, pvSL4,
|
||||
gndavgL, outAL, gainAL,
|
||||
pvAR1, pvSR1, accSR1, acc2SR1,
|
||||
pvAR2, pvSR2, accSR2, acc2SR2,
|
||||
pvAR3, pvSR3, accSR3,
|
||||
pvAR4, pvSR4,
|
||||
gndavgR, outAR, gainAR,
|
||||
air_total
|
||||
};
|
||||
double air[air_total];
|
||||
|
||||
enum {
|
||||
prevSampL1,
|
||||
prevSlewL1,
|
||||
accSlewL1,
|
||||
prevSampL2,
|
||||
prevSlewL2,
|
||||
accSlewL2,
|
||||
prevSampL3,
|
||||
prevSlewL3,
|
||||
accSlewL3,
|
||||
kalGainL,
|
||||
kalOutL,
|
||||
prevSampR1,
|
||||
prevSlewR1,
|
||||
accSlewR1,
|
||||
prevSampR2,
|
||||
prevSlewR2,
|
||||
accSlewR2,
|
||||
prevSampR3,
|
||||
prevSlewR3,
|
||||
accSlewR3,
|
||||
kalGainR,
|
||||
kalOutR,
|
||||
prevSampL1, prevSlewL1, accSlewL1,
|
||||
prevSampL2, prevSlewL2, accSlewL2,
|
||||
prevSampL3, prevSlewL3, accSlewL3,
|
||||
kalGainL, kalOutL,
|
||||
prevSampR1, prevSlewR1, accSlewR1,
|
||||
prevSampR2, prevSlewR2, accSlewR2,
|
||||
prevSampR3, prevSlewR3, accSlewR3,
|
||||
kalGainR, kalOutR,
|
||||
kal_total
|
||||
};
|
||||
double kal[kal_total];
|
||||
double fireCompL;
|
||||
double fireCompR;
|
||||
double fireGate;
|
||||
double stoneCompL;
|
||||
double stoneCompR;
|
||||
double stoneGate;
|
||||
double airGainA;
|
||||
double airGainB;
|
||||
double fireGainA;
|
||||
double fireGainB;
|
||||
double stoneGainA;
|
||||
double stoneGainB;
|
||||
|
||||
double mpkL[2005];
|
||||
double mpkR[2005];
|
||||
double f[66];
|
||||
double prevfreqMPeak;
|
||||
double prevamountMPeak;
|
||||
int mpc;
|
||||
enum {
|
||||
biqs_freq, biqs_reso, biqs_level,
|
||||
biqs_nonlin, biqs_temp, biqs_dis,
|
||||
biqs_a0, biqs_a1, biqs_b1, biqs_b2,
|
||||
biqs_c0, biqs_c1, biqs_d1, biqs_d2,
|
||||
biqs_e0, biqs_e1, biqs_f1, biqs_f2,
|
||||
biqs_aL1, biqs_aL2, biqs_aR1, biqs_aR2,
|
||||
biqs_cL1, biqs_cL2, biqs_cR1, biqs_cR2,
|
||||
biqs_eL1, biqs_eL2, biqs_eR1, biqs_eR2,
|
||||
biqs_outL, biqs_outR, biqs_total
|
||||
};
|
||||
double high[biqs_total];
|
||||
double hmid[biqs_total];
|
||||
double lmid[biqs_total];
|
||||
double bass[biqs_total];
|
||||
|
||||
double dBaL[dscBuf+5];
|
||||
double dBaR[dscBuf+5];
|
||||
|
|
@ -158,27 +203,14 @@ private:
|
|||
int dBaXL;
|
||||
int dBaXR;
|
||||
|
||||
double trebleGainA;
|
||||
double trebleGainB;
|
||||
double midGainA;
|
||||
double midGainB;
|
||||
double mPeakA;
|
||||
double mPeakB;
|
||||
double bassGainA;
|
||||
double bassGainB;
|
||||
double panA;
|
||||
double panB;
|
||||
double inTrimA;
|
||||
double inTrimB;
|
||||
|
||||
float A;
|
||||
float B;
|
||||
float C;
|
||||
float D;
|
||||
float E;
|
||||
float F;
|
||||
float G;
|
||||
float H;
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,81 +0,0 @@
|
|||
/* ========================================
|
||||
* ConsoleXSubIn - ConsoleXSubIn.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __ConsoleXSubIn_H
|
||||
#include "ConsoleXSubIn.h"
|
||||
#endif
|
||||
|
||||
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new ConsoleXSubIn(audioMaster);}
|
||||
|
||||
ConsoleXSubIn::ConsoleXSubIn(audioMasterCallback audioMaster) :
|
||||
AudioEffectX(audioMaster, kNumPrograms, kNumParameters)
|
||||
{
|
||||
for (int x = 0; x < biq_total; x++) {biquad[x] = 0.0;}
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
//this is reset: values being initialized only once. Startup values, whatever they are.
|
||||
|
||||
_canDo.insert("plugAsChannelInsert"); // plug-in can be used as a channel insert effect.
|
||||
_canDo.insert("plugAsSend"); // plug-in can be used as a send effect.
|
||||
_canDo.insert("x2in2out");
|
||||
setNumInputs(kNumInputs);
|
||||
setNumOutputs(kNumOutputs);
|
||||
setUniqueID(kUniqueId);
|
||||
canProcessReplacing(); // supports output replacing
|
||||
canDoubleReplacing(); // supports double precision processing
|
||||
programsAreChunks(true);
|
||||
vst_strncpy (_programName, "Default", kVstMaxProgNameLen); // default program name
|
||||
}
|
||||
|
||||
ConsoleXSubIn::~ConsoleXSubIn() {}
|
||||
VstInt32 ConsoleXSubIn::getVendorVersion () {return 1000;}
|
||||
void ConsoleXSubIn::setProgramName(char *name) {vst_strncpy (_programName, name, kVstMaxProgNameLen);}
|
||||
void ConsoleXSubIn::getProgramName(char *name) {vst_strncpy (name, _programName, kVstMaxProgNameLen);}
|
||||
//airwindows likes to ignore this stuff. Make your own programs, and make a different plugin rather than
|
||||
//trying to do versioning and preventing people from using older versions. Maybe they like the old one!
|
||||
|
||||
|
||||
VstInt32 ConsoleXSubIn::getChunk (void** data, bool isPreset)
|
||||
{
|
||||
return kNumParameters * sizeof(float);
|
||||
}
|
||||
|
||||
VstInt32 ConsoleXSubIn::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ConsoleXSubIn::setParameter(VstInt32 index, float value) {
|
||||
}
|
||||
|
||||
float ConsoleXSubIn::getParameter(VstInt32 index) {
|
||||
return 0.0; //we only need to update the relevant name, this is simple to manage
|
||||
}
|
||||
|
||||
void ConsoleXSubIn::getParameterName(VstInt32 index, char *text) {
|
||||
}
|
||||
|
||||
void ConsoleXSubIn::getParameterDisplay(VstInt32 index, char *text) {
|
||||
}
|
||||
|
||||
void ConsoleXSubIn::getParameterLabel(VstInt32 index, char *text) {
|
||||
}
|
||||
|
||||
VstInt32 ConsoleXSubIn::canDo(char *text)
|
||||
{ return (_canDo.find(text) == _canDo.end()) ? -1: 1; } // 1 = yes, -1 = no, 0 = don't know
|
||||
|
||||
bool ConsoleXSubIn::getEffectName(char* name) {
|
||||
vst_strncpy(name, "ConsoleXSubIn", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
VstPlugCategory ConsoleXSubIn::getPlugCategory() {return kPlugCategEffect;}
|
||||
|
||||
bool ConsoleXSubIn::getProductString(char* text) {
|
||||
vst_strncpy (text, "airwindows ConsoleXSubIn", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
bool ConsoleXSubIn::getVendorString(char* text) {
|
||||
vst_strncpy (text, "airwindows", kVstMaxVendorStrLen); return true;
|
||||
}
|
||||
|
|
@ -1,154 +0,0 @@
|
|||
/* ========================================
|
||||
* ConsoleXSubIn - ConsoleXSubIn.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __ConsoleXSubIn_H
|
||||
#include "ConsoleXSubIn.h"
|
||||
#endif
|
||||
|
||||
void ConsoleXSubIn::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
float* in1 = inputs[0];
|
||||
float* in2 = inputs[1];
|
||||
float* out1 = outputs[0];
|
||||
float* out2 = outputs[1];
|
||||
|
||||
biquad[biq_freq] = 25000.0/getSampleRate();
|
||||
biquad[biq_reso] = 0.60134489;
|
||||
double K = tan(M_PI * biquad[biq_freq]);
|
||||
double norm = 1.0 / (1.0 + K / biquad[biq_reso] + K * K);
|
||||
biquad[biq_a0] = K * K * norm;
|
||||
biquad[biq_a1] = 2.0 * biquad[biq_a0];
|
||||
biquad[biq_a2] = biquad[biq_a0];
|
||||
biquad[biq_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biquad[biq_b2] = (1.0 - K / biquad[biq_reso] + K * K) * norm;
|
||||
//ultrasonic nonlinear filter
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (biquad[biq_freq] < 0.5) {
|
||||
double nlBiq = fabs(biquad[biq_a0]*(1.0+(inputSampleL*0.25))); if (nlBiq > 1.0) nlBiq = 1.0;
|
||||
double tmp = (inputSampleL * nlBiq) + biquad[biq_sL1];
|
||||
biquad[biq_sL1] = (inputSampleL * biquad[biq_a1]) - (tmp * biquad[biq_b1]) + biquad[biq_sL2];
|
||||
biquad[biq_sL2] = (inputSampleL * nlBiq) - (tmp * biquad[biq_b2]);
|
||||
inputSampleL = tmp;
|
||||
nlBiq = fabs(biquad[biq_a0]*(1.0+(inputSampleR*0.25))); if (nlBiq > 1.0) nlBiq = 1.0;
|
||||
tmp = (inputSampleR * nlBiq) + biquad[biq_sR1];
|
||||
biquad[biq_sR1] = (inputSampleR * biquad[biq_a1]) - (tmp * biquad[biq_b1]) + biquad[biq_sR2];
|
||||
biquad[biq_sR2] = (inputSampleR * nlBiq) - (tmp * biquad[biq_b2]);
|
||||
inputSampleR = tmp;
|
||||
//ultrasonic filter before anything else is done
|
||||
}
|
||||
|
||||
if (inputSampleL > 1.0) inputSampleL = 1.0;
|
||||
else if (inputSampleL > 0.0) inputSampleL = -expm1((log1p(-inputSampleL) * 0.6180339887498949));
|
||||
if (inputSampleL < -1.0) inputSampleL = -1.0;
|
||||
else if (inputSampleL < 0.0) inputSampleL = expm1((log1p(inputSampleL) * 0.6180339887498949));
|
||||
inputSampleL *= 1.6180339887498949;
|
||||
|
||||
if (inputSampleR > 1.0) inputSampleR = 1.0;
|
||||
else if (inputSampleR > 0.0) inputSampleR = -expm1((log1p(-inputSampleR) * 0.6180339887498949));
|
||||
if (inputSampleR < -1.0) inputSampleR = -1.0;
|
||||
else if (inputSampleR < 0.0) inputSampleR = expm1((log1p(inputSampleR) * 0.6180339887498949));
|
||||
inputSampleR *= 1.6180339887498949;
|
||||
//ConsoleXSubIn is purely a decode that is followed with encode on ConsoleXSubOut
|
||||
//It allows for another filtering stage for steep distributed ultrasonic filtering
|
||||
//but pointedly has no controls: it just has to be there, first on the submix
|
||||
|
||||
//begin 32 bit stereo floating point dither
|
||||
int expon; frexpf((float)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
frexpf((float)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
|
||||
void ConsoleXSubIn::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
double* in1 = inputs[0];
|
||||
double* in2 = inputs[1];
|
||||
double* out1 = outputs[0];
|
||||
double* out2 = outputs[1];
|
||||
|
||||
biquad[biq_freq] = 25000.0/getSampleRate();
|
||||
biquad[biq_reso] = 0.60134489;
|
||||
double K = tan(M_PI * biquad[biq_freq]);
|
||||
double norm = 1.0 / (1.0 + K / biquad[biq_reso] + K * K);
|
||||
biquad[biq_a0] = K * K * norm;
|
||||
biquad[biq_a1] = 2.0 * biquad[biq_a0];
|
||||
biquad[biq_a2] = biquad[biq_a0];
|
||||
biquad[biq_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biquad[biq_b2] = (1.0 - K / biquad[biq_reso] + K * K) * norm;
|
||||
//ultrasonic nonlinear filter
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (biquad[biq_freq] < 0.5) {
|
||||
double nlBiq = fabs(biquad[biq_a0]*(1.0+(inputSampleL*0.25))); if (nlBiq > 1.0) nlBiq = 1.0;
|
||||
double tmp = (inputSampleL * nlBiq) + biquad[biq_sL1];
|
||||
biquad[biq_sL1] = (inputSampleL * biquad[biq_a1]) - (tmp * biquad[biq_b1]) + biquad[biq_sL2];
|
||||
biquad[biq_sL2] = (inputSampleL * nlBiq) - (tmp * biquad[biq_b2]);
|
||||
inputSampleL = tmp;
|
||||
nlBiq = fabs(biquad[biq_a0]*(1.0+(inputSampleR*0.25))); if (nlBiq > 1.0) nlBiq = 1.0;
|
||||
tmp = (inputSampleR * nlBiq) + biquad[biq_sR1];
|
||||
biquad[biq_sR1] = (inputSampleR * biquad[biq_a1]) - (tmp * biquad[biq_b1]) + biquad[biq_sR2];
|
||||
biquad[biq_sR2] = (inputSampleR * nlBiq) - (tmp * biquad[biq_b2]);
|
||||
inputSampleR = tmp;
|
||||
//ultrasonic filter before anything else is done
|
||||
}
|
||||
|
||||
if (inputSampleL > 1.0) inputSampleL = 1.0;
|
||||
else if (inputSampleL > 0.0) inputSampleL = -expm1((log1p(-inputSampleL) * 0.6180339887498949));
|
||||
if (inputSampleL < -1.0) inputSampleL = -1.0;
|
||||
else if (inputSampleL < 0.0) inputSampleL = expm1((log1p(inputSampleL) * 0.6180339887498949));
|
||||
inputSampleL *= 1.6180339887498949;
|
||||
|
||||
if (inputSampleR > 1.0) inputSampleR = 1.0;
|
||||
else if (inputSampleR > 0.0) inputSampleR = -expm1((log1p(-inputSampleR) * 0.6180339887498949));
|
||||
if (inputSampleR < -1.0) inputSampleR = -1.0;
|
||||
else if (inputSampleR < 0.0) inputSampleR = expm1((log1p(inputSampleR) * 0.6180339887498949));
|
||||
inputSampleR *= 1.6180339887498949;
|
||||
//ConsoleXSubIn is purely a decode that is followed with encode on ConsoleXSubOut
|
||||
//It allows for another filtering stage for steep distributed ultrasonic filtering
|
||||
//but pointedly has no controls: it just has to be there, first on the submix
|
||||
|
||||
//begin 64 bit stereo floating point dither
|
||||
//int expon; frexp((double)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
//inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//frexp((double)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
//inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//end 64 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,184 +0,0 @@
|
|||
/* ========================================
|
||||
* ConsoleXSubOut - ConsoleXSubOut.h
|
||||
* Created 8/12/11 by SPIAdmin
|
||||
* Copyright (c) Airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __ConsoleXSubOut_H
|
||||
#define __ConsoleXSubOut_H
|
||||
|
||||
#ifndef __audioeffect__
|
||||
#include "audioeffectx.h"
|
||||
#endif
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <math.h>
|
||||
|
||||
enum {
|
||||
kParamA = 0,
|
||||
kParamB = 1,
|
||||
kParamC = 2,
|
||||
kParamD = 3,
|
||||
kParamE = 4,
|
||||
kParamF = 5,
|
||||
kParamG = 6,
|
||||
kParamH = 7,
|
||||
kNumParameters = 8
|
||||
}; //
|
||||
const int dscBuf = 90;
|
||||
|
||||
const int kNumPrograms = 0;
|
||||
const int kNumInputs = 2;
|
||||
const int kNumOutputs = 2;
|
||||
const unsigned long kUniqueId = 'cnxo'; //Change this to what the AU identity is!
|
||||
|
||||
class ConsoleXSubOut :
|
||||
public AudioEffectX
|
||||
{
|
||||
public:
|
||||
ConsoleXSubOut(audioMasterCallback audioMaster);
|
||||
~ConsoleXSubOut();
|
||||
virtual bool getEffectName(char* name); // The plug-in name
|
||||
virtual VstPlugCategory getPlugCategory(); // The general category for the plug-in
|
||||
virtual bool getProductString(char* text); // This is a unique plug-in string provided by Steinberg
|
||||
virtual bool getVendorString(char* text); // Vendor info
|
||||
virtual VstInt32 getVendorVersion(); // Version number
|
||||
virtual void processReplacing (float** inputs, float** outputs, VstInt32 sampleFrames);
|
||||
virtual void processDoubleReplacing (double** inputs, double** outputs, VstInt32 sampleFrames);
|
||||
virtual void getProgramName(char *name); // read the name from the host
|
||||
virtual void setProgramName(char *name); // changes the name of the preset displayed in the host
|
||||
virtual VstInt32 getChunk (void** data, bool isPreset);
|
||||
virtual VstInt32 setChunk (void* data, VstInt32 byteSize, bool isPreset);
|
||||
virtual float getParameter(VstInt32 index); // get the parameter value at the specified index
|
||||
virtual void setParameter(VstInt32 index, float value); // set the parameter at index to value
|
||||
virtual void getParameterLabel(VstInt32 index, char *text); // label for the parameter (eg dB)
|
||||
virtual void getParameterName(VstInt32 index, char *text); // name of the parameter
|
||||
virtual void getParameterDisplay(VstInt32 index, char *text); // text description of the current value
|
||||
virtual VstInt32 canDo(char *text);
|
||||
private:
|
||||
char _programName[kVstMaxProgNameLen + 1];
|
||||
std::set< std::string > _canDo;
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
|
||||
enum {
|
||||
biq_freq,
|
||||
biq_reso,
|
||||
biq_a0,
|
||||
biq_a1,
|
||||
biq_a2,
|
||||
biq_b1,
|
||||
biq_b2,
|
||||
biq_sL1,
|
||||
biq_sL2,
|
||||
biq_sR1,
|
||||
biq_sR2,
|
||||
biq_total
|
||||
};
|
||||
double biquad[biq_total];
|
||||
|
||||
enum {
|
||||
pvAL1,
|
||||
pvSL1,
|
||||
accSL1,
|
||||
acc2SL1,
|
||||
pvAL2,
|
||||
pvSL2,
|
||||
accSL2,
|
||||
acc2SL2,
|
||||
pvAL3,
|
||||
pvSL3,
|
||||
accSL3,
|
||||
pvAL4,
|
||||
pvSL4,
|
||||
gndavgL,
|
||||
outAL,
|
||||
gainAL,
|
||||
pvAR1,
|
||||
pvSR1,
|
||||
accSR1,
|
||||
acc2SR1,
|
||||
pvAR2,
|
||||
pvSR2,
|
||||
accSR2,
|
||||
acc2SR2,
|
||||
pvAR3,
|
||||
pvSR3,
|
||||
accSR3,
|
||||
pvAR4,
|
||||
pvSR4,
|
||||
gndavgR,
|
||||
outAR,
|
||||
gainAR,
|
||||
air_total
|
||||
};
|
||||
double air[air_total];
|
||||
|
||||
enum {
|
||||
prevSampL1,
|
||||
prevSlewL1,
|
||||
accSlewL1,
|
||||
prevSampL2,
|
||||
prevSlewL2,
|
||||
accSlewL2,
|
||||
prevSampL3,
|
||||
prevSlewL3,
|
||||
accSlewL3,
|
||||
kalGainL,
|
||||
kalOutL,
|
||||
prevSampR1,
|
||||
prevSlewR1,
|
||||
accSlewR1,
|
||||
prevSampR2,
|
||||
prevSlewR2,
|
||||
accSlewR2,
|
||||
prevSampR3,
|
||||
prevSlewR3,
|
||||
accSlewR3,
|
||||
kalGainR,
|
||||
kalOutR,
|
||||
kal_total
|
||||
};
|
||||
double kal[kal_total];
|
||||
|
||||
double mpkL[2005];
|
||||
double mpkR[2005];
|
||||
double f[66];
|
||||
double prevfreqMPeak;
|
||||
double prevamountMPeak;
|
||||
int mpc;
|
||||
|
||||
double dBaL[dscBuf+5];
|
||||
double dBaR[dscBuf+5];
|
||||
double dBaPosL;
|
||||
double dBaPosR;
|
||||
int dBaXL;
|
||||
int dBaXR;
|
||||
|
||||
double trebleGainA;
|
||||
double trebleGainB;
|
||||
double midGainA;
|
||||
double midGainB;
|
||||
double mPeakA;
|
||||
double mPeakB;
|
||||
double bassGainA;
|
||||
double bassGainB;
|
||||
double panA;
|
||||
double panB;
|
||||
double inTrimA;
|
||||
double inTrimB;
|
||||
|
||||
float A;
|
||||
float B;
|
||||
float C;
|
||||
float D;
|
||||
float E;
|
||||
float F;
|
||||
float G;
|
||||
float H;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
@ -1,577 +0,0 @@
|
|||
/* ========================================
|
||||
* ConsoleXSubOut - ConsoleXSubOut.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __ConsoleXSubOut_H
|
||||
#include "ConsoleXSubOut.h"
|
||||
#endif
|
||||
|
||||
void ConsoleXSubOut::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
float* in1 = inputs[0];
|
||||
float* in2 = inputs[1];
|
||||
float* out1 = outputs[0];
|
||||
float* out2 = outputs[1];
|
||||
|
||||
VstInt32 inFramesToProcess = sampleFrames; //vst doesn't give us this as a separate variable so we'll make it
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
int cycleEnd = floor(overallscale);
|
||||
if (cycleEnd < 1) cycleEnd = 1;
|
||||
if (cycleEnd > 3) cycleEnd = 3;
|
||||
|
||||
biquad[biq_freq] = 25000.0/getSampleRate();
|
||||
biquad[biq_reso] = 0.89997622;
|
||||
double K = tan(M_PI * biquad[biq_freq]);
|
||||
double norm = 1.0 / (1.0 + K / biquad[biq_reso] + K * K);
|
||||
biquad[biq_a0] = K * K * norm;
|
||||
biquad[biq_a1] = 2.0 * biquad[biq_a0];
|
||||
biquad[biq_a2] = biquad[biq_a0];
|
||||
biquad[biq_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biquad[biq_b2] = (1.0 - K / biquad[biq_reso] + K * K) * norm;
|
||||
//ultrasonic nonlinear filter
|
||||
|
||||
trebleGainA = trebleGainB; trebleGainB = A*2.0;
|
||||
midGainA = midGainB; midGainB = B*2.0;
|
||||
bassGainA = bassGainB; bassGainB = C*2.0;
|
||||
//simple three band to adjust
|
||||
|
||||
//begin ResEQ2 Mid Boost
|
||||
double freqMPeak = pow(D+0.16,3);
|
||||
mPeakA = mPeakB; mPeakB = fabs(midGainB-1.0); //amount of mid peak leak through (or boost)
|
||||
if (midGainB < 1.0) mPeakB *= 0.5;
|
||||
int maxMPeak = (24.0*(2.0-freqMPeak))+16;
|
||||
if ((freqMPeak != prevfreqMPeak)||(mPeakB != prevamountMPeak)) {
|
||||
for (int x = 0; x < maxMPeak; x++) {
|
||||
if (((double)x*freqMPeak) < M_PI_4) f[x] = sin(((double)x*freqMPeak)*4.0)*freqMPeak*sin(((double)(maxMPeak-x)/(double)maxMPeak)*M_PI_2);
|
||||
else f[x] = cos((double)x*freqMPeak)*freqMPeak*sin(((double)(maxMPeak-x)/(double)maxMPeak)*M_PI_2);
|
||||
}
|
||||
prevfreqMPeak = freqMPeak; prevamountMPeak = mPeakB;
|
||||
}//end ResEQ2 Mid Boost
|
||||
//mid peak for either retaining during mid cut, or adding during mid boost
|
||||
|
||||
double kalman = 1.0-pow(E,2);
|
||||
//crossover frequency between mid/bass
|
||||
|
||||
double refdB = (F*70.0)+70.0;
|
||||
double topdB = 0.000000075 * pow(10.0,refdB/20.0) * overallscale;
|
||||
|
||||
panA = panB; panB = G*1.57079633;
|
||||
inTrimA = inTrimB; inTrimB = H*2.0;
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (biquad[biq_freq] < 0.5) {
|
||||
double nlBiq = fabs(biquad[biq_a0]*(1.0+(inputSampleL*0.25))); if (nlBiq > 1.0) nlBiq = 1.0;
|
||||
double tmp = (inputSampleL * nlBiq) + biquad[biq_sL1];
|
||||
biquad[biq_sL1] = (inputSampleL * biquad[biq_a1]) - (tmp * biquad[biq_b1]) + biquad[biq_sL2];
|
||||
biquad[biq_sL2] = (inputSampleL * nlBiq) - (tmp * biquad[biq_b2]);
|
||||
inputSampleL = tmp;
|
||||
nlBiq = fabs(biquad[biq_a0]*(1.0+(inputSampleR*0.25))); if (nlBiq > 1.0) nlBiq = 1.0;
|
||||
tmp = (inputSampleR * nlBiq) + biquad[biq_sR1];
|
||||
biquad[biq_sR1] = (inputSampleR * biquad[biq_a1]) - (tmp * biquad[biq_b1]) + biquad[biq_sR2];
|
||||
biquad[biq_sR2] = (inputSampleR * nlBiq) - (tmp * biquad[biq_b2]);
|
||||
inputSampleR = tmp;
|
||||
//ultrasonic filter before anything else is done
|
||||
}
|
||||
|
||||
double drySampleL = inputSampleL;
|
||||
double drySampleR = inputSampleR;
|
||||
|
||||
double temp = (double)sampleFrames/inFramesToProcess;
|
||||
double trebleGain = (trebleGainA*temp)+(trebleGainB*(1.0-temp));
|
||||
if (trebleGain > 1.0) trebleGain = pow(trebleGain,3.0+sqrt(overallscale));
|
||||
if (trebleGain < 1.0) trebleGain = 1.0-pow(1.0-trebleGain,2);
|
||||
|
||||
double midGain = (midGainA*temp)+(midGainB*(1.0-temp));
|
||||
if (midGain > 1.0) midGain = 1.0;
|
||||
if (midGain < 1.0) midGain = 1.0-pow(1.0-midGain,2);
|
||||
double mPeak = pow((mPeakA*temp)+(mPeakB*(1.0-temp)),2);
|
||||
|
||||
double bassGain = (bassGainA*temp)+(bassGainB*(1.0-temp));
|
||||
if (bassGain > 1.0) bassGain *= bassGain;
|
||||
if (bassGain < 1.0) bassGain = 1.0-pow(1.0-bassGain,2);
|
||||
|
||||
double gainR = (panA*temp)+(panB*(1.0-temp));
|
||||
double gainL = 1.57079633-gainR;
|
||||
gainR = sin(gainR); gainL = sin(gainL);
|
||||
|
||||
double gain = (inTrimA*temp)+(inTrimB*(1.0-temp));
|
||||
if (gain > 1.0) gain *= gain;
|
||||
if (gain < 1.0) gain = 1.0-pow(1.0-gain,2);
|
||||
gain *= 1.527864045000421;
|
||||
|
||||
//begin Air3L
|
||||
air[pvSL4] = air[pvAL4] - air[pvAL3]; air[pvSL3] = air[pvAL3] - air[pvAL2];
|
||||
air[pvSL2] = air[pvAL2] - air[pvAL1]; air[pvSL1] = air[pvAL1] - inputSampleL;
|
||||
air[accSL3] = air[pvSL4] - air[pvSL3]; air[accSL2] = air[pvSL3] - air[pvSL2];
|
||||
air[accSL1] = air[pvSL2] - air[pvSL1];
|
||||
air[acc2SL2] = air[accSL3] - air[accSL2]; air[acc2SL1] = air[accSL2] - air[accSL1];
|
||||
air[outAL] = -(air[pvAL1] + air[pvSL3] + air[acc2SL2] - ((air[acc2SL2] + air[acc2SL1])*0.5));
|
||||
air[gainAL] *= 0.5; air[gainAL] += fabs(drySampleL-air[outAL])*0.5;
|
||||
if (air[gainAL] > 0.3*sqrt(overallscale)) air[gainAL] = 0.3*sqrt(overallscale);
|
||||
air[pvAL4] = air[pvAL3]; air[pvAL3] = air[pvAL2];
|
||||
air[pvAL2] = air[pvAL1]; air[pvAL1] = (air[gainAL] * air[outAL]) + drySampleL;
|
||||
double midL = drySampleL - ((air[outAL]*0.5)+(drySampleL*(0.457-(0.017*overallscale))));
|
||||
temp = (midL + air[gndavgL])*0.5; air[gndavgL] = midL; midL = temp;
|
||||
double trebleL = drySampleL-midL;
|
||||
inputSampleL = midL;
|
||||
//end Air3L
|
||||
|
||||
//begin Air3R
|
||||
air[pvSR4] = air[pvAR4] - air[pvAR3]; air[pvSR3] = air[pvAR3] - air[pvAR2];
|
||||
air[pvSR2] = air[pvAR2] - air[pvAR1]; air[pvSR1] = air[pvAR1] - inputSampleR;
|
||||
air[accSR3] = air[pvSR4] - air[pvSR3]; air[accSR2] = air[pvSR3] - air[pvSR2];
|
||||
air[accSR1] = air[pvSR2] - air[pvSR1];
|
||||
air[acc2SR2] = air[accSR3] - air[accSR2]; air[acc2SR1] = air[accSR2] - air[accSR1];
|
||||
air[outAR] = -(air[pvAR1] + air[pvSR3] + air[acc2SR2] - ((air[acc2SR2] + air[acc2SR1])*0.5));
|
||||
air[gainAR] *= 0.5; air[gainAR] += fabs(drySampleR-air[outAR])*0.5;
|
||||
if (air[gainAR] > 0.3*sqrt(overallscale)) air[gainAR] = 0.3*sqrt(overallscale);
|
||||
air[pvAR4] = air[pvAR3]; air[pvAR3] = air[pvAR2];
|
||||
air[pvAR2] = air[pvAR1]; air[pvAR1] = (air[gainAR] * air[outAR]) + drySampleR;
|
||||
double midR = drySampleR - ((air[outAR]*0.5)+(drySampleR*(0.457-(0.017*overallscale))));
|
||||
temp = (midR + air[gndavgR])*0.5; air[gndavgR] = midR; midR = temp;
|
||||
double trebleR = drySampleR-midR;
|
||||
inputSampleR = midR;
|
||||
//end Air3R
|
||||
|
||||
//begin KalmanL
|
||||
temp = inputSampleL = inputSampleL*(1.0-kalman)*0.777;
|
||||
inputSampleL *= (1.0-kalman);
|
||||
//set up gain levels to control the beast
|
||||
kal[prevSlewL3] += kal[prevSampL3] - kal[prevSampL2]; kal[prevSlewL3] *= 0.5;
|
||||
kal[prevSlewL2] += kal[prevSampL2] - kal[prevSampL1]; kal[prevSlewL2] *= 0.5;
|
||||
kal[prevSlewL1] += kal[prevSampL1] - inputSampleL; kal[prevSlewL1] *= 0.5;
|
||||
//make slews from each set of samples used
|
||||
kal[accSlewL2] += kal[prevSlewL3] - kal[prevSlewL2]; kal[accSlewL2] *= 0.5;
|
||||
kal[accSlewL1] += kal[prevSlewL2] - kal[prevSlewL1]; kal[accSlewL1] *= 0.5;
|
||||
//differences between slews: rate of change of rate of change
|
||||
kal[accSlewL3] += (kal[accSlewL2] - kal[accSlewL1]); kal[accSlewL3] *= 0.5;
|
||||
//entering the abyss, what even is this
|
||||
kal[kalOutL] += kal[prevSampL1] + kal[prevSlewL2] + kal[accSlewL3]; kal[kalOutL] *= 0.5;
|
||||
//resynthesizing predicted result (all iir smoothed)
|
||||
kal[kalGainL] += fabs(temp-kal[kalOutL])*kalman*8.0; kal[kalGainL] *= 0.5;
|
||||
//madness takes its toll. Kalman Gain: how much dry to retain
|
||||
if (kal[kalGainL] > kalman*0.5) kal[kalGainL] = kalman*0.5;
|
||||
//attempts to avoid explosions
|
||||
kal[kalOutL] += (temp*(1.0-(0.68+(kalman*0.157))));
|
||||
//this is for tuning a really complete cancellation up around Nyquist
|
||||
kal[prevSampL3] = kal[prevSampL2]; kal[prevSampL2] = kal[prevSampL1];
|
||||
kal[prevSampL1] = (kal[kalGainL] * kal[kalOutL]) + ((1.0-kal[kalGainL])*temp);
|
||||
//feed the chain of previous samples
|
||||
if (kal[prevSampL1] > 1.0) kal[prevSampL1] = 1.0; if (kal[prevSampL1] < -1.0) kal[prevSampL1] = -1.0;
|
||||
double bassL = kal[kalOutL]*0.777;
|
||||
midL -= bassL;
|
||||
//end KalmanL
|
||||
|
||||
//begin KalmanR
|
||||
temp = inputSampleR = inputSampleR*(1.0-kalman)*0.777;
|
||||
inputSampleR *= (1.0-kalman);
|
||||
//set up gain levels to control the beast
|
||||
kal[prevSlewR3] += kal[prevSampR3] - kal[prevSampR2]; kal[prevSlewR3] *= 0.5;
|
||||
kal[prevSlewR2] += kal[prevSampR2] - kal[prevSampR1]; kal[prevSlewR2] *= 0.5;
|
||||
kal[prevSlewR1] += kal[prevSampR1] - inputSampleR; kal[prevSlewR1] *= 0.5;
|
||||
//make slews from each set of samples used
|
||||
kal[accSlewR2] += kal[prevSlewR3] - kal[prevSlewR2]; kal[accSlewR2] *= 0.5;
|
||||
kal[accSlewR1] += kal[prevSlewR2] - kal[prevSlewR1]; kal[accSlewR1] *= 0.5;
|
||||
//differences between slews: rate of change of rate of change
|
||||
kal[accSlewR3] += (kal[accSlewR2] - kal[accSlewR1]); kal[accSlewR3] *= 0.5;
|
||||
//entering the abyss, what even is this
|
||||
kal[kalOutR] += kal[prevSampR1] + kal[prevSlewR2] + kal[accSlewR3]; kal[kalOutR] *= 0.5;
|
||||
//resynthesizing predicted result (all iir smoothed)
|
||||
kal[kalGainR] += fabs(temp-kal[kalOutR])*kalman*8.0; kal[kalGainR] *= 0.5;
|
||||
//madness takes its toll. Kalman Gain: how much dry to retain
|
||||
if (kal[kalGainR] > kalman*0.5) kal[kalGainR] = kalman*0.5;
|
||||
//attempts to avoid explosions
|
||||
kal[kalOutR] += (temp*(1.0-(0.68+(kalman*0.157))));
|
||||
//this is for tuning a really complete cancellation up around Nyquist
|
||||
kal[prevSampR3] = kal[prevSampR2]; kal[prevSampR2] = kal[prevSampR1];
|
||||
kal[prevSampR1] = (kal[kalGainR] * kal[kalOutR]) + ((1.0-kal[kalGainR])*temp);
|
||||
//feed the chain of previous samples
|
||||
if (kal[prevSampR1] > 1.0) kal[prevSampR1] = 1.0; if (kal[prevSampR1] < -1.0) kal[prevSampR1] = -1.0;
|
||||
double bassR = kal[kalOutR]*0.777;
|
||||
midR -= bassR;
|
||||
//end KalmanR
|
||||
|
||||
//begin ResEQ2 Mid Boost
|
||||
mpc++; if (mpc < 1 || mpc > 2001) mpc = 1;
|
||||
mpkL[mpc] = midL;
|
||||
mpkR[mpc] = midR;
|
||||
double midPeakL = 0.0;
|
||||
double midPeakR = 0.0;
|
||||
for (int x = 0; x < maxMPeak; x++) {
|
||||
int y = x*cycleEnd;
|
||||
switch (cycleEnd)
|
||||
{
|
||||
case 1:
|
||||
midPeakL += (mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x]);
|
||||
midPeakR += (mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x]); break;
|
||||
case 2:
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.5);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.5); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.5);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.5); break;
|
||||
case 3:
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333); break;
|
||||
case 4:
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25); //break
|
||||
}
|
||||
}//end ResEQ2 Mid Boost creating
|
||||
|
||||
inputSampleL = ((bassL*bassGain) + (midL*midGain) + (midPeakL*mPeak) + (trebleL*trebleGain)) * gainL * gain;
|
||||
inputSampleR = ((bassR*bassGain) + (midR*midGain) + (midPeakR*mPeak) + (trebleR*trebleGain)) * gainR * gain;
|
||||
//applies BitShiftPan pan section, and smoothed fader gain
|
||||
|
||||
inputSampleL *= topdB;
|
||||
if (inputSampleL < -0.222) inputSampleL = -0.222; if (inputSampleL > 0.222) inputSampleL = 0.222;
|
||||
dBaL[dBaXL] = inputSampleL; dBaPosL *= 0.5; dBaPosL += fabs((inputSampleL*((inputSampleL*0.25)-0.5))*0.5);
|
||||
int dBdly = floor(dBaPosL*dscBuf);
|
||||
double dBi = (dBaPosL*dscBuf)-dBdly;
|
||||
inputSampleL = dBaL[dBaXL-dBdly +((dBaXL-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleL += dBaL[dBaXL-dBdly +((dBaXL-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBaXL++; if (dBaXL < 0 || dBaXL >= dscBuf) dBaXL = 0;
|
||||
inputSampleL /= topdB;
|
||||
inputSampleR *= topdB;
|
||||
if (inputSampleR < -0.222) inputSampleR = -0.222; if (inputSampleR > 0.222) inputSampleR = 0.222;
|
||||
dBaR[dBaXR] = inputSampleR; dBaPosR *= 0.5; dBaPosR += fabs((inputSampleR*((inputSampleR*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBaPosR*dscBuf);
|
||||
dBi = (dBaPosR*dscBuf)-dBdly;
|
||||
inputSampleR = dBaR[dBaXR-dBdly +((dBaXR-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleR += dBaR[dBaXR-dBdly +((dBaXR-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBaXR++; if (dBaXR < 0 || dBaXR >= dscBuf) dBaXR = 0;
|
||||
inputSampleR /= topdB;
|
||||
//top dB processing for distributed discontinuity modeling air nonlinearity
|
||||
|
||||
inputSampleL *= 0.618033988749895;
|
||||
if (inputSampleL > 1.0) inputSampleL = 1.0;
|
||||
else if (inputSampleL > 0.0) inputSampleL = -expm1((log1p(-inputSampleL) * 1.618033988749895));
|
||||
if (inputSampleL < -1.0) inputSampleL = -1.0;
|
||||
else if (inputSampleL < 0.0) inputSampleL = expm1((log1p(inputSampleL) * 1.618033988749895));
|
||||
|
||||
inputSampleR *= 0.618033988749895;
|
||||
if (inputSampleR > 1.0) inputSampleR = 1.0;
|
||||
else if (inputSampleR > 0.0) inputSampleR = -expm1((log1p(-inputSampleR) * 1.618033988749895));
|
||||
if (inputSampleR < -1.0) inputSampleR = -1.0;
|
||||
else if (inputSampleR < 0.0) inputSampleR = expm1((log1p(inputSampleR) * 1.618033988749895));
|
||||
|
||||
//begin 32 bit stereo floating point dither
|
||||
int expon; frexpf((float)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
frexpf((float)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
|
||||
void ConsoleXSubOut::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
double* in1 = inputs[0];
|
||||
double* in2 = inputs[1];
|
||||
double* out1 = outputs[0];
|
||||
double* out2 = outputs[1];
|
||||
VstInt32 inFramesToProcess = sampleFrames; //vst doesn't give us this as a separate variable so we'll make it
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
int cycleEnd = floor(overallscale);
|
||||
if (cycleEnd < 1) cycleEnd = 1;
|
||||
if (cycleEnd > 3) cycleEnd = 3;
|
||||
|
||||
biquad[biq_freq] = 25000.0/getSampleRate();
|
||||
biquad[biq_reso] = 0.89997622;
|
||||
double K = tan(M_PI * biquad[biq_freq]);
|
||||
double norm = 1.0 / (1.0 + K / biquad[biq_reso] + K * K);
|
||||
biquad[biq_a0] = K * K * norm;
|
||||
biquad[biq_a1] = 2.0 * biquad[biq_a0];
|
||||
biquad[biq_a2] = biquad[biq_a0];
|
||||
biquad[biq_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biquad[biq_b2] = (1.0 - K / biquad[biq_reso] + K * K) * norm;
|
||||
//ultrasonic nonlinear filter
|
||||
|
||||
trebleGainA = trebleGainB; trebleGainB = A*2.0;
|
||||
midGainA = midGainB; midGainB = B*2.0;
|
||||
bassGainA = bassGainB; bassGainB = C*2.0;
|
||||
//simple three band to adjust
|
||||
|
||||
//begin ResEQ2 Mid Boost
|
||||
double freqMPeak = pow(D+0.16,3);
|
||||
mPeakA = mPeakB; mPeakB = fabs(midGainB-1.0); //amount of mid peak leak through (or boost)
|
||||
if (midGainB < 1.0) mPeakB *= 0.5;
|
||||
int maxMPeak = (24.0*(2.0-freqMPeak))+16;
|
||||
if ((freqMPeak != prevfreqMPeak)||(mPeakB != prevamountMPeak)) {
|
||||
for (int x = 0; x < maxMPeak; x++) {
|
||||
if (((double)x*freqMPeak) < M_PI_4) f[x] = sin(((double)x*freqMPeak)*4.0)*freqMPeak*sin(((double)(maxMPeak-x)/(double)maxMPeak)*M_PI_2);
|
||||
else f[x] = cos((double)x*freqMPeak)*freqMPeak*sin(((double)(maxMPeak-x)/(double)maxMPeak)*M_PI_2);
|
||||
}
|
||||
prevfreqMPeak = freqMPeak; prevamountMPeak = mPeakB;
|
||||
}//end ResEQ2 Mid Boost
|
||||
//mid peak for either retaining during mid cut, or adding during mid boost
|
||||
|
||||
double kalman = 1.0-pow(E,2);
|
||||
//crossover frequency between mid/bass
|
||||
|
||||
double refdB = (F*70.0)+70.0;
|
||||
double topdB = 0.000000075 * pow(10.0,refdB/20.0) * overallscale;
|
||||
|
||||
panA = panB; panB = G*1.57079633;
|
||||
inTrimA = inTrimB; inTrimB = H*2.0;
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (biquad[biq_freq] < 0.5) {
|
||||
double nlBiq = fabs(biquad[biq_a0]*(1.0+(inputSampleL*0.25))); if (nlBiq > 1.0) nlBiq = 1.0;
|
||||
double tmp = (inputSampleL * nlBiq) + biquad[biq_sL1];
|
||||
biquad[biq_sL1] = (inputSampleL * biquad[biq_a1]) - (tmp * biquad[biq_b1]) + biquad[biq_sL2];
|
||||
biquad[biq_sL2] = (inputSampleL * nlBiq) - (tmp * biquad[biq_b2]);
|
||||
inputSampleL = tmp;
|
||||
nlBiq = fabs(biquad[biq_a0]*(1.0+(inputSampleR*0.25))); if (nlBiq > 1.0) nlBiq = 1.0;
|
||||
tmp = (inputSampleR * nlBiq) + biquad[biq_sR1];
|
||||
biquad[biq_sR1] = (inputSampleR * biquad[biq_a1]) - (tmp * biquad[biq_b1]) + biquad[biq_sR2];
|
||||
biquad[biq_sR2] = (inputSampleR * nlBiq) - (tmp * biquad[biq_b2]);
|
||||
inputSampleR = tmp;
|
||||
//ultrasonic filter before anything else is done
|
||||
}
|
||||
|
||||
double drySampleL = inputSampleL;
|
||||
double drySampleR = inputSampleR;
|
||||
|
||||
double temp = (double)sampleFrames/inFramesToProcess;
|
||||
double trebleGain = (trebleGainA*temp)+(trebleGainB*(1.0-temp));
|
||||
if (trebleGain > 1.0) trebleGain = pow(trebleGain,3.0+sqrt(overallscale));
|
||||
if (trebleGain < 1.0) trebleGain = 1.0-pow(1.0-trebleGain,2);
|
||||
|
||||
double midGain = (midGainA*temp)+(midGainB*(1.0-temp));
|
||||
if (midGain > 1.0) midGain = 1.0;
|
||||
if (midGain < 1.0) midGain = 1.0-pow(1.0-midGain,2);
|
||||
double mPeak = pow((mPeakA*temp)+(mPeakB*(1.0-temp)),2);
|
||||
|
||||
double bassGain = (bassGainA*temp)+(bassGainB*(1.0-temp));
|
||||
if (bassGain > 1.0) bassGain *= bassGain;
|
||||
if (bassGain < 1.0) bassGain = 1.0-pow(1.0-bassGain,2);
|
||||
|
||||
double gainR = (panA*temp)+(panB*(1.0-temp));
|
||||
double gainL = 1.57079633-gainR;
|
||||
gainR = sin(gainR); gainL = sin(gainL);
|
||||
|
||||
double gain = (inTrimA*temp)+(inTrimB*(1.0-temp));
|
||||
if (gain > 1.0) gain *= gain;
|
||||
if (gain < 1.0) gain = 1.0-pow(1.0-gain,2);
|
||||
gain *= 1.527864045000421;
|
||||
|
||||
//begin Air3L
|
||||
air[pvSL4] = air[pvAL4] - air[pvAL3]; air[pvSL3] = air[pvAL3] - air[pvAL2];
|
||||
air[pvSL2] = air[pvAL2] - air[pvAL1]; air[pvSL1] = air[pvAL1] - inputSampleL;
|
||||
air[accSL3] = air[pvSL4] - air[pvSL3]; air[accSL2] = air[pvSL3] - air[pvSL2];
|
||||
air[accSL1] = air[pvSL2] - air[pvSL1];
|
||||
air[acc2SL2] = air[accSL3] - air[accSL2]; air[acc2SL1] = air[accSL2] - air[accSL1];
|
||||
air[outAL] = -(air[pvAL1] + air[pvSL3] + air[acc2SL2] - ((air[acc2SL2] + air[acc2SL1])*0.5));
|
||||
air[gainAL] *= 0.5; air[gainAL] += fabs(drySampleL-air[outAL])*0.5;
|
||||
if (air[gainAL] > 0.3*sqrt(overallscale)) air[gainAL] = 0.3*sqrt(overallscale);
|
||||
air[pvAL4] = air[pvAL3]; air[pvAL3] = air[pvAL2];
|
||||
air[pvAL2] = air[pvAL1]; air[pvAL1] = (air[gainAL] * air[outAL]) + drySampleL;
|
||||
double midL = drySampleL - ((air[outAL]*0.5)+(drySampleL*(0.457-(0.017*overallscale))));
|
||||
temp = (midL + air[gndavgL])*0.5; air[gndavgL] = midL; midL = temp;
|
||||
double trebleL = drySampleL-midL;
|
||||
inputSampleL = midL;
|
||||
//end Air3L
|
||||
|
||||
//begin Air3R
|
||||
air[pvSR4] = air[pvAR4] - air[pvAR3]; air[pvSR3] = air[pvAR3] - air[pvAR2];
|
||||
air[pvSR2] = air[pvAR2] - air[pvAR1]; air[pvSR1] = air[pvAR1] - inputSampleR;
|
||||
air[accSR3] = air[pvSR4] - air[pvSR3]; air[accSR2] = air[pvSR3] - air[pvSR2];
|
||||
air[accSR1] = air[pvSR2] - air[pvSR1];
|
||||
air[acc2SR2] = air[accSR3] - air[accSR2]; air[acc2SR1] = air[accSR2] - air[accSR1];
|
||||
air[outAR] = -(air[pvAR1] + air[pvSR3] + air[acc2SR2] - ((air[acc2SR2] + air[acc2SR1])*0.5));
|
||||
air[gainAR] *= 0.5; air[gainAR] += fabs(drySampleR-air[outAR])*0.5;
|
||||
if (air[gainAR] > 0.3*sqrt(overallscale)) air[gainAR] = 0.3*sqrt(overallscale);
|
||||
air[pvAR4] = air[pvAR3]; air[pvAR3] = air[pvAR2];
|
||||
air[pvAR2] = air[pvAR1]; air[pvAR1] = (air[gainAR] * air[outAR]) + drySampleR;
|
||||
double midR = drySampleR - ((air[outAR]*0.5)+(drySampleR*(0.457-(0.017*overallscale))));
|
||||
temp = (midR + air[gndavgR])*0.5; air[gndavgR] = midR; midR = temp;
|
||||
double trebleR = drySampleR-midR;
|
||||
inputSampleR = midR;
|
||||
//end Air3R
|
||||
|
||||
//begin KalmanL
|
||||
temp = inputSampleL = inputSampleL*(1.0-kalman)*0.777;
|
||||
inputSampleL *= (1.0-kalman);
|
||||
//set up gain levels to control the beast
|
||||
kal[prevSlewL3] += kal[prevSampL3] - kal[prevSampL2]; kal[prevSlewL3] *= 0.5;
|
||||
kal[prevSlewL2] += kal[prevSampL2] - kal[prevSampL1]; kal[prevSlewL2] *= 0.5;
|
||||
kal[prevSlewL1] += kal[prevSampL1] - inputSampleL; kal[prevSlewL1] *= 0.5;
|
||||
//make slews from each set of samples used
|
||||
kal[accSlewL2] += kal[prevSlewL3] - kal[prevSlewL2]; kal[accSlewL2] *= 0.5;
|
||||
kal[accSlewL1] += kal[prevSlewL2] - kal[prevSlewL1]; kal[accSlewL1] *= 0.5;
|
||||
//differences between slews: rate of change of rate of change
|
||||
kal[accSlewL3] += (kal[accSlewL2] - kal[accSlewL1]); kal[accSlewL3] *= 0.5;
|
||||
//entering the abyss, what even is this
|
||||
kal[kalOutL] += kal[prevSampL1] + kal[prevSlewL2] + kal[accSlewL3]; kal[kalOutL] *= 0.5;
|
||||
//resynthesizing predicted result (all iir smoothed)
|
||||
kal[kalGainL] += fabs(temp-kal[kalOutL])*kalman*8.0; kal[kalGainL] *= 0.5;
|
||||
//madness takes its toll. Kalman Gain: how much dry to retain
|
||||
if (kal[kalGainL] > kalman*0.5) kal[kalGainL] = kalman*0.5;
|
||||
//attempts to avoid explosions
|
||||
kal[kalOutL] += (temp*(1.0-(0.68+(kalman*0.157))));
|
||||
//this is for tuning a really complete cancellation up around Nyquist
|
||||
kal[prevSampL3] = kal[prevSampL2]; kal[prevSampL2] = kal[prevSampL1];
|
||||
kal[prevSampL1] = (kal[kalGainL] * kal[kalOutL]) + ((1.0-kal[kalGainL])*temp);
|
||||
//feed the chain of previous samples
|
||||
if (kal[prevSampL1] > 1.0) kal[prevSampL1] = 1.0; if (kal[prevSampL1] < -1.0) kal[prevSampL1] = -1.0;
|
||||
double bassL = kal[kalOutL]*0.777;
|
||||
midL -= bassL;
|
||||
//end KalmanL
|
||||
|
||||
//begin KalmanR
|
||||
temp = inputSampleR = inputSampleR*(1.0-kalman)*0.777;
|
||||
inputSampleR *= (1.0-kalman);
|
||||
//set up gain levels to control the beast
|
||||
kal[prevSlewR3] += kal[prevSampR3] - kal[prevSampR2]; kal[prevSlewR3] *= 0.5;
|
||||
kal[prevSlewR2] += kal[prevSampR2] - kal[prevSampR1]; kal[prevSlewR2] *= 0.5;
|
||||
kal[prevSlewR1] += kal[prevSampR1] - inputSampleR; kal[prevSlewR1] *= 0.5;
|
||||
//make slews from each set of samples used
|
||||
kal[accSlewR2] += kal[prevSlewR3] - kal[prevSlewR2]; kal[accSlewR2] *= 0.5;
|
||||
kal[accSlewR1] += kal[prevSlewR2] - kal[prevSlewR1]; kal[accSlewR1] *= 0.5;
|
||||
//differences between slews: rate of change of rate of change
|
||||
kal[accSlewR3] += (kal[accSlewR2] - kal[accSlewR1]); kal[accSlewR3] *= 0.5;
|
||||
//entering the abyss, what even is this
|
||||
kal[kalOutR] += kal[prevSampR1] + kal[prevSlewR2] + kal[accSlewR3]; kal[kalOutR] *= 0.5;
|
||||
//resynthesizing predicted result (all iir smoothed)
|
||||
kal[kalGainR] += fabs(temp-kal[kalOutR])*kalman*8.0; kal[kalGainR] *= 0.5;
|
||||
//madness takes its toll. Kalman Gain: how much dry to retain
|
||||
if (kal[kalGainR] > kalman*0.5) kal[kalGainR] = kalman*0.5;
|
||||
//attempts to avoid explosions
|
||||
kal[kalOutR] += (temp*(1.0-(0.68+(kalman*0.157))));
|
||||
//this is for tuning a really complete cancellation up around Nyquist
|
||||
kal[prevSampR3] = kal[prevSampR2]; kal[prevSampR2] = kal[prevSampR1];
|
||||
kal[prevSampR1] = (kal[kalGainR] * kal[kalOutR]) + ((1.0-kal[kalGainR])*temp);
|
||||
//feed the chain of previous samples
|
||||
if (kal[prevSampR1] > 1.0) kal[prevSampR1] = 1.0; if (kal[prevSampR1] < -1.0) kal[prevSampR1] = -1.0;
|
||||
double bassR = kal[kalOutR]*0.777;
|
||||
midR -= bassR;
|
||||
//end KalmanR
|
||||
|
||||
//begin ResEQ2 Mid Boost
|
||||
mpc++; if (mpc < 1 || mpc > 2001) mpc = 1;
|
||||
mpkL[mpc] = midL;
|
||||
mpkR[mpc] = midR;
|
||||
double midPeakL = 0.0;
|
||||
double midPeakR = 0.0;
|
||||
for (int x = 0; x < maxMPeak; x++) {
|
||||
int y = x*cycleEnd;
|
||||
switch (cycleEnd)
|
||||
{
|
||||
case 1:
|
||||
midPeakL += (mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x]);
|
||||
midPeakR += (mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x]); break;
|
||||
case 2:
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.5);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.5); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.5);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.5); break;
|
||||
case 3:
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.333); break;
|
||||
case 4:
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25); y--;
|
||||
midPeakL += ((mpkL[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25);
|
||||
midPeakR += ((mpkR[(mpc-y)+((mpc-y < 1)?2001:0)] * f[x])*0.25); //break
|
||||
}
|
||||
}//end ResEQ2 Mid Boost creating
|
||||
|
||||
inputSampleL = ((bassL*bassGain) + (midL*midGain) + (midPeakL*mPeak) + (trebleL*trebleGain)) * gainL * gain;
|
||||
inputSampleR = ((bassR*bassGain) + (midR*midGain) + (midPeakR*mPeak) + (trebleR*trebleGain)) * gainR * gain;
|
||||
//applies BitShiftPan pan section, and smoothed fader gain
|
||||
|
||||
inputSampleL *= topdB;
|
||||
if (inputSampleL < -0.222) inputSampleL = -0.222; if (inputSampleL > 0.222) inputSampleL = 0.222;
|
||||
dBaL[dBaXL] = inputSampleL; dBaPosL *= 0.5; dBaPosL += fabs((inputSampleL*((inputSampleL*0.25)-0.5))*0.5);
|
||||
int dBdly = floor(dBaPosL*dscBuf);
|
||||
double dBi = (dBaPosL*dscBuf)-dBdly;
|
||||
inputSampleL = dBaL[dBaXL-dBdly +((dBaXL-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleL += dBaL[dBaXL-dBdly +((dBaXL-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBaXL++; if (dBaXL < 0 || dBaXL >= dscBuf) dBaXL = 0;
|
||||
inputSampleL /= topdB;
|
||||
inputSampleR *= topdB;
|
||||
if (inputSampleR < -0.222) inputSampleR = -0.222; if (inputSampleR > 0.222) inputSampleR = 0.222;
|
||||
dBaR[dBaXR] = inputSampleR; dBaPosR *= 0.5; dBaPosR += fabs((inputSampleR*((inputSampleR*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBaPosR*dscBuf);
|
||||
dBi = (dBaPosR*dscBuf)-dBdly;
|
||||
inputSampleR = dBaR[dBaXR-dBdly +((dBaXR-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleR += dBaR[dBaXR-dBdly +((dBaXR-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBaXR++; if (dBaXR < 0 || dBaXR >= dscBuf) dBaXR = 0;
|
||||
inputSampleR /= topdB;
|
||||
//top dB processing for distributed discontinuity modeling air nonlinearity
|
||||
|
||||
inputSampleL *= 0.618033988749895;
|
||||
if (inputSampleL > 1.0) inputSampleL = 1.0;
|
||||
else if (inputSampleL > 0.0) inputSampleL = -expm1((log1p(-inputSampleL) * 1.618033988749895));
|
||||
if (inputSampleL < -1.0) inputSampleL = -1.0;
|
||||
else if (inputSampleL < 0.0) inputSampleL = expm1((log1p(inputSampleL) * 1.618033988749895));
|
||||
|
||||
inputSampleR *= 0.618033988749895;
|
||||
if (inputSampleR > 1.0) inputSampleR = 1.0;
|
||||
else if (inputSampleR > 0.0) inputSampleR = -expm1((log1p(-inputSampleR) * 1.618033988749895));
|
||||
if (inputSampleR < -1.0) inputSampleR = -1.0;
|
||||
else if (inputSampleR < 0.0) inputSampleR = expm1((log1p(inputSampleR) * 1.618033988749895));
|
||||
|
||||
//begin 64 bit stereo floating point dither
|
||||
//int expon; frexp((double)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
//inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//frexp((double)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
//inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//end 64 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
163
plugins/LinuxVST/src/Distance3/Distance3.cpp
Executable file
163
plugins/LinuxVST/src/Distance3/Distance3.cpp
Executable file
|
|
@ -0,0 +1,163 @@
|
|||
/* ========================================
|
||||
* Distance3 - Distance3.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __Distance3_H
|
||||
#include "Distance3.h"
|
||||
#endif
|
||||
|
||||
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new Distance3(audioMaster);}
|
||||
|
||||
Distance3::Distance3(audioMasterCallback audioMaster) :
|
||||
AudioEffectX(audioMaster, kNumPrograms, kNumParameters)
|
||||
{
|
||||
A = 0.5;
|
||||
B = 0.5;
|
||||
C = 1.0;
|
||||
|
||||
prevresultAL = lastclampAL = clampAL = changeAL = lastAL = 0.0;
|
||||
prevresultBL = lastclampBL = clampBL = changeBL = lastBL = 0.0;
|
||||
prevresultCL = lastclampCL = clampCL = changeCL = lastCL = 0.0;
|
||||
prevresultAR = lastclampAR = clampAR = changeAR = lastAR = 0.0;
|
||||
prevresultBR = lastclampBR = clampBR = changeBR = lastBR = 0.0;
|
||||
prevresultCR = lastclampCR = clampCR = changeCR = lastCR = 0.0;
|
||||
for(int count = 0; count < dscBuf+2; count++) {
|
||||
dBaL[count] = 0.0;
|
||||
dBbL[count] = 0.0;
|
||||
dBcL[count] = 0.0;
|
||||
dBaR[count] = 0.0;
|
||||
dBbR[count] = 0.0;
|
||||
dBcR[count] = 0.0;
|
||||
}
|
||||
dBaPosL = 0.0;
|
||||
dBbPosL = 0.0;
|
||||
dBcPosL = 0.0;
|
||||
dBaPosR = 0.0;
|
||||
dBbPosR = 0.0;
|
||||
dBcPosR = 0.0;
|
||||
dBaXL = 1;
|
||||
dBbXL = 1;
|
||||
dBcXL = 1;
|
||||
dBaXR = 1;
|
||||
dBbXR = 1;
|
||||
dBcXR = 1;
|
||||
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
//this is reset: values being initialized only once. Startup values, whatever they are.
|
||||
|
||||
_canDo.insert("plugAsChannelInsert"); // plug-in can be used as a channel insert effect.
|
||||
_canDo.insert("plugAsSend"); // plug-in can be used as a send effect.
|
||||
_canDo.insert("x2in2out");
|
||||
setNumInputs(kNumInputs);
|
||||
setNumOutputs(kNumOutputs);
|
||||
setUniqueID(kUniqueId);
|
||||
canProcessReplacing(); // supports output replacing
|
||||
canDoubleReplacing(); // supports double precision processing
|
||||
programsAreChunks(true);
|
||||
vst_strncpy (_programName, "Default", kVstMaxProgNameLen); // default program name
|
||||
}
|
||||
|
||||
Distance3::~Distance3() {}
|
||||
VstInt32 Distance3::getVendorVersion () {return 1000;}
|
||||
void Distance3::setProgramName(char *name) {vst_strncpy (_programName, name, kVstMaxProgNameLen);}
|
||||
void Distance3::getProgramName(char *name) {vst_strncpy (name, _programName, kVstMaxProgNameLen);}
|
||||
//airwindows likes to ignore this stuff. Make your own programs, and make a different plugin rather than
|
||||
//trying to do versioning and preventing people from using older versions. Maybe they like the old one!
|
||||
|
||||
static float pinParameter(float data)
|
||||
{
|
||||
if (data < 0.0f) return 0.0f;
|
||||
if (data > 1.0f) return 1.0f;
|
||||
return data;
|
||||
}
|
||||
|
||||
VstInt32 Distance3::getChunk (void** data, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)calloc(kNumParameters, sizeof(float));
|
||||
chunkData[0] = A;
|
||||
chunkData[1] = B;
|
||||
chunkData[2] = C;
|
||||
/* Note: The way this is set up, it will break if you manage to save settings on an Intel
|
||||
machine and load them on a PPC Mac. However, it's fine if you stick to the machine you
|
||||
started with. */
|
||||
|
||||
*data = chunkData;
|
||||
return kNumParameters * sizeof(float);
|
||||
}
|
||||
|
||||
VstInt32 Distance3::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)data;
|
||||
A = pinParameter(chunkData[0]);
|
||||
B = pinParameter(chunkData[1]);
|
||||
C = pinParameter(chunkData[2]);
|
||||
/* We're ignoring byteSize as we found it to be a filthy liar */
|
||||
|
||||
/* calculate any other fields you need here - you could copy in
|
||||
code from setParameter() here. */
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Distance3::setParameter(VstInt32 index, float value) {
|
||||
switch (index) {
|
||||
case kParamA: A = value; break;
|
||||
case kParamB: B = value; break;
|
||||
case kParamC: C = value; break;
|
||||
default: throw; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
float Distance3::getParameter(VstInt32 index) {
|
||||
switch (index) {
|
||||
case kParamA: return A; break;
|
||||
case kParamB: return B; break;
|
||||
case kParamC: return C; break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} return 0.0; //we only need to update the relevant name, this is simple to manage
|
||||
}
|
||||
|
||||
void Distance3::getParameterName(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "Distance", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "Top dB", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "Dry/Wet", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this is our labels for displaying in the VST host
|
||||
}
|
||||
|
||||
void Distance3::getParameterDisplay(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: float2string (A*10.0, text, kVstMaxParamStrLen); break;
|
||||
case kParamB: float2string ((B*70.0)+70.0, text, kVstMaxParamStrLen); break;
|
||||
case kParamC: float2string (C, text, kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this displays the values and handles 'popups' where it's discrete choices
|
||||
}
|
||||
|
||||
void Distance3::getParameterLabel(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "miles", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "dB", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
VstInt32 Distance3::canDo(char *text)
|
||||
{ return (_canDo.find(text) == _canDo.end()) ? -1: 1; } // 1 = yes, -1 = no, 0 = don't know
|
||||
|
||||
bool Distance3::getEffectName(char* name) {
|
||||
vst_strncpy(name, "Distance3", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
VstPlugCategory Distance3::getPlugCategory() {return kPlugCategEffect;}
|
||||
|
||||
bool Distance3::getProductString(char* text) {
|
||||
vst_strncpy (text, "airwindows Distance3", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
bool Distance3::getVendorString(char* text) {
|
||||
vst_strncpy (text, "airwindows", kVstMaxVendorStrLen); return true;
|
||||
}
|
||||
128
plugins/LinuxVST/src/Distance3/Distance3.h
Executable file
128
plugins/LinuxVST/src/Distance3/Distance3.h
Executable file
|
|
@ -0,0 +1,128 @@
|
|||
/* ========================================
|
||||
* Distance3 - Distance3.h
|
||||
* Created 8/12/11 by SPIAdmin
|
||||
* Copyright (c) Airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __Distance3_H
|
||||
#define __Distance3_H
|
||||
|
||||
#ifndef __audioeffect__
|
||||
#include "audioeffectx.h"
|
||||
#endif
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <math.h>
|
||||
|
||||
enum {
|
||||
kParamA =0,
|
||||
kParamB =1,
|
||||
kParamC =2,
|
||||
kNumParameters = 3
|
||||
}; //
|
||||
const int dscBuf = 90;
|
||||
|
||||
const int kNumPrograms = 0;
|
||||
const int kNumInputs = 2;
|
||||
const int kNumOutputs = 2;
|
||||
const unsigned long kUniqueId = 'disv'; //Change this to what the AU identity is!
|
||||
|
||||
class Distance3 :
|
||||
public AudioEffectX
|
||||
{
|
||||
public:
|
||||
Distance3(audioMasterCallback audioMaster);
|
||||
~Distance3();
|
||||
virtual bool getEffectName(char* name); // The plug-in name
|
||||
virtual VstPlugCategory getPlugCategory(); // The general category for the plug-in
|
||||
virtual bool getProductString(char* text); // This is a unique plug-in string provided by Steinberg
|
||||
virtual bool getVendorString(char* text); // Vendor info
|
||||
virtual VstInt32 getVendorVersion(); // Version number
|
||||
virtual void processReplacing (float** inputs, float** outputs, VstInt32 sampleFrames);
|
||||
virtual void processDoubleReplacing (double** inputs, double** outputs, VstInt32 sampleFrames);
|
||||
virtual void getProgramName(char *name); // read the name from the host
|
||||
virtual void setProgramName(char *name); // changes the name of the preset displayed in the host
|
||||
virtual VstInt32 getChunk (void** data, bool isPreset);
|
||||
virtual VstInt32 setChunk (void* data, VstInt32 byteSize, bool isPreset);
|
||||
virtual float getParameter(VstInt32 index); // get the parameter value at the specified index
|
||||
virtual void setParameter(VstInt32 index, float value); // set the parameter at index to value
|
||||
virtual void getParameterLabel(VstInt32 index, char *text); // label for the parameter (eg dB)
|
||||
virtual void getParameterName(VstInt32 index, char *text); // name of the parameter
|
||||
virtual void getParameterDisplay(VstInt32 index, char *text); // text description of the current value
|
||||
virtual VstInt32 canDo(char *text);
|
||||
private:
|
||||
char _programName[kVstMaxProgNameLen + 1];
|
||||
std::set< std::string > _canDo;
|
||||
|
||||
float A;
|
||||
float B;
|
||||
float C;
|
||||
|
||||
double lastclampAL;
|
||||
double clampAL;
|
||||
double changeAL;
|
||||
double prevresultAL;
|
||||
double lastAL;
|
||||
|
||||
double lastclampBL;
|
||||
double clampBL;
|
||||
double changeBL;
|
||||
double prevresultBL;
|
||||
double lastBL;
|
||||
|
||||
double lastclampCL;
|
||||
double clampCL;
|
||||
double changeCL;
|
||||
double prevresultCL;
|
||||
double lastCL;
|
||||
|
||||
double dBaL[dscBuf+5];
|
||||
double dBaPosL;
|
||||
int dBaXL;
|
||||
|
||||
double dBbL[dscBuf+5];
|
||||
double dBbPosL;
|
||||
int dBbXL;
|
||||
|
||||
double dBcL[dscBuf+5];
|
||||
double dBcPosL;
|
||||
int dBcXL;
|
||||
|
||||
double lastclampAR;
|
||||
double clampAR;
|
||||
double changeAR;
|
||||
double prevresultAR;
|
||||
double lastAR;
|
||||
|
||||
double lastclampBR;
|
||||
double clampBR;
|
||||
double changeBR;
|
||||
double prevresultBR;
|
||||
double lastBR;
|
||||
|
||||
double lastclampCR;
|
||||
double clampCR;
|
||||
double changeCR;
|
||||
double prevresultCR;
|
||||
double lastCR;
|
||||
|
||||
double dBaR[dscBuf+5];
|
||||
double dBaPosR;
|
||||
int dBaXR;
|
||||
|
||||
double dBbR[dscBuf+5];
|
||||
double dBbPosR;
|
||||
int dBbXR;
|
||||
|
||||
double dBcR[dscBuf+5];
|
||||
double dBcPosR;
|
||||
int dBcXR;
|
||||
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
};
|
||||
|
||||
#endif
|
||||
372
plugins/LinuxVST/src/Distance3/Distance3Proc.cpp
Executable file
372
plugins/LinuxVST/src/Distance3/Distance3Proc.cpp
Executable file
|
|
@ -0,0 +1,372 @@
|
|||
/* ========================================
|
||||
* Distance3 - Distance3.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __Distance3_H
|
||||
#include "Distance3.h"
|
||||
#endif
|
||||
|
||||
void Distance3::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
float* in1 = inputs[0];
|
||||
float* in2 = inputs[1];
|
||||
float* out1 = outputs[0];
|
||||
float* out2 = outputs[1];
|
||||
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
double softslew = (A*100.0)+0.5;
|
||||
softslew *= overallscale;
|
||||
double outslew = softslew * (1.0-(A*0.333));
|
||||
double refdB = (B*70.0)+70.0;
|
||||
double topdB = 0.000000075 * pow(10.0,refdB/20.0) * overallscale;
|
||||
double wet = C;
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
double drySampleL = inputSampleL;
|
||||
double drySampleR = inputSampleR;
|
||||
|
||||
inputSampleL *= softslew;
|
||||
lastclampAL = clampAL; clampAL = inputSampleL - lastAL;
|
||||
double postfilter = changeAL = fabs(clampAL - lastclampAL);
|
||||
postfilter += (softslew / 2.0);
|
||||
inputSampleL /= outslew;
|
||||
inputSampleL += (prevresultAL * postfilter);
|
||||
inputSampleL /= (postfilter + 1.0);
|
||||
prevresultAL = inputSampleL;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleL *= topdB;
|
||||
if (inputSampleL < -0.222) inputSampleL = -0.222; if (inputSampleL > 0.222) inputSampleL = 0.222;
|
||||
//Air Discontinuity A begin
|
||||
dBaL[dBaXL] = inputSampleL; dBaPosL *= 0.5; dBaPosL += fabs((inputSampleL*((inputSampleL*0.25)-0.5))*0.5);
|
||||
int dBdly = floor(dBaPosL*dscBuf);
|
||||
double dBi = (dBaPosL*dscBuf)-dBdly;
|
||||
inputSampleL = dBaL[dBaXL-dBdly +((dBaXL-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleL += dBaL[dBaXL-dBdly +((dBaXL-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBaXL++; if (dBaXL < 0 || dBaXL >= dscBuf) dBaXL = 0;
|
||||
//Air Discontinuity A end
|
||||
inputSampleL /= topdB;
|
||||
|
||||
inputSampleL *= softslew;
|
||||
lastclampBL = clampBL; clampBL = inputSampleL - lastBL;
|
||||
postfilter = changeBL = fabs(clampBL - lastclampBL);
|
||||
postfilter += (softslew / 2.0);
|
||||
lastBL = inputSampleL;
|
||||
inputSampleL /= outslew;
|
||||
inputSampleL += (prevresultBL * postfilter);
|
||||
inputSampleL /= (postfilter + 1.0);
|
||||
prevresultBL = inputSampleL;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleL *= topdB;
|
||||
if (inputSampleL < -0.222) inputSampleL = -0.222; if (inputSampleL > 0.222) inputSampleL = 0.222;
|
||||
//Air Discontinuity B begin
|
||||
dBbL[dBbXL] = inputSampleL; dBbPosL *= 0.5; dBbPosL += fabs((inputSampleL*((inputSampleL*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBbPosL*dscBuf); dBi = (dBbPosL*dscBuf)-dBdly;
|
||||
inputSampleL = dBbL[dBbXL-dBdly +((dBbXL-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleL += dBbL[dBbXL-dBdly +((dBbXL-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBbXL++; if (dBbXL < 0 || dBbXL >= dscBuf) dBbXL = 0;
|
||||
//Air Discontinuity B end
|
||||
inputSampleL /= topdB;
|
||||
|
||||
inputSampleL *= softslew;
|
||||
lastclampCL = clampCL; clampCL = inputSampleL - lastCL;
|
||||
postfilter = changeCL = fabs(clampCL - lastclampCL);
|
||||
postfilter += (softslew / 2.0);
|
||||
lastCL = inputSampleL;
|
||||
inputSampleL /= softslew; //don't boost the final time!
|
||||
inputSampleL += (prevresultCL * postfilter);
|
||||
inputSampleL /= (postfilter + 1.0);
|
||||
prevresultCL = inputSampleL;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleL *= topdB;
|
||||
if (inputSampleL < -0.222) inputSampleL = -0.222; if (inputSampleL > 0.222) inputSampleL = 0.222;
|
||||
//Air Discontinuity C begin
|
||||
dBcL[dBcXL] = inputSampleL; dBcPosL *= 0.5; dBcPosL += fabs((inputSampleL*((inputSampleL*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBcPosL*dscBuf); dBi = (dBcPosL*dscBuf)-dBdly;
|
||||
inputSampleL = dBcL[dBcXL-dBdly +((dBcXL-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleL += dBcL[dBcXL-dBdly +((dBcXL-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBcXL++; if (dBcXL < 0 || dBcXL >= dscBuf) dBcXL = 0;
|
||||
//Air Discontinuity C end
|
||||
inputSampleL /= topdB;
|
||||
|
||||
if (wet < 1.0) inputSampleL = (drySampleL * (1.0-wet))+(inputSampleL*wet);
|
||||
|
||||
|
||||
inputSampleR *= softslew;
|
||||
lastclampAR = clampAR; clampAR = inputSampleR - lastAR;
|
||||
postfilter = changeAR = fabs(clampAR - lastclampAR);
|
||||
postfilter += (softslew / 2.0);
|
||||
inputSampleR /= outslew;
|
||||
inputSampleR += (prevresultAR * postfilter);
|
||||
inputSampleR /= (postfilter + 1.0);
|
||||
prevresultAR = inputSampleR;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleR *= topdB;
|
||||
if (inputSampleR < -0.222) inputSampleR = -0.222; if (inputSampleR > 0.222) inputSampleR = 0.222;
|
||||
//Air Discontinuity A begin
|
||||
dBaR[dBaXR] = inputSampleR; dBaPosR *= 0.5; dBaPosR += fabs((inputSampleR*((inputSampleR*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBaPosR*dscBuf);
|
||||
dBi = (dBaPosR*dscBuf)-dBdly;
|
||||
inputSampleR = dBaR[dBaXR-dBdly +((dBaXR-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleR += dBaR[dBaXR-dBdly +((dBaXR-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBaXR++; if (dBaXR < 0 || dBaXR >= dscBuf) dBaXR = 0;
|
||||
//Air Discontinuity A end
|
||||
inputSampleR /= topdB;
|
||||
|
||||
inputSampleR *= softslew;
|
||||
lastclampBR = clampBR; clampBR = inputSampleR - lastBR;
|
||||
postfilter = changeBR = fabs(clampBR - lastclampBR);
|
||||
postfilter += (softslew / 2.0);
|
||||
lastBR = inputSampleR;
|
||||
inputSampleR /= outslew;
|
||||
inputSampleR += (prevresultBR * postfilter);
|
||||
inputSampleR /= (postfilter + 1.0);
|
||||
prevresultBR = inputSampleR;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleR *= topdB;
|
||||
if (inputSampleR < -0.222) inputSampleR = -0.222; if (inputSampleR > 0.222) inputSampleR = 0.222;
|
||||
//Air Discontinuity B begin
|
||||
dBbR[dBbXR] = inputSampleR; dBbPosR *= 0.5; dBbPosR += fabs((inputSampleR*((inputSampleR*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBbPosR*dscBuf); dBi = (dBbPosR*dscBuf)-dBdly;
|
||||
inputSampleR = dBbR[dBbXR-dBdly +((dBbXR-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleR += dBbR[dBbXR-dBdly +((dBbXR-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBbXR++; if (dBbXR < 0 || dBbXR >= dscBuf) dBbXR = 0;
|
||||
//Air Discontinuity B end
|
||||
inputSampleR /= topdB;
|
||||
|
||||
inputSampleR *= softslew;
|
||||
lastclampCR = clampCR; clampCR = inputSampleR - lastCR;
|
||||
postfilter = changeCR = fabs(clampCR - lastclampCR);
|
||||
postfilter += (softslew / 2.0);
|
||||
lastCR = inputSampleR;
|
||||
inputSampleR /= softslew; //don't boost the final time!
|
||||
inputSampleR += (prevresultCR * postfilter);
|
||||
inputSampleR /= (postfilter + 1.0);
|
||||
prevresultCR = inputSampleR;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleR *= topdB;
|
||||
if (inputSampleR < -0.222) inputSampleR = -0.222; if (inputSampleR > 0.222) inputSampleR = 0.222;
|
||||
//Air Discontinuity C begin
|
||||
dBcR[dBcXR] = inputSampleR; dBcPosR *= 0.5; dBcPosR += fabs((inputSampleR*((inputSampleR*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBcPosR*dscBuf); dBi = (dBcPosR*dscBuf)-dBdly;
|
||||
inputSampleR = dBcR[dBcXR-dBdly +((dBcXR-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleR += dBcR[dBcXR-dBdly +((dBcXR-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBcXR++; if (dBcXR < 0 || dBcXR >= dscBuf) dBcXR = 0;
|
||||
//Air Discontinuity C end
|
||||
inputSampleR /= topdB;
|
||||
|
||||
if (wet < 1.0) inputSampleR = (drySampleR * (1.0-wet))+(inputSampleR*wet);
|
||||
|
||||
//begin 32 bit stereo floating point dither
|
||||
int expon; frexpf((float)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
frexpf((float)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
|
||||
void Distance3::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
double* in1 = inputs[0];
|
||||
double* in2 = inputs[1];
|
||||
double* out1 = outputs[0];
|
||||
double* out2 = outputs[1];
|
||||
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
double softslew = (A*100.0)+0.5;
|
||||
softslew *= overallscale;
|
||||
double outslew = softslew * (1.0-(A*0.333));
|
||||
double refdB = (B*70.0)+70.0;
|
||||
double topdB = 0.000000075 * pow(10.0,refdB/20.0) * overallscale;
|
||||
double wet = C;
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
double drySampleL = inputSampleL;
|
||||
double drySampleR = inputSampleR;
|
||||
|
||||
inputSampleL *= softslew;
|
||||
lastclampAL = clampAL; clampAL = inputSampleL - lastAL;
|
||||
double postfilter = changeAL = fabs(clampAL - lastclampAL);
|
||||
postfilter += (softslew / 2.0);
|
||||
inputSampleL /= outslew;
|
||||
inputSampleL += (prevresultAL * postfilter);
|
||||
inputSampleL /= (postfilter + 1.0);
|
||||
prevresultAL = inputSampleL;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleL *= topdB;
|
||||
if (inputSampleL < -0.222) inputSampleL = -0.222; if (inputSampleL > 0.222) inputSampleL = 0.222;
|
||||
//Air Discontinuity A begin
|
||||
dBaL[dBaXL] = inputSampleL; dBaPosL *= 0.5; dBaPosL += fabs((inputSampleL*((inputSampleL*0.25)-0.5))*0.5);
|
||||
int dBdly = floor(dBaPosL*dscBuf);
|
||||
double dBi = (dBaPosL*dscBuf)-dBdly;
|
||||
inputSampleL = dBaL[dBaXL-dBdly +((dBaXL-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleL += dBaL[dBaXL-dBdly +((dBaXL-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBaXL++; if (dBaXL < 0 || dBaXL >= dscBuf) dBaXL = 0;
|
||||
//Air Discontinuity A end
|
||||
inputSampleL /= topdB;
|
||||
|
||||
inputSampleL *= softslew;
|
||||
lastclampBL = clampBL; clampBL = inputSampleL - lastBL;
|
||||
postfilter = changeBL = fabs(clampBL - lastclampBL);
|
||||
postfilter += (softslew / 2.0);
|
||||
lastBL = inputSampleL;
|
||||
inputSampleL /= outslew;
|
||||
inputSampleL += (prevresultBL * postfilter);
|
||||
inputSampleL /= (postfilter + 1.0);
|
||||
prevresultBL = inputSampleL;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleL *= topdB;
|
||||
if (inputSampleL < -0.222) inputSampleL = -0.222; if (inputSampleL > 0.222) inputSampleL = 0.222;
|
||||
//Air Discontinuity B begin
|
||||
dBbL[dBbXL] = inputSampleL; dBbPosL *= 0.5; dBbPosL += fabs((inputSampleL*((inputSampleL*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBbPosL*dscBuf); dBi = (dBbPosL*dscBuf)-dBdly;
|
||||
inputSampleL = dBbL[dBbXL-dBdly +((dBbXL-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleL += dBbL[dBbXL-dBdly +((dBbXL-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBbXL++; if (dBbXL < 0 || dBbXL >= dscBuf) dBbXL = 0;
|
||||
//Air Discontinuity B end
|
||||
inputSampleL /= topdB;
|
||||
|
||||
inputSampleL *= softslew;
|
||||
lastclampCL = clampCL; clampCL = inputSampleL - lastCL;
|
||||
postfilter = changeCL = fabs(clampCL - lastclampCL);
|
||||
postfilter += (softslew / 2.0);
|
||||
lastCL = inputSampleL;
|
||||
inputSampleL /= softslew; //don't boost the final time!
|
||||
inputSampleL += (prevresultCL * postfilter);
|
||||
inputSampleL /= (postfilter + 1.0);
|
||||
prevresultCL = inputSampleL;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleL *= topdB;
|
||||
if (inputSampleL < -0.222) inputSampleL = -0.222; if (inputSampleL > 0.222) inputSampleL = 0.222;
|
||||
//Air Discontinuity C begin
|
||||
dBcL[dBcXL] = inputSampleL; dBcPosL *= 0.5; dBcPosL += fabs((inputSampleL*((inputSampleL*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBcPosL*dscBuf); dBi = (dBcPosL*dscBuf)-dBdly;
|
||||
inputSampleL = dBcL[dBcXL-dBdly +((dBcXL-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleL += dBcL[dBcXL-dBdly +((dBcXL-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBcXL++; if (dBcXL < 0 || dBcXL >= dscBuf) dBcXL = 0;
|
||||
//Air Discontinuity C end
|
||||
inputSampleL /= topdB;
|
||||
|
||||
if (wet < 1.0) inputSampleL = (drySampleL * (1.0-wet))+(inputSampleL*wet);
|
||||
|
||||
|
||||
inputSampleR *= softslew;
|
||||
lastclampAR = clampAR; clampAR = inputSampleR - lastAR;
|
||||
postfilter = changeAR = fabs(clampAR - lastclampAR);
|
||||
postfilter += (softslew / 2.0);
|
||||
inputSampleR /= outslew;
|
||||
inputSampleR += (prevresultAR * postfilter);
|
||||
inputSampleR /= (postfilter + 1.0);
|
||||
prevresultAR = inputSampleR;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleR *= topdB;
|
||||
if (inputSampleR < -0.222) inputSampleR = -0.222; if (inputSampleR > 0.222) inputSampleR = 0.222;
|
||||
//Air Discontinuity A begin
|
||||
dBaR[dBaXR] = inputSampleR; dBaPosR *= 0.5; dBaPosR += fabs((inputSampleR*((inputSampleR*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBaPosR*dscBuf);
|
||||
dBi = (dBaPosR*dscBuf)-dBdly;
|
||||
inputSampleR = dBaR[dBaXR-dBdly +((dBaXR-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleR += dBaR[dBaXR-dBdly +((dBaXR-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBaXR++; if (dBaXR < 0 || dBaXR >= dscBuf) dBaXR = 0;
|
||||
//Air Discontinuity A end
|
||||
inputSampleR /= topdB;
|
||||
|
||||
inputSampleR *= softslew;
|
||||
lastclampBR = clampBR; clampBR = inputSampleR - lastBR;
|
||||
postfilter = changeBR = fabs(clampBR - lastclampBR);
|
||||
postfilter += (softslew / 2.0);
|
||||
lastBR = inputSampleR;
|
||||
inputSampleR /= outslew;
|
||||
inputSampleR += (prevresultBR * postfilter);
|
||||
inputSampleR /= (postfilter + 1.0);
|
||||
prevresultBR = inputSampleR;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleR *= topdB;
|
||||
if (inputSampleR < -0.222) inputSampleR = -0.222; if (inputSampleR > 0.222) inputSampleR = 0.222;
|
||||
//Air Discontinuity B begin
|
||||
dBbR[dBbXR] = inputSampleR; dBbPosR *= 0.5; dBbPosR += fabs((inputSampleR*((inputSampleR*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBbPosR*dscBuf); dBi = (dBbPosR*dscBuf)-dBdly;
|
||||
inputSampleR = dBbR[dBbXR-dBdly +((dBbXR-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleR += dBbR[dBbXR-dBdly +((dBbXR-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBbXR++; if (dBbXR < 0 || dBbXR >= dscBuf) dBbXR = 0;
|
||||
//Air Discontinuity B end
|
||||
inputSampleR /= topdB;
|
||||
|
||||
inputSampleR *= softslew;
|
||||
lastclampCR = clampCR; clampCR = inputSampleR - lastCR;
|
||||
postfilter = changeCR = fabs(clampCR - lastclampCR);
|
||||
postfilter += (softslew / 2.0);
|
||||
lastCR = inputSampleR;
|
||||
inputSampleR /= softslew; //don't boost the final time!
|
||||
inputSampleR += (prevresultCR * postfilter);
|
||||
inputSampleR /= (postfilter + 1.0);
|
||||
prevresultCR = inputSampleR;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleR *= topdB;
|
||||
if (inputSampleR < -0.222) inputSampleR = -0.222; if (inputSampleR > 0.222) inputSampleR = 0.222;
|
||||
//Air Discontinuity C begin
|
||||
dBcR[dBcXR] = inputSampleR; dBcPosR *= 0.5; dBcPosR += fabs((inputSampleR*((inputSampleR*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBcPosR*dscBuf); dBi = (dBcPosR*dscBuf)-dBdly;
|
||||
inputSampleR = dBcR[dBcXR-dBdly +((dBcXR-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleR += dBcR[dBcXR-dBdly +((dBcXR-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBcXR++; if (dBcXR < 0 || dBcXR >= dscBuf) dBcXR = 0;
|
||||
//Air Discontinuity C end
|
||||
inputSampleR /= topdB;
|
||||
|
||||
if (wet < 1.0) inputSampleR = (drySampleR * (1.0-wet))+(inputSampleR*wet);
|
||||
|
||||
//begin 64 bit stereo floating point dither
|
||||
//int expon; frexp((double)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
//inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//frexp((double)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
//inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//end 64 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
198
plugins/LinuxVST/src/Parametric/Parametric.cpp
Executable file
198
plugins/LinuxVST/src/Parametric/Parametric.cpp
Executable file
|
|
@ -0,0 +1,198 @@
|
|||
/* ========================================
|
||||
* Parametric - Parametric.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __Parametric_H
|
||||
#include "Parametric.h"
|
||||
#endif
|
||||
|
||||
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new Parametric(audioMaster);}
|
||||
|
||||
Parametric::Parametric(audioMasterCallback audioMaster) :
|
||||
AudioEffectX(audioMaster, kNumPrograms, kNumParameters)
|
||||
{
|
||||
A = 0.5;
|
||||
B = 0.5;
|
||||
C = 0.5;
|
||||
D = 0.5;
|
||||
E = 0.5;
|
||||
F = 0.5;
|
||||
G = 0.5;
|
||||
H = 0.5;
|
||||
I = 0.5;
|
||||
J = 1.0;
|
||||
|
||||
for (int x = 0; x < biqs_total; x++) {
|
||||
high[x] = 0.0;
|
||||
hmid[x] = 0.0;
|
||||
lmid[x] = 0.0;
|
||||
}
|
||||
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
//this is reset: values being initialized only once. Startup values, whatever they are.
|
||||
|
||||
_canDo.insert("plugAsChannelInsert"); // plug-in can be used as a channel insert effect.
|
||||
_canDo.insert("plugAsSend"); // plug-in can be used as a send effect.
|
||||
_canDo.insert("x2in2out");
|
||||
setNumInputs(kNumInputs);
|
||||
setNumOutputs(kNumOutputs);
|
||||
setUniqueID(kUniqueId);
|
||||
canProcessReplacing(); // supports output replacing
|
||||
canDoubleReplacing(); // supports double precision processing
|
||||
programsAreChunks(true);
|
||||
vst_strncpy (_programName, "Default", kVstMaxProgNameLen); // default program name
|
||||
}
|
||||
|
||||
Parametric::~Parametric() {}
|
||||
VstInt32 Parametric::getVendorVersion () {return 1000;}
|
||||
void Parametric::setProgramName(char *name) {vst_strncpy (_programName, name, kVstMaxProgNameLen);}
|
||||
void Parametric::getProgramName(char *name) {vst_strncpy (name, _programName, kVstMaxProgNameLen);}
|
||||
//airwindows likes to ignore this stuff. Make your own programs, and make a different plugin rather than
|
||||
//trying to do versioning and preventing people from using older versions. Maybe they like the old one!
|
||||
|
||||
static float pinParameter(float data)
|
||||
{
|
||||
if (data < 0.0f) return 0.0f;
|
||||
if (data > 1.0f) return 1.0f;
|
||||
return data;
|
||||
}
|
||||
|
||||
VstInt32 Parametric::getChunk (void** data, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)calloc(kNumParameters, sizeof(float));
|
||||
chunkData[0] = A;
|
||||
chunkData[1] = B;
|
||||
chunkData[2] = C;
|
||||
chunkData[3] = D;
|
||||
chunkData[4] = E;
|
||||
chunkData[5] = F;
|
||||
chunkData[6] = G;
|
||||
chunkData[7] = H;
|
||||
chunkData[8] = I;
|
||||
chunkData[9] = J;
|
||||
/* Note: The way this is set up, it will break if you manage to save settings on an Intel
|
||||
machine and load them on a PPC Mac. However, it's fine if you stick to the machine you
|
||||
started with. */
|
||||
|
||||
*data = chunkData;
|
||||
return kNumParameters * sizeof(float);
|
||||
}
|
||||
|
||||
VstInt32 Parametric::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)data;
|
||||
A = pinParameter(chunkData[0]);
|
||||
B = pinParameter(chunkData[1]);
|
||||
C = pinParameter(chunkData[2]);
|
||||
D = pinParameter(chunkData[3]);
|
||||
E = pinParameter(chunkData[4]);
|
||||
F = pinParameter(chunkData[5]);
|
||||
G = pinParameter(chunkData[6]);
|
||||
H = pinParameter(chunkData[7]);
|
||||
I = pinParameter(chunkData[8]);
|
||||
J = pinParameter(chunkData[9]);
|
||||
/* We're ignoring byteSize as we found it to be a filthy liar */
|
||||
|
||||
/* calculate any other fields you need here - you could copy in
|
||||
code from setParameter() here. */
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Parametric::setParameter(VstInt32 index, float value) {
|
||||
switch (index) {
|
||||
case kParamA: A = value; break;
|
||||
case kParamB: B = value; break;
|
||||
case kParamC: C = value; break;
|
||||
case kParamD: D = value; break;
|
||||
case kParamE: E = value; break;
|
||||
case kParamF: F = value; break;
|
||||
case kParamG: G = value; break;
|
||||
case kParamH: H = value; break;
|
||||
case kParamI: I = value; break;
|
||||
case kParamJ: J = value; break;
|
||||
default: throw; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
float Parametric::getParameter(VstInt32 index) {
|
||||
switch (index) {
|
||||
case kParamA: return A; break;
|
||||
case kParamB: return B; break;
|
||||
case kParamC: return C; break;
|
||||
case kParamD: return D; break;
|
||||
case kParamE: return E; break;
|
||||
case kParamF: return F; break;
|
||||
case kParamG: return G; break;
|
||||
case kParamH: return H; break;
|
||||
case kParamI: return I; break;
|
||||
case kParamJ: return J; break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} return 0.0; //we only need to update the relevant name, this is simple to manage
|
||||
}
|
||||
|
||||
void Parametric::getParameterName(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "Tr Freq", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "Treble", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "Tr Reso", kVstMaxParamStrLen); break;
|
||||
case kParamD: vst_strncpy (text, "HM Freq", kVstMaxParamStrLen); break;
|
||||
case kParamE: vst_strncpy (text, "HighMid", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "HM Reso", kVstMaxParamStrLen); break;
|
||||
case kParamG: vst_strncpy (text, "LM Freq", kVstMaxParamStrLen); break;
|
||||
case kParamH: vst_strncpy (text, "LowMid", kVstMaxParamStrLen); break;
|
||||
case kParamI: vst_strncpy (text, "LM Reso", kVstMaxParamStrLen); break;
|
||||
case kParamJ: vst_strncpy (text, "Dry/Wet", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this is our labels for displaying in the VST host
|
||||
}
|
||||
|
||||
void Parametric::getParameterDisplay(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: float2string (A, text, kVstMaxParamStrLen); break;
|
||||
case kParamB: float2string (B, text, kVstMaxParamStrLen); break;
|
||||
case kParamC: float2string (C, text, kVstMaxParamStrLen); break;
|
||||
case kParamD: float2string (D, text, kVstMaxParamStrLen); break;
|
||||
case kParamE: float2string (E, text, kVstMaxParamStrLen); break;
|
||||
case kParamF: float2string (F, text, kVstMaxParamStrLen); break;
|
||||
case kParamG: float2string (G, text, kVstMaxParamStrLen); break;
|
||||
case kParamH: float2string (H, text, kVstMaxParamStrLen); break;
|
||||
case kParamI: float2string (I, text, kVstMaxParamStrLen); break;
|
||||
case kParamJ: float2string (J, text, kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this displays the values and handles 'popups' where it's discrete choices
|
||||
}
|
||||
|
||||
void Parametric::getParameterLabel(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamD: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamE: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamH: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamI: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamJ: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
VstInt32 Parametric::canDo(char *text)
|
||||
{ return (_canDo.find(text) == _canDo.end()) ? -1: 1; } // 1 = yes, -1 = no, 0 = don't know
|
||||
|
||||
bool Parametric::getEffectName(char* name) {
|
||||
vst_strncpy(name, "Parametric", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
VstPlugCategory Parametric::getPlugCategory() {return kPlugCategEffect;}
|
||||
|
||||
bool Parametric::getProductString(char* text) {
|
||||
vst_strncpy (text, "airwindows Parametric", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
bool Parametric::getVendorString(char* text) {
|
||||
vst_strncpy (text, "airwindows", kVstMaxVendorStrLen); return true;
|
||||
}
|
||||
95
plugins/LinuxVST/src/Parametric/Parametric.h
Executable file
95
plugins/LinuxVST/src/Parametric/Parametric.h
Executable file
|
|
@ -0,0 +1,95 @@
|
|||
/* ========================================
|
||||
* Parametric - Parametric.h
|
||||
* Created 8/12/11 by SPIAdmin
|
||||
* Copyright (c) Airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __Parametric_H
|
||||
#define __Parametric_H
|
||||
|
||||
#ifndef __audioeffect__
|
||||
#include "audioeffectx.h"
|
||||
#endif
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <math.h>
|
||||
|
||||
enum {
|
||||
kParamA =0,
|
||||
kParamB =1,
|
||||
kParamC =2,
|
||||
kParamD =3,
|
||||
kParamE =4,
|
||||
kParamF =5,
|
||||
kParamG =6,
|
||||
kParamH =7,
|
||||
kParamI =8,
|
||||
kParamJ =9,
|
||||
kNumParameters = 10
|
||||
}; //
|
||||
|
||||
const int kNumPrograms = 0;
|
||||
const int kNumInputs = 2;
|
||||
const int kNumOutputs = 2;
|
||||
const unsigned long kUniqueId = 'para'; //Change this to what the AU identity is!
|
||||
|
||||
class Parametric :
|
||||
public AudioEffectX
|
||||
{
|
||||
public:
|
||||
Parametric(audioMasterCallback audioMaster);
|
||||
~Parametric();
|
||||
virtual bool getEffectName(char* name); // The plug-in name
|
||||
virtual VstPlugCategory getPlugCategory(); // The general category for the plug-in
|
||||
virtual bool getProductString(char* text); // This is a unique plug-in string provided by Steinberg
|
||||
virtual bool getVendorString(char* text); // Vendor info
|
||||
virtual VstInt32 getVendorVersion(); // Version number
|
||||
virtual void processReplacing (float** inputs, float** outputs, VstInt32 sampleFrames);
|
||||
virtual void processDoubleReplacing (double** inputs, double** outputs, VstInt32 sampleFrames);
|
||||
virtual void getProgramName(char *name); // read the name from the host
|
||||
virtual void setProgramName(char *name); // changes the name of the preset displayed in the host
|
||||
virtual VstInt32 getChunk (void** data, bool isPreset);
|
||||
virtual VstInt32 setChunk (void* data, VstInt32 byteSize, bool isPreset);
|
||||
virtual float getParameter(VstInt32 index); // get the parameter value at the specified index
|
||||
virtual void setParameter(VstInt32 index, float value); // set the parameter at index to value
|
||||
virtual void getParameterLabel(VstInt32 index, char *text); // label for the parameter (eg dB)
|
||||
virtual void getParameterName(VstInt32 index, char *text); // name of the parameter
|
||||
virtual void getParameterDisplay(VstInt32 index, char *text); // text description of the current value
|
||||
virtual VstInt32 canDo(char *text);
|
||||
private:
|
||||
char _programName[kVstMaxProgNameLen + 1];
|
||||
std::set< std::string > _canDo;
|
||||
|
||||
float A;
|
||||
float B;
|
||||
float C;
|
||||
float D;
|
||||
float E;
|
||||
float F;
|
||||
float G;
|
||||
float H;
|
||||
float I;
|
||||
float J;
|
||||
|
||||
enum {
|
||||
biqs_freq, biqs_reso, biqs_level,
|
||||
biqs_nonlin, biqs_temp, biqs_dis,
|
||||
biqs_a0, biqs_a1, biqs_b1, biqs_b2,
|
||||
biqs_c0, biqs_c1, biqs_d1, biqs_d2,
|
||||
biqs_e0, biqs_e1, biqs_f1, biqs_f2,
|
||||
biqs_aL1, biqs_aL2, biqs_aR1, biqs_aR2,
|
||||
biqs_cL1, biqs_cL2, biqs_cR1, biqs_cR2,
|
||||
biqs_eL1, biqs_eL2, biqs_eR1, biqs_eR2,
|
||||
biqs_outL, biqs_outR, biqs_total
|
||||
};
|
||||
double high[biqs_total];
|
||||
double hmid[biqs_total];
|
||||
double lmid[biqs_total];
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
};
|
||||
|
||||
#endif
|
||||
498
plugins/LinuxVST/src/Parametric/ParametricProc.cpp
Executable file
498
plugins/LinuxVST/src/Parametric/ParametricProc.cpp
Executable file
|
|
@ -0,0 +1,498 @@
|
|||
/* ========================================
|
||||
* Parametric - Parametric.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __Parametric_H
|
||||
#include "Parametric.h"
|
||||
#endif
|
||||
|
||||
void Parametric::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
float* in1 = inputs[0];
|
||||
float* in2 = inputs[1];
|
||||
float* out1 = outputs[0];
|
||||
float* out2 = outputs[1];
|
||||
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
|
||||
high[biqs_freq] = (((pow(A,3)*14500.0)+1500.0)/getSampleRate());
|
||||
if (high[biqs_freq] < 0.0001) high[biqs_freq] = 0.0001;
|
||||
high[biqs_nonlin] = B;
|
||||
high[biqs_level] = (high[biqs_nonlin]*2.0)-1.0;
|
||||
if (high[biqs_level] > 0.0) high[biqs_level] *= 2.0;
|
||||
high[biqs_reso] = ((0.5+(high[biqs_nonlin]*0.5)+sqrt(high[biqs_freq]))-(1.0-pow(1.0-C,2.0)))+0.5+(high[biqs_nonlin]*0.5);
|
||||
double K = tan(M_PI * high[biqs_freq]);
|
||||
double norm = 1.0 / (1.0 + K / (high[biqs_reso]*1.93185165) + K * K);
|
||||
high[biqs_a0] = K / (high[biqs_reso]*1.93185165) * norm;
|
||||
high[biqs_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
high[biqs_b2] = (1.0 - K / (high[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (high[biqs_reso]*0.70710678) + K * K);
|
||||
high[biqs_c0] = K / (high[biqs_reso]*0.70710678) * norm;
|
||||
high[biqs_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
high[biqs_d2] = (1.0 - K / (high[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (high[biqs_reso]*0.51763809) + K * K);
|
||||
high[biqs_e0] = K / (high[biqs_reso]*0.51763809) * norm;
|
||||
high[biqs_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
high[biqs_f2] = (1.0 - K / (high[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
//high
|
||||
|
||||
hmid[biqs_freq] = (((pow(D,3)*6400.0)+600.0)/getSampleRate());
|
||||
if (hmid[biqs_freq] < 0.0001) hmid[biqs_freq] = 0.0001;
|
||||
hmid[biqs_nonlin] = E;
|
||||
hmid[biqs_level] = (hmid[biqs_nonlin]*2.0)-1.0;
|
||||
if (hmid[biqs_level] > 0.0) hmid[biqs_level] *= 2.0;
|
||||
hmid[biqs_reso] = ((0.5+(hmid[biqs_nonlin]*0.5)+sqrt(hmid[biqs_freq]))-(1.0-pow(1.0-F,2.0)))+0.5+(hmid[biqs_nonlin]*0.5);
|
||||
K = tan(M_PI * hmid[biqs_freq]);
|
||||
norm = 1.0 / (1.0 + K / (hmid[biqs_reso]*1.93185165) + K * K);
|
||||
hmid[biqs_a0] = K / (hmid[biqs_reso]*1.93185165) * norm;
|
||||
hmid[biqs_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
hmid[biqs_b2] = (1.0 - K / (hmid[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (hmid[biqs_reso]*0.70710678) + K * K);
|
||||
hmid[biqs_c0] = K / (hmid[biqs_reso]*0.70710678) * norm;
|
||||
hmid[biqs_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
hmid[biqs_d2] = (1.0 - K / (hmid[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (hmid[biqs_reso]*0.51763809) + K * K);
|
||||
hmid[biqs_e0] = K / (hmid[biqs_reso]*0.51763809) * norm;
|
||||
hmid[biqs_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
hmid[biqs_f2] = (1.0 - K / (hmid[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
//hmid
|
||||
|
||||
lmid[biqs_freq] = (((pow(G,3)*2200.0)+20.0)/getSampleRate());
|
||||
if (lmid[biqs_freq] < 0.00001) lmid[biqs_freq] = 0.00001;
|
||||
lmid[biqs_nonlin] = H;
|
||||
lmid[biqs_level] = (lmid[biqs_nonlin]*2.0)-1.0;
|
||||
if (lmid[biqs_level] > 0.0) lmid[biqs_level] *= 2.0;
|
||||
lmid[biqs_reso] = ((0.5+(lmid[biqs_nonlin]*0.5)+sqrt(lmid[biqs_freq]))-(1.0-pow(1.0-I,2.0)))+0.5+(lmid[biqs_nonlin]*0.5);
|
||||
K = tan(M_PI * lmid[biqs_freq]);
|
||||
norm = 1.0 / (1.0 + K / (lmid[biqs_reso]*1.93185165) + K * K);
|
||||
lmid[biqs_a0] = K / (lmid[biqs_reso]*1.93185165) * norm;
|
||||
lmid[biqs_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lmid[biqs_b2] = (1.0 - K / (lmid[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (lmid[biqs_reso]*0.70710678) + K * K);
|
||||
lmid[biqs_c0] = K / (lmid[biqs_reso]*0.70710678) * norm;
|
||||
lmid[biqs_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lmid[biqs_d2] = (1.0 - K / (lmid[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (lmid[biqs_reso]*0.51763809) + K * K);
|
||||
lmid[biqs_e0] = K / (lmid[biqs_reso]*0.51763809) * norm;
|
||||
lmid[biqs_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lmid[biqs_f2] = (1.0 - K / (lmid[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
//lmid
|
||||
|
||||
double wet = J;
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
high[biqs_outL] = inputSampleL * fabs(high[biqs_level]);
|
||||
high[biqs_dis] = fabs(high[biqs_a0] * (1.0+(high[biqs_outL]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outL] * high[biqs_dis]) + high[biqs_aL1];
|
||||
high[biqs_aL1] = high[biqs_aL2] - (high[biqs_temp]*high[biqs_b1]);
|
||||
high[biqs_aL2] = (high[biqs_outL] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_b2]);
|
||||
high[biqs_outL] = high[biqs_temp];
|
||||
high[biqs_dis] = fabs(high[biqs_c0] * (1.0+(high[biqs_outL]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outL] * high[biqs_dis]) + high[biqs_cL1];
|
||||
high[biqs_cL1] = high[biqs_cL2] - (high[biqs_temp]*high[biqs_d1]);
|
||||
high[biqs_cL2] = (high[biqs_outL] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_d2]);
|
||||
high[biqs_outL] = high[biqs_temp];
|
||||
high[biqs_dis] = fabs(high[biqs_e0] * (1.0+(high[biqs_outL]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outL] * high[biqs_dis]) + high[biqs_eL1];
|
||||
high[biqs_eL1] = high[biqs_eL2] - (high[biqs_temp]*high[biqs_f1]);
|
||||
high[biqs_eL2] = (high[biqs_outL] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_f2]);
|
||||
high[biqs_outL] = high[biqs_temp]; high[biqs_outL] *= high[biqs_level];
|
||||
if (high[biqs_level] > 1.0) high[biqs_outL] *= high[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
hmid[biqs_outL] = inputSampleL * fabs(hmid[biqs_level]);
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_a0] * (1.0+(hmid[biqs_outL]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outL] * hmid[biqs_dis]) + hmid[biqs_aL1];
|
||||
hmid[biqs_aL1] = hmid[biqs_aL2] - (hmid[biqs_temp]*hmid[biqs_b1]);
|
||||
hmid[biqs_aL2] = (hmid[biqs_outL] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_b2]);
|
||||
hmid[biqs_outL] = hmid[biqs_temp];
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_c0] * (1.0+(hmid[biqs_outL]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outL] * hmid[biqs_dis]) + hmid[biqs_cL1];
|
||||
hmid[biqs_cL1] = hmid[biqs_cL2] - (hmid[biqs_temp]*hmid[biqs_d1]);
|
||||
hmid[biqs_cL2] = (hmid[biqs_outL] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_d2]);
|
||||
hmid[biqs_outL] = hmid[biqs_temp];
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_e0] * (1.0+(hmid[biqs_outL]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outL] * hmid[biqs_dis]) + hmid[biqs_eL1];
|
||||
hmid[biqs_eL1] = hmid[biqs_eL2] - (hmid[biqs_temp]*hmid[biqs_f1]);
|
||||
hmid[biqs_eL2] = (hmid[biqs_outL] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_f2]);
|
||||
hmid[biqs_outL] = hmid[biqs_temp]; hmid[biqs_outL] *= hmid[biqs_level];
|
||||
if (hmid[biqs_level] > 1.0) hmid[biqs_outL] *= hmid[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
lmid[biqs_outL] = inputSampleL * fabs(lmid[biqs_level]);
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_a0] * (1.0+(lmid[biqs_outL]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outL] * lmid[biqs_dis]) + lmid[biqs_aL1];
|
||||
lmid[biqs_aL1] = lmid[biqs_aL2] - (lmid[biqs_temp]*lmid[biqs_b1]);
|
||||
lmid[biqs_aL2] = (lmid[biqs_outL] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_b2]);
|
||||
lmid[biqs_outL] = lmid[biqs_temp];
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_c0] * (1.0+(lmid[biqs_outL]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outL] * lmid[biqs_dis]) + lmid[biqs_cL1];
|
||||
lmid[biqs_cL1] = lmid[biqs_cL2] - (lmid[biqs_temp]*lmid[biqs_d1]);
|
||||
lmid[biqs_cL2] = (lmid[biqs_outL] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_d2]);
|
||||
lmid[biqs_outL] = lmid[biqs_temp];
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_e0] * (1.0+(lmid[biqs_outL]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outL] * lmid[biqs_dis]) + lmid[biqs_eL1];
|
||||
lmid[biqs_eL1] = lmid[biqs_eL2] - (lmid[biqs_temp]*lmid[biqs_f1]);
|
||||
lmid[biqs_eL2] = (lmid[biqs_outL] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_f2]);
|
||||
lmid[biqs_outL] = lmid[biqs_temp]; lmid[biqs_outL] *= lmid[biqs_level];
|
||||
if (lmid[biqs_level] > 1.0) lmid[biqs_outL] *= lmid[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow R
|
||||
high[biqs_outR] = inputSampleR * fabs(high[biqs_level]);
|
||||
high[biqs_dis] = fabs(high[biqs_a0] * (1.0+(high[biqs_outR]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outR] * high[biqs_dis]) + high[biqs_aR1];
|
||||
high[biqs_aR1] = high[biqs_aR2] - (high[biqs_temp]*high[biqs_b1]);
|
||||
high[biqs_aR2] = (high[biqs_outR] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_b2]);
|
||||
high[biqs_outR] = high[biqs_temp];
|
||||
high[biqs_dis] = fabs(high[biqs_c0] * (1.0+(high[biqs_outR]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outR] * high[biqs_dis]) + high[biqs_cR1];
|
||||
high[biqs_cR1] = high[biqs_cR2] - (high[biqs_temp]*high[biqs_d1]);
|
||||
high[biqs_cR2] = (high[biqs_outR] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_d2]);
|
||||
high[biqs_outR] = high[biqs_temp];
|
||||
high[biqs_dis] = fabs(high[biqs_e0] * (1.0+(high[biqs_outR]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outR] * high[biqs_dis]) + high[biqs_eR1];
|
||||
high[biqs_eR1] = high[biqs_eR2] - (high[biqs_temp]*high[biqs_f1]);
|
||||
high[biqs_eR2] = (high[biqs_outR] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_f2]);
|
||||
high[biqs_outR] = high[biqs_temp]; high[biqs_outR] *= high[biqs_level];
|
||||
if (high[biqs_level] > 1.0) high[biqs_outR] *= high[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow R
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow R
|
||||
hmid[biqs_outR] = inputSampleR * fabs(hmid[biqs_level]);
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_a0] * (1.0+(hmid[biqs_outR]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outR] * hmid[biqs_dis]) + hmid[biqs_aR1];
|
||||
hmid[biqs_aR1] = hmid[biqs_aR2] - (hmid[biqs_temp]*hmid[biqs_b1]);
|
||||
hmid[biqs_aR2] = (hmid[biqs_outR] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_b2]);
|
||||
hmid[biqs_outR] = hmid[biqs_temp];
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_c0] * (1.0+(hmid[biqs_outR]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outR] * hmid[biqs_dis]) + hmid[biqs_cR1];
|
||||
hmid[biqs_cR1] = hmid[biqs_cR2] - (hmid[biqs_temp]*hmid[biqs_d1]);
|
||||
hmid[biqs_cR2] = (hmid[biqs_outR] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_d2]);
|
||||
hmid[biqs_outR] = hmid[biqs_temp];
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_e0] * (1.0+(hmid[biqs_outR]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outR] * hmid[biqs_dis]) + hmid[biqs_eR1];
|
||||
hmid[biqs_eR1] = hmid[biqs_eR2] - (hmid[biqs_temp]*hmid[biqs_f1]);
|
||||
hmid[biqs_eR2] = (hmid[biqs_outR] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_f2]);
|
||||
hmid[biqs_outR] = hmid[biqs_temp]; hmid[biqs_outR] *= hmid[biqs_level];
|
||||
if (hmid[biqs_level] > 1.0) hmid[biqs_outR] *= hmid[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow R
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow R
|
||||
lmid[biqs_outR] = inputSampleR * fabs(lmid[biqs_level]);
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_a0] * (1.0+(lmid[biqs_outR]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outR] * lmid[biqs_dis]) + lmid[biqs_aR1];
|
||||
lmid[biqs_aR1] = lmid[biqs_aR2] - (lmid[biqs_temp]*lmid[biqs_b1]);
|
||||
lmid[biqs_aR2] = (lmid[biqs_outR] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_b2]);
|
||||
lmid[biqs_outR] = lmid[biqs_temp];
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_c0] * (1.0+(lmid[biqs_outR]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outR] * lmid[biqs_dis]) + lmid[biqs_cR1];
|
||||
lmid[biqs_cR1] = lmid[biqs_cR2] - (lmid[biqs_temp]*lmid[biqs_d1]);
|
||||
lmid[biqs_cR2] = (lmid[biqs_outR] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_d2]);
|
||||
lmid[biqs_outR] = lmid[biqs_temp];
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_e0] * (1.0+(lmid[biqs_outR]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outR] * lmid[biqs_dis]) + lmid[biqs_eR1];
|
||||
lmid[biqs_eR1] = lmid[biqs_eR2] - (lmid[biqs_temp]*lmid[biqs_f1]);
|
||||
lmid[biqs_eR2] = (lmid[biqs_outR] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_f2]);
|
||||
lmid[biqs_outR] = lmid[biqs_temp]; lmid[biqs_outR] *= lmid[biqs_level];
|
||||
if (lmid[biqs_level] > 1.0) lmid[biqs_outR] *= lmid[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow R
|
||||
|
||||
double parametric = high[biqs_outL] + hmid[biqs_outL] + lmid[biqs_outL];
|
||||
inputSampleL += (parametric * wet); //purely a parallel filter stage here
|
||||
parametric = high[biqs_outR] + hmid[biqs_outR] + lmid[biqs_outR];
|
||||
inputSampleR += (parametric * wet); //purely a parallel filter stage here
|
||||
|
||||
//begin 32 bit stereo floating point dither
|
||||
int expon; frexpf((float)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
frexpf((float)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
|
||||
void Parametric::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
double* in1 = inputs[0];
|
||||
double* in2 = inputs[1];
|
||||
double* out1 = outputs[0];
|
||||
double* out2 = outputs[1];
|
||||
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
|
||||
high[biqs_freq] = (((pow(A,3)*14500.0)+1500.0)/getSampleRate());
|
||||
if (high[biqs_freq] < 0.0001) high[biqs_freq] = 0.0001;
|
||||
high[biqs_nonlin] = B;
|
||||
high[biqs_level] = (high[biqs_nonlin]*2.0)-1.0;
|
||||
if (high[biqs_level] > 0.0) high[biqs_level] *= 2.0;
|
||||
high[biqs_reso] = ((0.5+(high[biqs_nonlin]*0.5)+sqrt(high[biqs_freq]))-(1.0-pow(1.0-C,2.0)))+0.5+(high[biqs_nonlin]*0.5);
|
||||
double K = tan(M_PI * high[biqs_freq]);
|
||||
double norm = 1.0 / (1.0 + K / (high[biqs_reso]*1.93185165) + K * K);
|
||||
high[biqs_a0] = K / (high[biqs_reso]*1.93185165) * norm;
|
||||
high[biqs_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
high[biqs_b2] = (1.0 - K / (high[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (high[biqs_reso]*0.70710678) + K * K);
|
||||
high[biqs_c0] = K / (high[biqs_reso]*0.70710678) * norm;
|
||||
high[biqs_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
high[biqs_d2] = (1.0 - K / (high[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (high[biqs_reso]*0.51763809) + K * K);
|
||||
high[biqs_e0] = K / (high[biqs_reso]*0.51763809) * norm;
|
||||
high[biqs_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
high[biqs_f2] = (1.0 - K / (high[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
//high
|
||||
|
||||
hmid[biqs_freq] = (((pow(D,3)*6400.0)+600.0)/getSampleRate());
|
||||
if (hmid[biqs_freq] < 0.0001) hmid[biqs_freq] = 0.0001;
|
||||
hmid[biqs_nonlin] = E;
|
||||
hmid[biqs_level] = (hmid[biqs_nonlin]*2.0)-1.0;
|
||||
if (hmid[biqs_level] > 0.0) hmid[biqs_level] *= 2.0;
|
||||
hmid[biqs_reso] = ((0.5+(hmid[biqs_nonlin]*0.5)+sqrt(hmid[biqs_freq]))-(1.0-pow(1.0-F,2.0)))+0.5+(hmid[biqs_nonlin]*0.5);
|
||||
K = tan(M_PI * hmid[biqs_freq]);
|
||||
norm = 1.0 / (1.0 + K / (hmid[biqs_reso]*1.93185165) + K * K);
|
||||
hmid[biqs_a0] = K / (hmid[biqs_reso]*1.93185165) * norm;
|
||||
hmid[biqs_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
hmid[biqs_b2] = (1.0 - K / (hmid[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (hmid[biqs_reso]*0.70710678) + K * K);
|
||||
hmid[biqs_c0] = K / (hmid[biqs_reso]*0.70710678) * norm;
|
||||
hmid[biqs_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
hmid[biqs_d2] = (1.0 - K / (hmid[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (hmid[biqs_reso]*0.51763809) + K * K);
|
||||
hmid[biqs_e0] = K / (hmid[biqs_reso]*0.51763809) * norm;
|
||||
hmid[biqs_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
hmid[biqs_f2] = (1.0 - K / (hmid[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
//hmid
|
||||
|
||||
lmid[biqs_freq] = (((pow(G,3)*2200.0)+20.0)/getSampleRate());
|
||||
if (lmid[biqs_freq] < 0.00001) lmid[biqs_freq] = 0.00001;
|
||||
lmid[biqs_nonlin] = H;
|
||||
lmid[biqs_level] = (lmid[biqs_nonlin]*2.0)-1.0;
|
||||
if (lmid[biqs_level] > 0.0) lmid[biqs_level] *= 2.0;
|
||||
lmid[biqs_reso] = ((0.5+(lmid[biqs_nonlin]*0.5)+sqrt(lmid[biqs_freq]))-(1.0-pow(1.0-I,2.0)))+0.5+(lmid[biqs_nonlin]*0.5);
|
||||
K = tan(M_PI * lmid[biqs_freq]);
|
||||
norm = 1.0 / (1.0 + K / (lmid[biqs_reso]*1.93185165) + K * K);
|
||||
lmid[biqs_a0] = K / (lmid[biqs_reso]*1.93185165) * norm;
|
||||
lmid[biqs_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lmid[biqs_b2] = (1.0 - K / (lmid[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (lmid[biqs_reso]*0.70710678) + K * K);
|
||||
lmid[biqs_c0] = K / (lmid[biqs_reso]*0.70710678) * norm;
|
||||
lmid[biqs_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lmid[biqs_d2] = (1.0 - K / (lmid[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (lmid[biqs_reso]*0.51763809) + K * K);
|
||||
lmid[biqs_e0] = K / (lmid[biqs_reso]*0.51763809) * norm;
|
||||
lmid[biqs_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lmid[biqs_f2] = (1.0 - K / (lmid[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
//lmid
|
||||
|
||||
double wet = J;
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
high[biqs_outL] = inputSampleL * fabs(high[biqs_level]);
|
||||
high[biqs_dis] = fabs(high[biqs_a0] * (1.0+(high[biqs_outL]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outL] * high[biqs_dis]) + high[biqs_aL1];
|
||||
high[biqs_aL1] = high[biqs_aL2] - (high[biqs_temp]*high[biqs_b1]);
|
||||
high[biqs_aL2] = (high[biqs_outL] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_b2]);
|
||||
high[biqs_outL] = high[biqs_temp];
|
||||
high[biqs_dis] = fabs(high[biqs_c0] * (1.0+(high[biqs_outL]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outL] * high[biqs_dis]) + high[biqs_cL1];
|
||||
high[biqs_cL1] = high[biqs_cL2] - (high[biqs_temp]*high[biqs_d1]);
|
||||
high[biqs_cL2] = (high[biqs_outL] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_d2]);
|
||||
high[biqs_outL] = high[biqs_temp];
|
||||
high[biqs_dis] = fabs(high[biqs_e0] * (1.0+(high[biqs_outL]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outL] * high[biqs_dis]) + high[biqs_eL1];
|
||||
high[biqs_eL1] = high[biqs_eL2] - (high[biqs_temp]*high[biqs_f1]);
|
||||
high[biqs_eL2] = (high[biqs_outL] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_f2]);
|
||||
high[biqs_outL] = high[biqs_temp]; high[biqs_outL] *= high[biqs_level];
|
||||
if (high[biqs_level] > 1.0) high[biqs_outL] *= high[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
hmid[biqs_outL] = inputSampleL * fabs(hmid[biqs_level]);
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_a0] * (1.0+(hmid[biqs_outL]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outL] * hmid[biqs_dis]) + hmid[biqs_aL1];
|
||||
hmid[biqs_aL1] = hmid[biqs_aL2] - (hmid[biqs_temp]*hmid[biqs_b1]);
|
||||
hmid[biqs_aL2] = (hmid[biqs_outL] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_b2]);
|
||||
hmid[biqs_outL] = hmid[biqs_temp];
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_c0] * (1.0+(hmid[biqs_outL]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outL] * hmid[biqs_dis]) + hmid[biqs_cL1];
|
||||
hmid[biqs_cL1] = hmid[biqs_cL2] - (hmid[biqs_temp]*hmid[biqs_d1]);
|
||||
hmid[biqs_cL2] = (hmid[biqs_outL] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_d2]);
|
||||
hmid[biqs_outL] = hmid[biqs_temp];
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_e0] * (1.0+(hmid[biqs_outL]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outL] * hmid[biqs_dis]) + hmid[biqs_eL1];
|
||||
hmid[biqs_eL1] = hmid[biqs_eL2] - (hmid[biqs_temp]*hmid[biqs_f1]);
|
||||
hmid[biqs_eL2] = (hmid[biqs_outL] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_f2]);
|
||||
hmid[biqs_outL] = hmid[biqs_temp]; hmid[biqs_outL] *= hmid[biqs_level];
|
||||
if (hmid[biqs_level] > 1.0) hmid[biqs_outL] *= hmid[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
lmid[biqs_outL] = inputSampleL * fabs(lmid[biqs_level]);
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_a0] * (1.0+(lmid[biqs_outL]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outL] * lmid[biqs_dis]) + lmid[biqs_aL1];
|
||||
lmid[biqs_aL1] = lmid[biqs_aL2] - (lmid[biqs_temp]*lmid[biqs_b1]);
|
||||
lmid[biqs_aL2] = (lmid[biqs_outL] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_b2]);
|
||||
lmid[biqs_outL] = lmid[biqs_temp];
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_c0] * (1.0+(lmid[biqs_outL]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outL] * lmid[biqs_dis]) + lmid[biqs_cL1];
|
||||
lmid[biqs_cL1] = lmid[biqs_cL2] - (lmid[biqs_temp]*lmid[biqs_d1]);
|
||||
lmid[biqs_cL2] = (lmid[biqs_outL] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_d2]);
|
||||
lmid[biqs_outL] = lmid[biqs_temp];
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_e0] * (1.0+(lmid[biqs_outL]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outL] * lmid[biqs_dis]) + lmid[biqs_eL1];
|
||||
lmid[biqs_eL1] = lmid[biqs_eL2] - (lmid[biqs_temp]*lmid[biqs_f1]);
|
||||
lmid[biqs_eL2] = (lmid[biqs_outL] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_f2]);
|
||||
lmid[biqs_outL] = lmid[biqs_temp]; lmid[biqs_outL] *= lmid[biqs_level];
|
||||
if (lmid[biqs_level] > 1.0) lmid[biqs_outL] *= lmid[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow R
|
||||
high[biqs_outR] = inputSampleR * fabs(high[biqs_level]);
|
||||
high[biqs_dis] = fabs(high[biqs_a0] * (1.0+(high[biqs_outR]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outR] * high[biqs_dis]) + high[biqs_aR1];
|
||||
high[biqs_aR1] = high[biqs_aR2] - (high[biqs_temp]*high[biqs_b1]);
|
||||
high[biqs_aR2] = (high[biqs_outR] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_b2]);
|
||||
high[biqs_outR] = high[biqs_temp];
|
||||
high[biqs_dis] = fabs(high[biqs_c0] * (1.0+(high[biqs_outR]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outR] * high[biqs_dis]) + high[biqs_cR1];
|
||||
high[biqs_cR1] = high[biqs_cR2] - (high[biqs_temp]*high[biqs_d1]);
|
||||
high[biqs_cR2] = (high[biqs_outR] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_d2]);
|
||||
high[biqs_outR] = high[biqs_temp];
|
||||
high[biqs_dis] = fabs(high[biqs_e0] * (1.0+(high[biqs_outR]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outR] * high[biqs_dis]) + high[biqs_eR1];
|
||||
high[biqs_eR1] = high[biqs_eR2] - (high[biqs_temp]*high[biqs_f1]);
|
||||
high[biqs_eR2] = (high[biqs_outR] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_f2]);
|
||||
high[biqs_outR] = high[biqs_temp]; high[biqs_outR] *= high[biqs_level];
|
||||
if (high[biqs_level] > 1.0) high[biqs_outR] *= high[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow R
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow R
|
||||
hmid[biqs_outR] = inputSampleR * fabs(hmid[biqs_level]);
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_a0] * (1.0+(hmid[biqs_outR]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outR] * hmid[biqs_dis]) + hmid[biqs_aR1];
|
||||
hmid[biqs_aR1] = hmid[biqs_aR2] - (hmid[biqs_temp]*hmid[biqs_b1]);
|
||||
hmid[biqs_aR2] = (hmid[biqs_outR] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_b2]);
|
||||
hmid[biqs_outR] = hmid[biqs_temp];
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_c0] * (1.0+(hmid[biqs_outR]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outR] * hmid[biqs_dis]) + hmid[biqs_cR1];
|
||||
hmid[biqs_cR1] = hmid[biqs_cR2] - (hmid[biqs_temp]*hmid[biqs_d1]);
|
||||
hmid[biqs_cR2] = (hmid[biqs_outR] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_d2]);
|
||||
hmid[biqs_outR] = hmid[biqs_temp];
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_e0] * (1.0+(hmid[biqs_outR]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outR] * hmid[biqs_dis]) + hmid[biqs_eR1];
|
||||
hmid[biqs_eR1] = hmid[biqs_eR2] - (hmid[biqs_temp]*hmid[biqs_f1]);
|
||||
hmid[biqs_eR2] = (hmid[biqs_outR] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_f2]);
|
||||
hmid[biqs_outR] = hmid[biqs_temp]; hmid[biqs_outR] *= hmid[biqs_level];
|
||||
if (hmid[biqs_level] > 1.0) hmid[biqs_outR] *= hmid[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow R
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow R
|
||||
lmid[biqs_outR] = inputSampleR * fabs(lmid[biqs_level]);
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_a0] * (1.0+(lmid[biqs_outR]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outR] * lmid[biqs_dis]) + lmid[biqs_aR1];
|
||||
lmid[biqs_aR1] = lmid[biqs_aR2] - (lmid[biqs_temp]*lmid[biqs_b1]);
|
||||
lmid[biqs_aR2] = (lmid[biqs_outR] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_b2]);
|
||||
lmid[biqs_outR] = lmid[biqs_temp];
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_c0] * (1.0+(lmid[biqs_outR]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outR] * lmid[biqs_dis]) + lmid[biqs_cR1];
|
||||
lmid[biqs_cR1] = lmid[biqs_cR2] - (lmid[biqs_temp]*lmid[biqs_d1]);
|
||||
lmid[biqs_cR2] = (lmid[biqs_outR] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_d2]);
|
||||
lmid[biqs_outR] = lmid[biqs_temp];
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_e0] * (1.0+(lmid[biqs_outR]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outR] * lmid[biqs_dis]) + lmid[biqs_eR1];
|
||||
lmid[biqs_eR1] = lmid[biqs_eR2] - (lmid[biqs_temp]*lmid[biqs_f1]);
|
||||
lmid[biqs_eR2] = (lmid[biqs_outR] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_f2]);
|
||||
lmid[biqs_outR] = lmid[biqs_temp]; lmid[biqs_outR] *= lmid[biqs_level];
|
||||
if (lmid[biqs_level] > 1.0) lmid[biqs_outR] *= lmid[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow R
|
||||
|
||||
double parametric = high[biqs_outL] + hmid[biqs_outL] + lmid[biqs_outL];
|
||||
inputSampleL += (parametric * wet); //purely a parallel filter stage here
|
||||
parametric = high[biqs_outR] + hmid[biqs_outR] + lmid[biqs_outR];
|
||||
inputSampleR += (parametric * wet); //purely a parallel filter stage here
|
||||
|
||||
//begin 64 bit stereo floating point dither
|
||||
//int expon; frexp((double)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
//inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//frexp((double)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
//inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//end 64 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,51 +1,30 @@
|
|||
/* ========================================
|
||||
* ConsoleXSubOut - ConsoleXSubOut.h
|
||||
* Pop3 - Pop3.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __ConsoleXSubOut_H
|
||||
#include "ConsoleXSubOut.h"
|
||||
#ifndef __Pop3_H
|
||||
#include "Pop3.h"
|
||||
#endif
|
||||
|
||||
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new ConsoleXSubOut(audioMaster);}
|
||||
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new Pop3(audioMaster);}
|
||||
|
||||
ConsoleXSubOut::ConsoleXSubOut(audioMasterCallback audioMaster) :
|
||||
Pop3::Pop3(audioMasterCallback audioMaster) :
|
||||
AudioEffectX(audioMaster, kNumPrograms, kNumParameters)
|
||||
{
|
||||
A = 0.5;
|
||||
A = 1.0;
|
||||
B = 0.5;
|
||||
C = 0.5;
|
||||
D = 0.5;
|
||||
E = 0.5;
|
||||
E = 0.0;
|
||||
F = 0.5;
|
||||
G = 0.5;
|
||||
H = 0.5;
|
||||
|
||||
popCompL = 1.0;
|
||||
popCompR = 1.0;
|
||||
popGate = 1.0;
|
||||
|
||||
for (int x = 0; x < biq_total; x++) {biquad[x] = 0.0;}
|
||||
for (int x = 0; x < air_total; x++) air[x] = 0.0;
|
||||
for (int x = 0; x < kal_total; x++) kal[x] = 0.0;
|
||||
|
||||
for(int count = 0; count < 2004; count++) {mpkL[count] = 0.0; mpkR[count] = 0.0;}
|
||||
for(int count = 0; count < 65; count++) {f[count] = 0.0;}
|
||||
prevfreqMPeak = -1;
|
||||
prevamountMPeak = -1;
|
||||
mpc = 1;
|
||||
|
||||
for(int count = 0; count < dscBuf+2; count++) {
|
||||
dBaL[count] = 0.0;
|
||||
dBaR[count] = 0.0;
|
||||
}
|
||||
dBaPosL = 0.0;
|
||||
dBaPosR = 0.0;
|
||||
dBaXL = 1;
|
||||
dBaXR = 1;
|
||||
|
||||
trebleGainA = 1.0; trebleGainB = 1.0;
|
||||
midGainA = 1.0; midGainB = 1.0;
|
||||
mPeakA = 1.0; mPeakB = 1.0;
|
||||
bassGainA = 1.0; bassGainB = 1.0;
|
||||
panA = 0.5; panB = 0.5;
|
||||
inTrimA = 1.0; inTrimB = 1.0;
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
//this is reset: values being initialized only once. Startup values, whatever they are.
|
||||
|
|
@ -62,10 +41,10 @@ ConsoleXSubOut::ConsoleXSubOut(audioMasterCallback audioMaster) :
|
|||
vst_strncpy (_programName, "Default", kVstMaxProgNameLen); // default program name
|
||||
}
|
||||
|
||||
ConsoleXSubOut::~ConsoleXSubOut() {}
|
||||
VstInt32 ConsoleXSubOut::getVendorVersion () {return 1000;}
|
||||
void ConsoleXSubOut::setProgramName(char *name) {vst_strncpy (_programName, name, kVstMaxProgNameLen);}
|
||||
void ConsoleXSubOut::getProgramName(char *name) {vst_strncpy (name, _programName, kVstMaxProgNameLen);}
|
||||
Pop3::~Pop3() {}
|
||||
VstInt32 Pop3::getVendorVersion () {return 1000;}
|
||||
void Pop3::setProgramName(char *name) {vst_strncpy (_programName, name, kVstMaxProgNameLen);}
|
||||
void Pop3::getProgramName(char *name) {vst_strncpy (name, _programName, kVstMaxProgNameLen);}
|
||||
//airwindows likes to ignore this stuff. Make your own programs, and make a different plugin rather than
|
||||
//trying to do versioning and preventing people from using older versions. Maybe they like the old one!
|
||||
|
||||
|
|
@ -76,7 +55,7 @@ static float pinParameter(float data)
|
|||
return data;
|
||||
}
|
||||
|
||||
VstInt32 ConsoleXSubOut::getChunk (void** data, bool isPreset)
|
||||
VstInt32 Pop3::getChunk (void** data, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)calloc(kNumParameters, sizeof(float));
|
||||
chunkData[0] = A;
|
||||
|
|
@ -95,7 +74,7 @@ VstInt32 ConsoleXSubOut::getChunk (void** data, bool isPreset)
|
|||
return kNumParameters * sizeof(float);
|
||||
}
|
||||
|
||||
VstInt32 ConsoleXSubOut::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||
VstInt32 Pop3::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)data;
|
||||
A = pinParameter(chunkData[0]);
|
||||
|
|
@ -113,7 +92,7 @@ VstInt32 ConsoleXSubOut::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void ConsoleXSubOut::setParameter(VstInt32 index, float value) {
|
||||
void Pop3::setParameter(VstInt32 index, float value) {
|
||||
switch (index) {
|
||||
case kParamA: A = value; break;
|
||||
case kParamB: B = value; break;
|
||||
|
|
@ -127,7 +106,7 @@ void ConsoleXSubOut::setParameter(VstInt32 index, float value) {
|
|||
}
|
||||
}
|
||||
|
||||
float ConsoleXSubOut::getParameter(VstInt32 index) {
|
||||
float Pop3::getParameter(VstInt32 index) {
|
||||
switch (index) {
|
||||
case kParamA: return A; break;
|
||||
case kParamB: return B; break;
|
||||
|
|
@ -141,61 +120,61 @@ float ConsoleXSubOut::getParameter(VstInt32 index) {
|
|||
} return 0.0; //we only need to update the relevant name, this is simple to manage
|
||||
}
|
||||
|
||||
void ConsoleXSubOut::getParameterName(VstInt32 index, char *text) {
|
||||
void Pop3::getParameterName(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "Air", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "Fire", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "Stone", kVstMaxParamStrLen); break;
|
||||
case kParamD: vst_strncpy (text, "Reso", kVstMaxParamStrLen); break;
|
||||
case kParamE: vst_strncpy (text, "Range", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "Top dB", kVstMaxParamStrLen); break;
|
||||
case kParamG: vst_strncpy (text, "Pan", kVstMaxParamStrLen); break;
|
||||
case kParamH: vst_strncpy (text, "Fader", kVstMaxParamStrLen); break;
|
||||
case kParamA: vst_strncpy (text, "Thresld", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "C Ratio", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "C Atk", kVstMaxParamStrLen); break;
|
||||
case kParamD: vst_strncpy (text, "C Rls", kVstMaxParamStrLen); break;
|
||||
case kParamE: vst_strncpy (text, "Thresld", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "G Ratio", kVstMaxParamStrLen); break;
|
||||
case kParamG: vst_strncpy (text, "G Sust", kVstMaxParamStrLen); break;
|
||||
case kParamH: vst_strncpy (text, "G Rls", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this is our labels for displaying in the VST host
|
||||
}
|
||||
|
||||
void ConsoleXSubOut::getParameterDisplay(VstInt32 index, char *text) {
|
||||
void Pop3::getParameterDisplay(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: float2string (A, text, kVstMaxParamStrLen); break;
|
||||
case kParamB: float2string (B, text, kVstMaxParamStrLen); break;
|
||||
case kParamC: float2string (C, text, kVstMaxParamStrLen); break;
|
||||
case kParamD: float2string (D, text, kVstMaxParamStrLen); break;
|
||||
case kParamE: float2string (E, text, kVstMaxParamStrLen); break;
|
||||
case kParamF: float2string ((F*70.0)+70.0, text, kVstMaxParamStrLen); break;
|
||||
case kParamF: float2string (F, text, kVstMaxParamStrLen); break;
|
||||
case kParamG: float2string (G, text, kVstMaxParamStrLen); break;
|
||||
case kParamH: float2string (H, text, kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this displays the values and handles 'popups' where it's discrete choices
|
||||
}
|
||||
|
||||
void ConsoleXSubOut::getParameterLabel(VstInt32 index, char *text) {
|
||||
void Pop3::getParameterLabel(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamD: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamE: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "dB", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamH: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
VstInt32 ConsoleXSubOut::canDo(char *text)
|
||||
VstInt32 Pop3::canDo(char *text)
|
||||
{ return (_canDo.find(text) == _canDo.end()) ? -1: 1; } // 1 = yes, -1 = no, 0 = don't know
|
||||
|
||||
bool ConsoleXSubOut::getEffectName(char* name) {
|
||||
vst_strncpy(name, "ConsoleXSubOut", kVstMaxProductStrLen); return true;
|
||||
bool Pop3::getEffectName(char* name) {
|
||||
vst_strncpy(name, "Pop3", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
VstPlugCategory ConsoleXSubOut::getPlugCategory() {return kPlugCategEffect;}
|
||||
VstPlugCategory Pop3::getPlugCategory() {return kPlugCategEffect;}
|
||||
|
||||
bool ConsoleXSubOut::getProductString(char* text) {
|
||||
vst_strncpy (text, "airwindows ConsoleXSubOut", kVstMaxProductStrLen); return true;
|
||||
bool Pop3::getProductString(char* text) {
|
||||
vst_strncpy (text, "airwindows Pop3", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
bool ConsoleXSubOut::getVendorString(char* text) {
|
||||
bool Pop3::getVendorString(char* text) {
|
||||
vst_strncpy (text, "airwindows", kVstMaxVendorStrLen); return true;
|
||||
}
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
/* ========================================
|
||||
* ConsoleXSubIn - ConsoleXSubIn.h
|
||||
* Pop3 - Pop3.h
|
||||
* Created 8/12/11 by SPIAdmin
|
||||
* Copyright (c) Airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __ConsoleXSubIn_H
|
||||
#define __ConsoleXSubIn_H
|
||||
#ifndef __Pop3_H
|
||||
#define __Pop3_H
|
||||
|
||||
#ifndef __audioeffect__
|
||||
#include "audioeffectx.h"
|
||||
|
|
@ -16,20 +16,28 @@
|
|||
#include <math.h>
|
||||
|
||||
enum {
|
||||
kNumParameters = 0
|
||||
kParamA =0,
|
||||
kParamB =1,
|
||||
kParamC =2,
|
||||
kParamD =3,
|
||||
kParamE =4,
|
||||
kParamF =5,
|
||||
kParamG =6,
|
||||
kParamH =7,
|
||||
kNumParameters = 8
|
||||
}; //
|
||||
|
||||
const int kNumPrograms = 0;
|
||||
const int kNumInputs = 2;
|
||||
const int kNumOutputs = 2;
|
||||
const unsigned long kUniqueId = 'cnxi'; //Change this to what the AU identity is!
|
||||
const unsigned long kUniqueId = 'popf'; //Change this to what the AU identity is!
|
||||
|
||||
class ConsoleXSubIn :
|
||||
class Pop3 :
|
||||
public AudioEffectX
|
||||
{
|
||||
public:
|
||||
ConsoleXSubIn(audioMasterCallback audioMaster);
|
||||
~ConsoleXSubIn();
|
||||
Pop3(audioMasterCallback audioMaster);
|
||||
~Pop3();
|
||||
virtual bool getEffectName(char* name); // The plug-in name
|
||||
virtual VstPlugCategory getPlugCategory(); // The general category for the plug-in
|
||||
virtual bool getProductString(char* text); // This is a unique plug-in string provided by Steinberg
|
||||
|
|
@ -51,25 +59,22 @@ private:
|
|||
char _programName[kVstMaxProgNameLen + 1];
|
||||
std::set< std::string > _canDo;
|
||||
|
||||
enum {
|
||||
biq_freq,
|
||||
biq_reso,
|
||||
biq_a0,
|
||||
biq_a1,
|
||||
biq_a2,
|
||||
biq_b1,
|
||||
biq_b2,
|
||||
biq_sL1,
|
||||
biq_sL2,
|
||||
biq_sR1,
|
||||
biq_sR2,
|
||||
biq_total
|
||||
};
|
||||
double biquad[biq_total];
|
||||
float A;
|
||||
float B;
|
||||
float C;
|
||||
float D;
|
||||
float E;
|
||||
float F;
|
||||
float G;
|
||||
float H;
|
||||
|
||||
double popCompL;
|
||||
double popCompR;
|
||||
double popGate;
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
148
plugins/LinuxVST/src/Pop3/Pop3Proc.cpp
Executable file
148
plugins/LinuxVST/src/Pop3/Pop3Proc.cpp
Executable file
|
|
@ -0,0 +1,148 @@
|
|||
/* ========================================
|
||||
* Pop3 - Pop3.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __Pop3_H
|
||||
#include "Pop3.h"
|
||||
#endif
|
||||
|
||||
void Pop3::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
float* in1 = inputs[0];
|
||||
float* in2 = inputs[1];
|
||||
float* out1 = outputs[0];
|
||||
float* out2 = outputs[1];
|
||||
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
|
||||
double compThresh = pow(A,4);
|
||||
double compRatio = 1.0-pow(1.0-B,2);
|
||||
double compAttack = 1.0/(((pow(C,3)*5000.0)+500.0)*overallscale);
|
||||
double compRelease = 1.0/(((pow(D,5)*50000.0)+500.0)*overallscale);
|
||||
|
||||
double gateThresh = pow(E,4);
|
||||
double gateRatio = 1.0-pow(1.0-F,2);
|
||||
double gateSustain = M_PI_2 * pow(G+1.0,4.0);
|
||||
double gateRelease = 1.0/(((pow(H,5)*500000.0)+500.0)*overallscale);
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (fabs(inputSampleL) > compThresh) { //compression L
|
||||
popCompL -= (popCompL * compAttack);
|
||||
popCompL += ((compThresh / fabs(inputSampleL))*compAttack);
|
||||
} else popCompL = (popCompL*(1.0-compRelease))+compRelease;
|
||||
if (popCompL < 0.0) popCompL = 0.0;
|
||||
if (fabs(inputSampleR) > compThresh) { //compression R
|
||||
popCompR -= (popCompR * compAttack);
|
||||
popCompR += ((compThresh / fabs(inputSampleR))*compAttack);
|
||||
} else popCompR = (popCompR*(1.0-compRelease))+compRelease;
|
||||
if (popCompR < 0.0) popCompR = 0.0;
|
||||
if (popCompL > popCompR) popCompL -= (popCompL * compAttack);
|
||||
if (popCompR > popCompL) popCompR -= (popCompR * compAttack);
|
||||
if (fabs(inputSampleL) > gateThresh) popGate = gateSustain;
|
||||
else if (fabs(inputSampleR) > gateThresh) popGate = gateSustain;
|
||||
else popGate *= (1.0-gateRelease);
|
||||
if (popGate < 0.0) popGate = 0.0;
|
||||
if (popCompL < 1.0) inputSampleL *= ((1.0-compRatio)+(popCompL*compRatio));
|
||||
if (popCompR < 1.0) inputSampleR *= ((1.0-compRatio)+(popCompR*compRatio));
|
||||
if (popGate < M_PI_2) {
|
||||
inputSampleL *= ((1.0-gateRatio)+(sin(popGate)*gateRatio));
|
||||
inputSampleR *= ((1.0-gateRatio)+(sin(popGate)*gateRatio));
|
||||
}
|
||||
|
||||
//begin 32 bit stereo floating point dither
|
||||
int expon; frexpf((float)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
frexpf((float)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
|
||||
void Pop3::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
double* in1 = inputs[0];
|
||||
double* in2 = inputs[1];
|
||||
double* out1 = outputs[0];
|
||||
double* out2 = outputs[1];
|
||||
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
|
||||
double compThresh = pow(A,4);
|
||||
double compRatio = 1.0-pow(1.0-B,2);
|
||||
double compAttack = 1.0/(((pow(C,3)*5000.0)+500.0)*overallscale);
|
||||
double compRelease = 1.0/(((pow(D,5)*50000.0)+500.0)*overallscale);
|
||||
|
||||
double gateThresh = pow(E,4);
|
||||
double gateRatio = 1.0-pow(1.0-F,2);
|
||||
double gateSustain = M_PI_2 * pow(G+1.0,4.0);
|
||||
double gateRelease = 1.0/(((pow(H,5)*500000.0)+500.0)*overallscale);
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (fabs(inputSampleL) > compThresh) { //compression L
|
||||
popCompL -= (popCompL * compAttack);
|
||||
popCompL += ((compThresh / fabs(inputSampleL))*compAttack);
|
||||
} else popCompL = (popCompL*(1.0-compRelease))+compRelease;
|
||||
if (popCompL < 0.0) popCompL = 0.0;
|
||||
if (fabs(inputSampleR) > compThresh) { //compression R
|
||||
popCompR -= (popCompR * compAttack);
|
||||
popCompR += ((compThresh / fabs(inputSampleR))*compAttack);
|
||||
} else popCompR = (popCompR*(1.0-compRelease))+compRelease;
|
||||
if (popCompR < 0.0) popCompR = 0.0;
|
||||
if (popCompL > popCompR) popCompL -= (popCompL * compAttack);
|
||||
if (popCompR > popCompL) popCompR -= (popCompR * compAttack);
|
||||
if (fabs(inputSampleL) > gateThresh) popGate = gateSustain;
|
||||
else if (fabs(inputSampleR) > gateThresh) popGate = gateSustain;
|
||||
else popGate *= (1.0-gateRelease);
|
||||
if (popGate < 0.0) popGate = 0.0;
|
||||
if (popCompL < 1.0) inputSampleL *= ((1.0-compRatio)+(popCompL*compRatio));
|
||||
if (popCompR < 1.0) inputSampleR *= ((1.0-compRatio)+(popCompR*compRatio));
|
||||
if (popGate < M_PI_2) {
|
||||
inputSampleL *= ((1.0-gateRatio)+(sin(popGate)*gateRatio));
|
||||
inputSampleR *= ((1.0-gateRatio)+(sin(popGate)*gateRatio));
|
||||
}
|
||||
|
||||
//begin 64 bit stereo floating point dither
|
||||
//int expon; frexp((double)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
//inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//frexp((double)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
//inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//end 64 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
198
plugins/LinuxVST/src/StoneFireComp/StoneFireComp.cpp
Executable file
198
plugins/LinuxVST/src/StoneFireComp/StoneFireComp.cpp
Executable file
|
|
@ -0,0 +1,198 @@
|
|||
/* ========================================
|
||||
* StoneFireComp - StoneFireComp.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __StoneFireComp_H
|
||||
#include "StoneFireComp.h"
|
||||
#endif
|
||||
|
||||
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new StoneFireComp(audioMaster);}
|
||||
|
||||
StoneFireComp::StoneFireComp(audioMasterCallback audioMaster) :
|
||||
AudioEffectX(audioMaster, kNumPrograms, kNumParameters)
|
||||
{
|
||||
A = 1.0;
|
||||
B = 0.5;
|
||||
C = 0.5;
|
||||
D = 0.5;
|
||||
E = 1.0;
|
||||
F = 0.5;
|
||||
G = 0.5;
|
||||
H = 0.5;
|
||||
I = 0.5;
|
||||
J = 1.0;
|
||||
|
||||
for (int x = 0; x < kal_total; x++) kal[x] = 0.0;
|
||||
fireCompL = 1.0;
|
||||
fireCompR = 1.0;
|
||||
stoneCompL = 1.0;
|
||||
stoneCompR = 1.0;
|
||||
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
//this is reset: values being initialized only once. Startup values, whatever they are.
|
||||
|
||||
_canDo.insert("plugAsChannelInsert"); // plug-in can be used as a channel insert effect.
|
||||
_canDo.insert("plugAsSend"); // plug-in can be used as a send effect.
|
||||
_canDo.insert("x2in2out");
|
||||
setNumInputs(kNumInputs);
|
||||
setNumOutputs(kNumOutputs);
|
||||
setUniqueID(kUniqueId);
|
||||
canProcessReplacing(); // supports output replacing
|
||||
canDoubleReplacing(); // supports double precision processing
|
||||
programsAreChunks(true);
|
||||
vst_strncpy (_programName, "Default", kVstMaxProgNameLen); // default program name
|
||||
}
|
||||
|
||||
StoneFireComp::~StoneFireComp() {}
|
||||
VstInt32 StoneFireComp::getVendorVersion () {return 1000;}
|
||||
void StoneFireComp::setProgramName(char *name) {vst_strncpy (_programName, name, kVstMaxProgNameLen);}
|
||||
void StoneFireComp::getProgramName(char *name) {vst_strncpy (name, _programName, kVstMaxProgNameLen);}
|
||||
//airwindows likes to ignore this stuff. Make your own programs, and make a different plugin rather than
|
||||
//trying to do versioning and preventing people from using older versions. Maybe they like the old one!
|
||||
|
||||
static float pinParameter(float data)
|
||||
{
|
||||
if (data < 0.0f) return 0.0f;
|
||||
if (data > 1.0f) return 1.0f;
|
||||
return data;
|
||||
}
|
||||
|
||||
VstInt32 StoneFireComp::getChunk (void** data, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)calloc(kNumParameters, sizeof(float));
|
||||
chunkData[0] = A;
|
||||
chunkData[1] = B;
|
||||
chunkData[2] = C;
|
||||
chunkData[3] = D;
|
||||
chunkData[4] = E;
|
||||
chunkData[5] = F;
|
||||
chunkData[6] = G;
|
||||
chunkData[7] = H;
|
||||
chunkData[8] = I;
|
||||
chunkData[9] = J;
|
||||
/* Note: The way this is set up, it will break if you manage to save settings on an Intel
|
||||
machine and load them on a PPC Mac. However, it's fine if you stick to the machine you
|
||||
started with. */
|
||||
|
||||
*data = chunkData;
|
||||
return kNumParameters * sizeof(float);
|
||||
}
|
||||
|
||||
VstInt32 StoneFireComp::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)data;
|
||||
A = pinParameter(chunkData[0]);
|
||||
B = pinParameter(chunkData[1]);
|
||||
C = pinParameter(chunkData[2]);
|
||||
D = pinParameter(chunkData[3]);
|
||||
E = pinParameter(chunkData[4]);
|
||||
F = pinParameter(chunkData[5]);
|
||||
G = pinParameter(chunkData[6]);
|
||||
H = pinParameter(chunkData[7]);
|
||||
I = pinParameter(chunkData[8]);
|
||||
J = pinParameter(chunkData[9]);
|
||||
/* We're ignoring byteSize as we found it to be a filthy liar */
|
||||
|
||||
/* calculate any other fields you need here - you could copy in
|
||||
code from setParameter() here. */
|
||||
return 0;
|
||||
}
|
||||
|
||||
void StoneFireComp::setParameter(VstInt32 index, float value) {
|
||||
switch (index) {
|
||||
case kParamA: A = value; break;
|
||||
case kParamB: B = value; break;
|
||||
case kParamC: C = value; break;
|
||||
case kParamD: D = value; break;
|
||||
case kParamE: E = value; break;
|
||||
case kParamF: F = value; break;
|
||||
case kParamG: G = value; break;
|
||||
case kParamH: H = value; break;
|
||||
case kParamI: I = value; break;
|
||||
case kParamJ: J = value; break;
|
||||
default: throw; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
float StoneFireComp::getParameter(VstInt32 index) {
|
||||
switch (index) {
|
||||
case kParamA: return A; break;
|
||||
case kParamB: return B; break;
|
||||
case kParamC: return C; break;
|
||||
case kParamD: return D; break;
|
||||
case kParamE: return E; break;
|
||||
case kParamF: return F; break;
|
||||
case kParamG: return G; break;
|
||||
case kParamH: return H; break;
|
||||
case kParamI: return I; break;
|
||||
case kParamJ: return J; break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} return 0.0; //we only need to update the relevant name, this is simple to manage
|
||||
}
|
||||
|
||||
void StoneFireComp::getParameterName(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "Fire Th", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "Attack", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "Release", kVstMaxParamStrLen); break;
|
||||
case kParamD: vst_strncpy (text, "Fire", kVstMaxParamStrLen); break;
|
||||
case kParamE: vst_strncpy (text, "StoneTh", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "Attack", kVstMaxParamStrLen); break;
|
||||
case kParamG: vst_strncpy (text, "Release", kVstMaxParamStrLen); break;
|
||||
case kParamH: vst_strncpy (text, "Stone", kVstMaxParamStrLen); break;
|
||||
case kParamI: vst_strncpy (text, "Range", kVstMaxParamStrLen); break;
|
||||
case kParamJ: vst_strncpy (text, "Ratio", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this is our labels for displaying in the VST host
|
||||
}
|
||||
|
||||
void StoneFireComp::getParameterDisplay(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: float2string (A, text, kVstMaxParamStrLen); break;
|
||||
case kParamB: float2string (B, text, kVstMaxParamStrLen); break;
|
||||
case kParamC: float2string (C, text, kVstMaxParamStrLen); break;
|
||||
case kParamD: float2string (D, text, kVstMaxParamStrLen); break;
|
||||
case kParamE: float2string (E, text, kVstMaxParamStrLen); break;
|
||||
case kParamF: float2string (F, text, kVstMaxParamStrLen); break;
|
||||
case kParamG: float2string (G, text, kVstMaxParamStrLen); break;
|
||||
case kParamH: float2string (H, text, kVstMaxParamStrLen); break;
|
||||
case kParamI: float2string (I, text, kVstMaxParamStrLen); break;
|
||||
case kParamJ: float2string (J, text, kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this displays the values and handles 'popups' where it's discrete choices
|
||||
}
|
||||
|
||||
void StoneFireComp::getParameterLabel(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamC: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamD: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamE: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamF: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamG: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamH: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamI: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
case kParamJ: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
VstInt32 StoneFireComp::canDo(char *text)
|
||||
{ return (_canDo.find(text) == _canDo.end()) ? -1: 1; } // 1 = yes, -1 = no, 0 = don't know
|
||||
|
||||
bool StoneFireComp::getEffectName(char* name) {
|
||||
vst_strncpy(name, "StoneFireComp", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
VstPlugCategory StoneFireComp::getPlugCategory() {return kPlugCategEffect;}
|
||||
|
||||
bool StoneFireComp::getProductString(char* text) {
|
||||
vst_strncpy (text, "airwindows StoneFireComp", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
bool StoneFireComp::getVendorString(char* text) {
|
||||
vst_strncpy (text, "airwindows", kVstMaxVendorStrLen); return true;
|
||||
}
|
||||
97
plugins/LinuxVST/src/StoneFireComp/StoneFireComp.h
Executable file
97
plugins/LinuxVST/src/StoneFireComp/StoneFireComp.h
Executable file
|
|
@ -0,0 +1,97 @@
|
|||
/* ========================================
|
||||
* StoneFireComp - StoneFireComp.h
|
||||
* Created 8/12/11 by SPIAdmin
|
||||
* Copyright (c) Airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __StoneFireComp_H
|
||||
#define __StoneFireComp_H
|
||||
|
||||
#ifndef __audioeffect__
|
||||
#include "audioeffectx.h"
|
||||
#endif
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <math.h>
|
||||
|
||||
enum {
|
||||
kParamA =0,
|
||||
kParamB =1,
|
||||
kParamC =2,
|
||||
kParamD =3,
|
||||
kParamE =4,
|
||||
kParamF =5,
|
||||
kParamG =6,
|
||||
kParamH =7,
|
||||
kParamI =8,
|
||||
kParamJ =9,
|
||||
kNumParameters = 10
|
||||
}; //
|
||||
|
||||
const int kNumPrograms = 0;
|
||||
const int kNumInputs = 2;
|
||||
const int kNumOutputs = 2;
|
||||
const unsigned long kUniqueId = 'stfc'; //Change this to what the AU identity is!
|
||||
|
||||
class StoneFireComp :
|
||||
public AudioEffectX
|
||||
{
|
||||
public:
|
||||
StoneFireComp(audioMasterCallback audioMaster);
|
||||
~StoneFireComp();
|
||||
virtual bool getEffectName(char* name); // The plug-in name
|
||||
virtual VstPlugCategory getPlugCategory(); // The general category for the plug-in
|
||||
virtual bool getProductString(char* text); // This is a unique plug-in string provided by Steinberg
|
||||
virtual bool getVendorString(char* text); // Vendor info
|
||||
virtual VstInt32 getVendorVersion(); // Version number
|
||||
virtual void processReplacing (float** inputs, float** outputs, VstInt32 sampleFrames);
|
||||
virtual void processDoubleReplacing (double** inputs, double** outputs, VstInt32 sampleFrames);
|
||||
virtual void getProgramName(char *name); // read the name from the host
|
||||
virtual void setProgramName(char *name); // changes the name of the preset displayed in the host
|
||||
virtual VstInt32 getChunk (void** data, bool isPreset);
|
||||
virtual VstInt32 setChunk (void* data, VstInt32 byteSize, bool isPreset);
|
||||
virtual float getParameter(VstInt32 index); // get the parameter value at the specified index
|
||||
virtual void setParameter(VstInt32 index, float value); // set the parameter at index to value
|
||||
virtual void getParameterLabel(VstInt32 index, char *text); // label for the parameter (eg dB)
|
||||
virtual void getParameterName(VstInt32 index, char *text); // name of the parameter
|
||||
virtual void getParameterDisplay(VstInt32 index, char *text); // text description of the current value
|
||||
virtual VstInt32 canDo(char *text);
|
||||
private:
|
||||
char _programName[kVstMaxProgNameLen + 1];
|
||||
std::set< std::string > _canDo;
|
||||
|
||||
float A;
|
||||
float B;
|
||||
float C;
|
||||
float D;
|
||||
float E;
|
||||
float F;
|
||||
float G;
|
||||
float H;
|
||||
float I;
|
||||
float J;
|
||||
|
||||
enum {
|
||||
prevSampL1, prevSlewL1, accSlewL1,
|
||||
prevSampL2, prevSlewL2, accSlewL2,
|
||||
prevSampL3, prevSlewL3, accSlewL3,
|
||||
kalGainL, kalOutL,
|
||||
prevSampR1, prevSlewR1, accSlewR1,
|
||||
prevSampR2, prevSlewR2, accSlewR2,
|
||||
prevSampR3, prevSlewR3, accSlewR3,
|
||||
kalGainR, kalOutR,
|
||||
kal_total
|
||||
};
|
||||
double kal[kal_total];
|
||||
double fireCompL;
|
||||
double fireCompR;
|
||||
double stoneCompL;
|
||||
double stoneCompR;
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
};
|
||||
|
||||
#endif
|
||||
312
plugins/LinuxVST/src/StoneFireComp/StoneFireCompProc.cpp
Executable file
312
plugins/LinuxVST/src/StoneFireComp/StoneFireCompProc.cpp
Executable file
|
|
@ -0,0 +1,312 @@
|
|||
/* ========================================
|
||||
* StoneFireComp - StoneFireComp.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __StoneFireComp_H
|
||||
#include "StoneFireComp.h"
|
||||
#endif
|
||||
|
||||
void StoneFireComp::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
float* in1 = inputs[0];
|
||||
float* in2 = inputs[1];
|
||||
float* out1 = outputs[0];
|
||||
float* out2 = outputs[1];
|
||||
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
|
||||
double compFThresh = pow(A,4);
|
||||
double compFAttack = 1.0/(((pow(B,3)*5000.0)+500.0)*overallscale);
|
||||
double compFRelease = 1.0/(((pow(C,5)*50000.0)+500.0)*overallscale);
|
||||
double fireGain = D*2.0; fireGain = pow(fireGain,3);
|
||||
double firePad = fireGain; if (firePad > 1.0) firePad = 1.0;
|
||||
|
||||
double compSThresh = pow(E,4);
|
||||
double compSAttack = 1.0/(((pow(F,3)*5000.0)+500.0)*overallscale);
|
||||
double compSRelease = 1.0/(((pow(G,5)*50000.0)+500.0)*overallscale);
|
||||
double stoneGain = H*2.0; stoneGain = pow(stoneGain,3);
|
||||
double stonePad = stoneGain; if (stonePad > 1.0) stonePad = 1.0;
|
||||
|
||||
double kalman = 1.0-pow(I,2);
|
||||
//crossover frequency between mid/bass
|
||||
double compRatio = 1.0-pow(1.0-J,2);
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
//begin KalmanL
|
||||
double fireL = inputSampleL;
|
||||
double temp = inputSampleL = inputSampleL*(1.0-kalman)*0.777;
|
||||
inputSampleL *= (1.0-kalman);
|
||||
//set up gain levels to control the beast
|
||||
kal[prevSlewL3] += kal[prevSampL3] - kal[prevSampL2]; kal[prevSlewL3] *= 0.5;
|
||||
kal[prevSlewL2] += kal[prevSampL2] - kal[prevSampL1]; kal[prevSlewL2] *= 0.5;
|
||||
kal[prevSlewL1] += kal[prevSampL1] - inputSampleL; kal[prevSlewL1] *= 0.5;
|
||||
//make slews from each set of samples used
|
||||
kal[accSlewL2] += kal[prevSlewL3] - kal[prevSlewL2]; kal[accSlewL2] *= 0.5;
|
||||
kal[accSlewL1] += kal[prevSlewL2] - kal[prevSlewL1]; kal[accSlewL1] *= 0.5;
|
||||
//differences between slews: rate of change of rate of change
|
||||
kal[accSlewL3] += (kal[accSlewL2] - kal[accSlewL1]); kal[accSlewL3] *= 0.5;
|
||||
//entering the abyss, what even is this
|
||||
kal[kalOutL] += kal[prevSampL1] + kal[prevSlewL2] + kal[accSlewL3]; kal[kalOutL] *= 0.5;
|
||||
//resynthesizing predicted result (all iir smoothed)
|
||||
kal[kalGainL] += fabs(temp-kal[kalOutL])*kalman*8.0; kal[kalGainL] *= 0.5;
|
||||
//madness takes its toll. Kalman Gain: how much dry to retain
|
||||
if (kal[kalGainL] > kalman*0.5) kal[kalGainL] = kalman*0.5;
|
||||
//attempts to avoid explosions
|
||||
kal[kalOutL] += (temp*(1.0-(0.68+(kalman*0.157))));
|
||||
//this is for tuning a really complete cancellation up around Nyquist
|
||||
kal[prevSampL3] = kal[prevSampL2]; kal[prevSampL2] = kal[prevSampL1];
|
||||
kal[prevSampL1] = (kal[kalGainL] * kal[kalOutL]) + ((1.0-kal[kalGainL])*temp);
|
||||
//feed the chain of previous samples
|
||||
if (kal[prevSampL1] > 1.0) kal[prevSampL1] = 1.0; if (kal[prevSampL1] < -1.0) kal[prevSampL1] = -1.0;
|
||||
double stoneL = kal[kalOutL]*0.777;
|
||||
fireL -= stoneL;
|
||||
//end KalmanL
|
||||
|
||||
//begin KalmanR
|
||||
double fireR = inputSampleR;
|
||||
temp = inputSampleR = inputSampleR*(1.0-kalman)*0.777;
|
||||
inputSampleR *= (1.0-kalman);
|
||||
//set up gain levels to control the beast
|
||||
kal[prevSlewR3] += kal[prevSampR3] - kal[prevSampR2]; kal[prevSlewR3] *= 0.5;
|
||||
kal[prevSlewR2] += kal[prevSampR2] - kal[prevSampR1]; kal[prevSlewR2] *= 0.5;
|
||||
kal[prevSlewR1] += kal[prevSampR1] - inputSampleR; kal[prevSlewR1] *= 0.5;
|
||||
//make slews from each set of samples used
|
||||
kal[accSlewR2] += kal[prevSlewR3] - kal[prevSlewR2]; kal[accSlewR2] *= 0.5;
|
||||
kal[accSlewR1] += kal[prevSlewR2] - kal[prevSlewR1]; kal[accSlewR1] *= 0.5;
|
||||
//differences between slews: rate of change of rate of change
|
||||
kal[accSlewR3] += (kal[accSlewR2] - kal[accSlewR1]); kal[accSlewR3] *= 0.5;
|
||||
//entering the abyss, what even is this
|
||||
kal[kalOutR] += kal[prevSampR1] + kal[prevSlewR2] + kal[accSlewR3]; kal[kalOutR] *= 0.5;
|
||||
//resynthesizing predicted result (all iir smoothed)
|
||||
kal[kalGainR] += fabs(temp-kal[kalOutR])*kalman*8.0; kal[kalGainR] *= 0.5;
|
||||
//madness takes its toll. Kalman Gain: how much dry to retain
|
||||
if (kal[kalGainR] > kalman*0.5) kal[kalGainR] = kalman*0.5;
|
||||
//attempts to avoid explosions
|
||||
kal[kalOutR] += (temp*(1.0-(0.68+(kalman*0.157))));
|
||||
//this is for tuning a really complete cancellation up around Nyquist
|
||||
kal[prevSampR3] = kal[prevSampR2]; kal[prevSampR2] = kal[prevSampR1];
|
||||
kal[prevSampR1] = (kal[kalGainR] * kal[kalOutR]) + ((1.0-kal[kalGainR])*temp);
|
||||
//feed the chain of previous samples
|
||||
if (kal[prevSampR1] > 1.0) kal[prevSampR1] = 1.0; if (kal[prevSampR1] < -1.0) kal[prevSampR1] = -1.0;
|
||||
double stoneR = kal[kalOutR]*0.777;
|
||||
fireR -= stoneR;
|
||||
//end KalmanR
|
||||
|
||||
//fire dynamics
|
||||
if (fabs(fireL) > compFThresh) { //compression L
|
||||
fireCompL -= (fireCompL * compFAttack);
|
||||
fireCompL += ((compFThresh / fabs(fireL))*compFAttack);
|
||||
} else fireCompL = (fireCompL*(1.0-compFRelease))+compFRelease;
|
||||
if (fireCompL < 0.0) fireCompL = 0.0;
|
||||
if (fabs(fireR) > compFThresh) { //compression R
|
||||
fireCompR -= (fireCompR * compFAttack);
|
||||
fireCompR += ((compFThresh / fabs(fireR))*compFAttack);
|
||||
} else fireCompR = (fireCompR*(1.0-compFRelease))+compFRelease;
|
||||
if (fireCompR < 0.0) fireCompR = 0.0;
|
||||
if (fireCompL > fireCompR) fireCompL -= (fireCompL * compFAttack);
|
||||
if (fireCompR > fireCompL) fireCompR -= (fireCompR * compFAttack);
|
||||
if (fireCompL < 1.0) fireL *= (((1.0-compRatio)*firePad)+(fireCompL*compRatio*fireGain));
|
||||
else fireL *= firePad;
|
||||
if (fireCompR < 1.0) fireR *= (((1.0-compRatio)*firePad)+(fireCompR*compRatio*fireGain));
|
||||
else fireR *= firePad;
|
||||
|
||||
//stone dynamics
|
||||
if (fabs(stoneL) > compSThresh) { //compression L
|
||||
stoneCompL -= (stoneCompL * compSAttack);
|
||||
stoneCompL += ((compSThresh / fabs(stoneL))*compSAttack);
|
||||
} else stoneCompL = (stoneCompL*(1.0-compSRelease))+compSRelease;
|
||||
if (stoneCompL < 0.0) stoneCompL = 0.0;
|
||||
if (fabs(stoneR) > compSThresh) { //compression R
|
||||
stoneCompR -= (stoneCompR * compSAttack);
|
||||
stoneCompR += ((compSThresh / fabs(stoneR))*compSAttack);
|
||||
} else stoneCompR = (stoneCompR*(1.0-compSRelease))+compSRelease;
|
||||
if (stoneCompR < 0.0) stoneCompR = 0.0;
|
||||
if (stoneCompL > stoneCompR) stoneCompL -= (stoneCompL * compSAttack);
|
||||
if (stoneCompR > stoneCompL) stoneCompR -= (stoneCompR * compSAttack);
|
||||
if (stoneCompL < 1.0) stoneL *= (((1.0-compRatio)*stonePad)+(stoneCompL*compRatio*stoneGain));
|
||||
else stoneL *= stonePad;
|
||||
if (stoneCompR < 1.0) stoneR *= (((1.0-compRatio)*stonePad)+(stoneCompR*compRatio*stoneGain));
|
||||
else stoneR *= stonePad;
|
||||
|
||||
inputSampleL = stoneL+fireL;
|
||||
inputSampleR = stoneR+fireR;
|
||||
|
||||
//begin 32 bit stereo floating point dither
|
||||
int expon; frexpf((float)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
frexpf((float)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
|
||||
void StoneFireComp::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sampleFrames)
|
||||
{
|
||||
double* in1 = inputs[0];
|
||||
double* in2 = inputs[1];
|
||||
double* out1 = outputs[0];
|
||||
double* out2 = outputs[1];
|
||||
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= getSampleRate();
|
||||
|
||||
double compFThresh = pow(A,4);
|
||||
double compFAttack = 1.0/(((pow(B,3)*5000.0)+500.0)*overallscale);
|
||||
double compFRelease = 1.0/(((pow(C,5)*50000.0)+500.0)*overallscale);
|
||||
double fireGain = D*2.0; fireGain = pow(fireGain,3);
|
||||
double firePad = fireGain; if (firePad > 1.0) firePad = 1.0;
|
||||
|
||||
double compSThresh = pow(E,4);
|
||||
double compSAttack = 1.0/(((pow(F,3)*5000.0)+500.0)*overallscale);
|
||||
double compSRelease = 1.0/(((pow(G,5)*50000.0)+500.0)*overallscale);
|
||||
double stoneGain = H*2.0; stoneGain = pow(stoneGain,3);
|
||||
double stonePad = stoneGain; if (stonePad > 1.0) stonePad = 1.0;
|
||||
|
||||
double kalman = 1.0-pow(I,2);
|
||||
//crossover frequency between mid/bass
|
||||
double compRatio = 1.0-pow(1.0-J,2);
|
||||
|
||||
while (--sampleFrames >= 0)
|
||||
{
|
||||
double inputSampleL = *in1;
|
||||
double inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
//begin KalmanL
|
||||
double fireL = inputSampleL;
|
||||
double temp = inputSampleL = inputSampleL*(1.0-kalman)*0.777;
|
||||
inputSampleL *= (1.0-kalman);
|
||||
//set up gain levels to control the beast
|
||||
kal[prevSlewL3] += kal[prevSampL3] - kal[prevSampL2]; kal[prevSlewL3] *= 0.5;
|
||||
kal[prevSlewL2] += kal[prevSampL2] - kal[prevSampL1]; kal[prevSlewL2] *= 0.5;
|
||||
kal[prevSlewL1] += kal[prevSampL1] - inputSampleL; kal[prevSlewL1] *= 0.5;
|
||||
//make slews from each set of samples used
|
||||
kal[accSlewL2] += kal[prevSlewL3] - kal[prevSlewL2]; kal[accSlewL2] *= 0.5;
|
||||
kal[accSlewL1] += kal[prevSlewL2] - kal[prevSlewL1]; kal[accSlewL1] *= 0.5;
|
||||
//differences between slews: rate of change of rate of change
|
||||
kal[accSlewL3] += (kal[accSlewL2] - kal[accSlewL1]); kal[accSlewL3] *= 0.5;
|
||||
//entering the abyss, what even is this
|
||||
kal[kalOutL] += kal[prevSampL1] + kal[prevSlewL2] + kal[accSlewL3]; kal[kalOutL] *= 0.5;
|
||||
//resynthesizing predicted result (all iir smoothed)
|
||||
kal[kalGainL] += fabs(temp-kal[kalOutL])*kalman*8.0; kal[kalGainL] *= 0.5;
|
||||
//madness takes its toll. Kalman Gain: how much dry to retain
|
||||
if (kal[kalGainL] > kalman*0.5) kal[kalGainL] = kalman*0.5;
|
||||
//attempts to avoid explosions
|
||||
kal[kalOutL] += (temp*(1.0-(0.68+(kalman*0.157))));
|
||||
//this is for tuning a really complete cancellation up around Nyquist
|
||||
kal[prevSampL3] = kal[prevSampL2]; kal[prevSampL2] = kal[prevSampL1];
|
||||
kal[prevSampL1] = (kal[kalGainL] * kal[kalOutL]) + ((1.0-kal[kalGainL])*temp);
|
||||
//feed the chain of previous samples
|
||||
if (kal[prevSampL1] > 1.0) kal[prevSampL1] = 1.0; if (kal[prevSampL1] < -1.0) kal[prevSampL1] = -1.0;
|
||||
double stoneL = kal[kalOutL]*0.777;
|
||||
fireL -= stoneL;
|
||||
//end KalmanL
|
||||
|
||||
//begin KalmanR
|
||||
double fireR = inputSampleR;
|
||||
temp = inputSampleR = inputSampleR*(1.0-kalman)*0.777;
|
||||
inputSampleR *= (1.0-kalman);
|
||||
//set up gain levels to control the beast
|
||||
kal[prevSlewR3] += kal[prevSampR3] - kal[prevSampR2]; kal[prevSlewR3] *= 0.5;
|
||||
kal[prevSlewR2] += kal[prevSampR2] - kal[prevSampR1]; kal[prevSlewR2] *= 0.5;
|
||||
kal[prevSlewR1] += kal[prevSampR1] - inputSampleR; kal[prevSlewR1] *= 0.5;
|
||||
//make slews from each set of samples used
|
||||
kal[accSlewR2] += kal[prevSlewR3] - kal[prevSlewR2]; kal[accSlewR2] *= 0.5;
|
||||
kal[accSlewR1] += kal[prevSlewR2] - kal[prevSlewR1]; kal[accSlewR1] *= 0.5;
|
||||
//differences between slews: rate of change of rate of change
|
||||
kal[accSlewR3] += (kal[accSlewR2] - kal[accSlewR1]); kal[accSlewR3] *= 0.5;
|
||||
//entering the abyss, what even is this
|
||||
kal[kalOutR] += kal[prevSampR1] + kal[prevSlewR2] + kal[accSlewR3]; kal[kalOutR] *= 0.5;
|
||||
//resynthesizing predicted result (all iir smoothed)
|
||||
kal[kalGainR] += fabs(temp-kal[kalOutR])*kalman*8.0; kal[kalGainR] *= 0.5;
|
||||
//madness takes its toll. Kalman Gain: how much dry to retain
|
||||
if (kal[kalGainR] > kalman*0.5) kal[kalGainR] = kalman*0.5;
|
||||
//attempts to avoid explosions
|
||||
kal[kalOutR] += (temp*(1.0-(0.68+(kalman*0.157))));
|
||||
//this is for tuning a really complete cancellation up around Nyquist
|
||||
kal[prevSampR3] = kal[prevSampR2]; kal[prevSampR2] = kal[prevSampR1];
|
||||
kal[prevSampR1] = (kal[kalGainR] * kal[kalOutR]) + ((1.0-kal[kalGainR])*temp);
|
||||
//feed the chain of previous samples
|
||||
if (kal[prevSampR1] > 1.0) kal[prevSampR1] = 1.0; if (kal[prevSampR1] < -1.0) kal[prevSampR1] = -1.0;
|
||||
double stoneR = kal[kalOutR]*0.777;
|
||||
fireR -= stoneR;
|
||||
//end KalmanR
|
||||
|
||||
//fire dynamics
|
||||
if (fabs(fireL) > compFThresh) { //compression L
|
||||
fireCompL -= (fireCompL * compFAttack);
|
||||
fireCompL += ((compFThresh / fabs(fireL))*compFAttack);
|
||||
} else fireCompL = (fireCompL*(1.0-compFRelease))+compFRelease;
|
||||
if (fireCompL < 0.0) fireCompL = 0.0;
|
||||
if (fabs(fireR) > compFThresh) { //compression R
|
||||
fireCompR -= (fireCompR * compFAttack);
|
||||
fireCompR += ((compFThresh / fabs(fireR))*compFAttack);
|
||||
} else fireCompR = (fireCompR*(1.0-compFRelease))+compFRelease;
|
||||
if (fireCompR < 0.0) fireCompR = 0.0;
|
||||
if (fireCompL > fireCompR) fireCompL -= (fireCompL * compFAttack);
|
||||
if (fireCompR > fireCompL) fireCompR -= (fireCompR * compFAttack);
|
||||
if (fireCompL < 1.0) fireL *= (((1.0-compRatio)*firePad)+(fireCompL*compRatio*fireGain));
|
||||
else fireL *= firePad;
|
||||
if (fireCompR < 1.0) fireR *= (((1.0-compRatio)*firePad)+(fireCompR*compRatio*fireGain));
|
||||
else fireR *= firePad;
|
||||
|
||||
//stone dynamics
|
||||
if (fabs(stoneL) > compSThresh) { //compression L
|
||||
stoneCompL -= (stoneCompL * compSAttack);
|
||||
stoneCompL += ((compSThresh / fabs(stoneL))*compSAttack);
|
||||
} else stoneCompL = (stoneCompL*(1.0-compSRelease))+compSRelease;
|
||||
if (stoneCompL < 0.0) stoneCompL = 0.0;
|
||||
if (fabs(stoneR) > compSThresh) { //compression R
|
||||
stoneCompR -= (stoneCompR * compSAttack);
|
||||
stoneCompR += ((compSThresh / fabs(stoneR))*compSAttack);
|
||||
} else stoneCompR = (stoneCompR*(1.0-compSRelease))+compSRelease;
|
||||
if (stoneCompR < 0.0) stoneCompR = 0.0;
|
||||
if (stoneCompL > stoneCompR) stoneCompL -= (stoneCompL * compSAttack);
|
||||
if (stoneCompR > stoneCompL) stoneCompR -= (stoneCompR * compSAttack);
|
||||
if (stoneCompL < 1.0) stoneL *= (((1.0-compRatio)*stonePad)+(stoneCompL*compRatio*stoneGain));
|
||||
else stoneL *= stonePad;
|
||||
if (stoneCompR < 1.0) stoneR *= (((1.0-compRatio)*stonePad)+(stoneCompR*compRatio*stoneGain));
|
||||
else stoneR *= stonePad;
|
||||
|
||||
inputSampleL = stoneL+fireL;
|
||||
inputSampleR = stoneR+fireR;
|
||||
|
||||
//begin 64 bit stereo floating point dither
|
||||
//int expon; frexp((double)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
//inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//frexp((double)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
//inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 1.1e-44l * pow(2,expon+62));
|
||||
//end 64 bit stereo floating point dither
|
||||
|
||||
*out1 = inputSampleL;
|
||||
*out2 = inputSampleR;
|
||||
|
||||
in1++;
|
||||
in2++;
|
||||
out1++;
|
||||
out2++;
|
||||
}
|
||||
}
|
||||
275
plugins/MacAU/BiquadHiLo/BiquadHiLo.cpp
Executable file
275
plugins/MacAU/BiquadHiLo/BiquadHiLo.cpp
Executable file
|
|
@ -0,0 +1,275 @@
|
|||
/*
|
||||
* File: BiquadHiLo.cpp
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 4/19/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
/*=============================================================================
|
||||
BiquadHiLo.cpp
|
||||
|
||||
=============================================================================*/
|
||||
#include "BiquadHiLo.h"
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
COMPONENT_ENTRY(BiquadHiLo)
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadHiLo::BiquadHiLo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
BiquadHiLo::BiquadHiLo(AudioUnit component)
|
||||
: AUEffectBase(component)
|
||||
{
|
||||
CreateElements();
|
||||
Globals()->UseIndexedParameters(kNumberOfParameters);
|
||||
SetParameter(kParam_HIP, kDefaultValue_ParamHIP );
|
||||
SetParameter(kParam_LOP, kDefaultValue_ParamLOP );
|
||||
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
mDebugDispatcher = new AUDebugDispatcher (this);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadHiLo::GetParameterValueStrings
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult BiquadHiLo::GetParameterValueStrings(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
CFArrayRef * outStrings)
|
||||
{
|
||||
|
||||
return kAudioUnitErr_InvalidProperty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadHiLo::GetParameterInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult BiquadHiLo::GetParameterInfo(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
AudioUnitParameterInfo &outParameterInfo )
|
||||
{
|
||||
ComponentResult result = noErr;
|
||||
|
||||
outParameterInfo.flags = kAudioUnitParameterFlag_IsWritable
|
||||
| kAudioUnitParameterFlag_IsReadable;
|
||||
|
||||
if (inScope == kAudioUnitScope_Global) {
|
||||
switch(inParameterID)
|
||||
{
|
||||
case kParam_HIP:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterHIPName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamHIP;
|
||||
break;
|
||||
case kParam_LOP:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterLOPName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamLOP;
|
||||
break;
|
||||
default:
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadHiLo::GetPropertyInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult BiquadHiLo::GetPropertyInfo (AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
UInt32 & outDataSize,
|
||||
Boolean & outWritable)
|
||||
{
|
||||
return AUEffectBase::GetPropertyInfo (inID, inScope, inElement, outDataSize, outWritable);
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadHiLo::GetProperty
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult BiquadHiLo::GetProperty( AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
void * outData )
|
||||
{
|
||||
return AUEffectBase::GetProperty (inID, inScope, inElement, outData);
|
||||
}
|
||||
|
||||
// BiquadHiLo::Initialize
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult BiquadHiLo::Initialize()
|
||||
{
|
||||
ComponentResult result = AUEffectBase::Initialize();
|
||||
if (result == noErr)
|
||||
Reset(kAudioUnitScope_Global, 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
#pragma mark ____BiquadHiLoEffectKernel
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadHiLo::BiquadHiLoKernel::Reset()
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
void BiquadHiLo::BiquadHiLoKernel::Reset()
|
||||
{
|
||||
for (int x = 0; x < hilp_total; x++) {
|
||||
highpass[x] = 0.0;
|
||||
lowpass[x] = 0.0;
|
||||
}
|
||||
fpd = 1.0; while (fpd < 16386) fpd = rand()*UINT32_MAX;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadHiLo::BiquadHiLoKernel::Process
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
void BiquadHiLo::BiquadHiLoKernel::Process( const Float32 *inSourceP,
|
||||
Float32 *inDestP,
|
||||
UInt32 inFramesToProcess,
|
||||
UInt32 inNumChannels,
|
||||
bool &ioSilence )
|
||||
{
|
||||
UInt32 nSampleFrames = inFramesToProcess;
|
||||
const Float32 *sourceP = inSourceP;
|
||||
Float32 *destP = inDestP;
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= GetSampleRate();
|
||||
|
||||
highpass[hilp_freq] = ((GetParameter( kParam_HIP )*330.0)+20.0)/GetSampleRate();
|
||||
bool highpassEngage = true; if (GetParameter( kParam_HIP ) == 0.0) highpassEngage = false;
|
||||
|
||||
lowpass[hilp_freq] = ((pow(1.0-GetParameter( kParam_LOP ),2)*17000.0)+3000.0)/GetSampleRate();
|
||||
bool lowpassEngage = true; if (GetParameter( kParam_LOP ) == 0.0) lowpassEngage = false;
|
||||
|
||||
double K = tan(M_PI * highpass[hilp_freq]); //highpass
|
||||
double norm = 1.0 / (1.0 + K / 1.93185165 + K * K);
|
||||
highpass[hilp_a0] = norm;
|
||||
highpass[hilp_a1] = -2.0 * highpass[hilp_a0];
|
||||
highpass[hilp_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
highpass[hilp_b2] = (1.0 - K / 1.93185165 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.70710678 + K * K);
|
||||
highpass[hilp_c0] = norm;
|
||||
highpass[hilp_c1] = -2.0 * highpass[hilp_c0];
|
||||
highpass[hilp_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
highpass[hilp_d2] = (1.0 - K / 0.70710678 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.51763809 + K * K);
|
||||
highpass[hilp_e0] = norm;
|
||||
highpass[hilp_e1] = -2.0 * highpass[hilp_e0];
|
||||
highpass[hilp_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
highpass[hilp_f2] = (1.0 - K / 0.51763809 + K * K) * norm;
|
||||
|
||||
K = tan(M_PI * lowpass[hilp_freq]); //lowpass
|
||||
norm = 1.0 / (1.0 + K / 1.93185165 + K * K);
|
||||
lowpass[hilp_a0] = K * K * norm;
|
||||
lowpass[hilp_a1] = 2.0 * lowpass[hilp_a0];
|
||||
lowpass[hilp_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lowpass[hilp_b2] = (1.0 - K / 1.93185165 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.70710678 + K * K);
|
||||
lowpass[hilp_c0] = K * K * norm;
|
||||
lowpass[hilp_c1] = 2.0 * lowpass[hilp_c0];
|
||||
lowpass[hilp_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lowpass[hilp_d2] = (1.0 - K / 0.70710678 + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / 0.51763809 + K * K);
|
||||
lowpass[hilp_e0] = K * K * norm;
|
||||
lowpass[hilp_e1] = 2.0 * lowpass[hilp_e0];
|
||||
lowpass[hilp_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lowpass[hilp_f2] = (1.0 - K / 0.51763809 + K * K) * norm;
|
||||
|
||||
while (nSampleFrames-- > 0) {
|
||||
double inputSample = *sourceP;
|
||||
if (fabs(inputSample)<1.18e-23) inputSample = fpd * 1.18e-17;
|
||||
|
||||
if (highpassEngage) { //begin Stacked Highpass
|
||||
highpass[hilp_temp] = (inputSample*highpass[hilp_a0])+highpass[hilp_aL1];
|
||||
highpass[hilp_aL1] = (inputSample*highpass[hilp_a1])-(highpass[hilp_temp]*highpass[hilp_b1])+highpass[hilp_aL2];
|
||||
highpass[hilp_aL2] = (inputSample*highpass[hilp_a0])-(highpass[hilp_temp]*highpass[hilp_b2]); inputSample = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSample*highpass[hilp_c0])+highpass[hilp_cL1];
|
||||
highpass[hilp_cL1] = (inputSample*highpass[hilp_c1])-(highpass[hilp_temp]*highpass[hilp_d1])+highpass[hilp_cL2];
|
||||
highpass[hilp_cL2] = (inputSample*highpass[hilp_c0])-(highpass[hilp_temp]*highpass[hilp_d2]); inputSample = highpass[hilp_temp];
|
||||
highpass[hilp_temp] = (inputSample*highpass[hilp_e0])+highpass[hilp_eL1];
|
||||
highpass[hilp_eL1] = (inputSample*highpass[hilp_e1])-(highpass[hilp_temp]*highpass[hilp_f1])+highpass[hilp_eL2];
|
||||
highpass[hilp_eL2] = (inputSample*highpass[hilp_e0])-(highpass[hilp_temp]*highpass[hilp_f2]); inputSample = highpass[hilp_temp];
|
||||
} else {
|
||||
highpass[hilp_aL1] = highpass[hilp_aL2] = 0.0;
|
||||
} //end Stacked Highpass
|
||||
|
||||
//rest of control strip goes here
|
||||
|
||||
if (lowpassEngage) { //begin Stacked Lowpass
|
||||
lowpass[hilp_temp] = (inputSample*lowpass[hilp_a0])+lowpass[hilp_aL1];
|
||||
lowpass[hilp_aL1] = (inputSample*lowpass[hilp_a1])-(lowpass[hilp_temp]*lowpass[hilp_b1])+lowpass[hilp_aL2];
|
||||
lowpass[hilp_aL2] = (inputSample*lowpass[hilp_a0])-(lowpass[hilp_temp]*lowpass[hilp_b2]); inputSample = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSample*lowpass[hilp_c0])+lowpass[hilp_cL1];
|
||||
lowpass[hilp_cL1] = (inputSample*lowpass[hilp_c1])-(lowpass[hilp_temp]*lowpass[hilp_d1])+lowpass[hilp_cL2];
|
||||
lowpass[hilp_cL2] = (inputSample*lowpass[hilp_c0])-(lowpass[hilp_temp]*lowpass[hilp_d2]); inputSample = lowpass[hilp_temp];
|
||||
lowpass[hilp_temp] = (inputSample*lowpass[hilp_e0])+lowpass[hilp_eL1];
|
||||
lowpass[hilp_eL1] = (inputSample*lowpass[hilp_e1])-(lowpass[hilp_temp]*lowpass[hilp_f1])+lowpass[hilp_eL2];
|
||||
lowpass[hilp_eL2] = (inputSample*lowpass[hilp_e0])-(lowpass[hilp_temp]*lowpass[hilp_f2]); inputSample = lowpass[hilp_temp];
|
||||
} //end Stacked Lowpass
|
||||
|
||||
//begin 32 bit floating point dither
|
||||
int expon; frexpf((float)inputSample, &expon);
|
||||
fpd ^= fpd << 13; fpd ^= fpd >> 17; fpd ^= fpd << 5;
|
||||
inputSample += ((double(fpd)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit floating point dither
|
||||
|
||||
*destP = inputSample;
|
||||
|
||||
sourceP += inNumChannels; destP += inNumChannels;
|
||||
}
|
||||
}
|
||||
|
||||
1
plugins/MacAU/BiquadHiLo/BiquadHiLo.exp
Executable file
1
plugins/MacAU/BiquadHiLo/BiquadHiLo.exp
Executable file
|
|
@ -0,0 +1 @@
|
|||
_BiquadHiLoEntry
|
||||
151
plugins/MacAU/BiquadHiLo/BiquadHiLo.h
Executable file
151
plugins/MacAU/BiquadHiLo/BiquadHiLo.h
Executable file
|
|
@ -0,0 +1,151 @@
|
|||
/*
|
||||
* File: BiquadHiLo.h
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 4/19/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
#include "AUEffectBase.h"
|
||||
#include "BiquadHiLoVersion.h"
|
||||
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
#include "AUDebugDispatcher.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef __BiquadHiLo_h__
|
||||
#define __BiquadHiLo_h__
|
||||
|
||||
|
||||
#pragma mark ____BiquadHiLo Parameters
|
||||
|
||||
// parameters
|
||||
static const float kDefaultValue_ParamHIP = 0.0;
|
||||
static const float kDefaultValue_ParamLOP = 0.0;
|
||||
|
||||
static CFStringRef kParameterHIPName = CFSTR("Highpas");
|
||||
static CFStringRef kParameterLOPName = CFSTR("Lowpass");
|
||||
|
||||
enum {
|
||||
kParam_HIP =0,
|
||||
kParam_LOP =1,
|
||||
//Add your parameters here...
|
||||
kNumberOfParameters=2
|
||||
};
|
||||
|
||||
#pragma mark ____BiquadHiLo
|
||||
class BiquadHiLo : public AUEffectBase
|
||||
{
|
||||
public:
|
||||
BiquadHiLo(AudioUnit component);
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
virtual ~BiquadHiLo () { delete mDebugDispatcher; }
|
||||
#endif
|
||||
|
||||
virtual AUKernelBase * NewKernel() { return new BiquadHiLoKernel(this); }
|
||||
|
||||
virtual ComponentResult GetParameterValueStrings(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
CFArrayRef * outStrings);
|
||||
|
||||
virtual ComponentResult GetParameterInfo(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
AudioUnitParameterInfo &outParameterInfo);
|
||||
|
||||
virtual ComponentResult GetPropertyInfo(AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
UInt32 & outDataSize,
|
||||
Boolean & outWritable );
|
||||
|
||||
virtual ComponentResult GetProperty(AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
void * outData);
|
||||
|
||||
virtual ComponentResult Initialize();
|
||||
virtual bool SupportsTail () { return true; }
|
||||
virtual Float64 GetTailTime() {return (1.0/GetSampleRate())*0.0;} //in SECONDS! gsr * a number = in samples
|
||||
virtual Float64 GetLatency() {return (1.0/GetSampleRate())*0.0;} // in SECONDS! gsr * a number = in samples
|
||||
|
||||
/*! @method Version */
|
||||
virtual ComponentResult Version() { return kBiquadHiLoVersion; }
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
class BiquadHiLoKernel : public AUKernelBase // most of the real work happens here
|
||||
{
|
||||
public:
|
||||
BiquadHiLoKernel(AUEffectBase *inAudioUnit )
|
||||
: AUKernelBase(inAudioUnit)
|
||||
{
|
||||
}
|
||||
|
||||
// *Required* overides for the process method for this effect
|
||||
// processes one channel of interleaved samples
|
||||
virtual void Process( const Float32 *inSourceP,
|
||||
Float32 *inDestP,
|
||||
UInt32 inFramesToProcess,
|
||||
UInt32 inNumChannels,
|
||||
bool &ioSilence);
|
||||
|
||||
virtual void Reset();
|
||||
|
||||
private:
|
||||
|
||||
enum {
|
||||
hilp_freq, hilp_temp,
|
||||
hilp_a0, hilp_a1, hilp_b1, hilp_b2,
|
||||
hilp_c0, hilp_c1, hilp_d1, hilp_d2,
|
||||
hilp_e0, hilp_e1, hilp_f1, hilp_f2,
|
||||
hilp_aL1, hilp_aL2, hilp_aR1, hilp_aR2,
|
||||
hilp_cL1, hilp_cL2, hilp_cR1, hilp_cR2,
|
||||
hilp_eL1, hilp_eL2, hilp_eR1, hilp_eR2,
|
||||
hilp_total
|
||||
};
|
||||
double highpass[hilp_total];
|
||||
double lowpass[hilp_total];
|
||||
|
||||
uint32_t fpd;
|
||||
};
|
||||
};
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
#endif
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* File: ConsoleXSubOut.r
|
||||
* File: BiquadHiLo.r
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 3/8/24
|
||||
* Created: 4/19/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
|
|
@ -41,21 +41,21 @@
|
|||
*/
|
||||
#include <AudioUnit/AudioUnit.r>
|
||||
|
||||
#include "ConsoleXSubOutVersion.h"
|
||||
#include "BiquadHiLoVersion.h"
|
||||
|
||||
// Note that resource IDs must be spaced 2 apart for the 'STR ' name and description
|
||||
#define kAudioUnitResID_ConsoleXSubOut 1000
|
||||
#define kAudioUnitResID_BiquadHiLo 1000
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ConsoleXSubOut~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BiquadHiLo~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
#define RES_ID kAudioUnitResID_ConsoleXSubOut
|
||||
#define RES_ID kAudioUnitResID_BiquadHiLo
|
||||
#define COMP_TYPE kAudioUnitType_Effect
|
||||
#define COMP_SUBTYPE ConsoleXSubOut_COMP_SUBTYPE
|
||||
#define COMP_MANUF ConsoleXSubOut_COMP_MANF
|
||||
#define COMP_SUBTYPE BiquadHiLo_COMP_SUBTYPE
|
||||
#define COMP_MANUF BiquadHiLo_COMP_MANF
|
||||
|
||||
#define VERSION kConsoleXSubOutVersion
|
||||
#define NAME "Airwindows: ConsoleXSubOut"
|
||||
#define DESCRIPTION "ConsoleXSubOut AU"
|
||||
#define ENTRY_POINT "ConsoleXSubOutEntry"
|
||||
#define VERSION kBiquadHiLoVersion
|
||||
#define NAME "Airwindows: BiquadHiLo"
|
||||
#define DESCRIPTION "BiquadHiLo AU"
|
||||
#define ENTRY_POINT "BiquadHiLoEntry"
|
||||
|
||||
#include "AUResources.r"
|
||||
1358
plugins/MacAU/BiquadHiLo/BiquadHiLo.xcodeproj/christopherjohnson.mode1v3
Executable file
1358
plugins/MacAU/BiquadHiLo/BiquadHiLo.xcodeproj/christopherjohnson.mode1v3
Executable file
File diff suppressed because it is too large
Load diff
159
plugins/MacAU/BiquadHiLo/BiquadHiLo.xcodeproj/christopherjohnson.pbxuser
Executable file
159
plugins/MacAU/BiquadHiLo/BiquadHiLo.xcodeproj/christopherjohnson.pbxuser
Executable file
|
|
@ -0,0 +1,159 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
089C1669FE841209C02AAC07 /* Project object */ = {
|
||||
activeBuildConfigurationName = Release;
|
||||
activeTarget = 8D01CCC60486CAD60068D4B7 /* BiquadHiLo */;
|
||||
codeSenseManager = 8BD3CCB9148830B20062E48C /* Code sense */;
|
||||
perUserDictionary = {
|
||||
PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
20,
|
||||
292,
|
||||
20,
|
||||
48,
|
||||
43,
|
||||
43,
|
||||
20,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXFileDataSource_FiletypeID,
|
||||
PBXFileDataSource_Filename_ColumnID,
|
||||
PBXFileDataSource_Built_ColumnID,
|
||||
PBXFileDataSource_ObjectSize_ColumnID,
|
||||
PBXFileDataSource_Errors_ColumnID,
|
||||
PBXFileDataSource_Warnings_ColumnID,
|
||||
PBXFileDataSource_Target_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
20,
|
||||
252,
|
||||
60,
|
||||
20,
|
||||
48,
|
||||
43,
|
||||
43,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXFileDataSource_FiletypeID,
|
||||
PBXFileDataSource_Filename_ColumnID,
|
||||
PBXTargetDataSource_PrimaryAttribute,
|
||||
PBXFileDataSource_Built_ColumnID,
|
||||
PBXFileDataSource_ObjectSize_ColumnID,
|
||||
PBXFileDataSource_Errors_ColumnID,
|
||||
PBXFileDataSource_Warnings_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXPerProjectTemplateStateSaveDate = 736195203;
|
||||
PBXWorkspaceStateSaveDate = 736195203;
|
||||
};
|
||||
perUserProjectItems = {
|
||||
8B3034AC2BDFB01C005401EF /* PBXTextBookmark */ = 8B3034AC2BDFB01C005401EF /* PBXTextBookmark */;
|
||||
8B7A9EAC2BDBAC7800A163D9 /* PBXTextBookmark */ = 8B7A9EAC2BDBAC7800A163D9 /* PBXTextBookmark */;
|
||||
8B7A9EEC2BDBB10400A163D9 /* PBXTextBookmark */ = 8B7A9EEC2BDBB10400A163D9 /* PBXTextBookmark */;
|
||||
8BCB29E42BE174DD001B6E66 /* PBXTextBookmark */ = 8BCB29E42BE174DD001B6E66 /* PBXTextBookmark */;
|
||||
8BFC7C922BD312DD0022A792 /* PlistBookmark */ = 8BFC7C922BD312DD0022A792 /* PlistBookmark */;
|
||||
};
|
||||
sourceControlManager = 8BD3CCB8148830B20062E48C /* Source Control */;
|
||||
userBuildSettings = {
|
||||
};
|
||||
};
|
||||
8B3034AC2BDFB01C005401EF /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* BiquadHiLo.h */;
|
||||
name = "BiquadHiLo.h: 151";
|
||||
rLen = 0;
|
||||
rLoc = 5641;
|
||||
rType = 0;
|
||||
vrLen = 120;
|
||||
vrLoc = 5513;
|
||||
};
|
||||
8B7A9EAC2BDBAC7800A163D9 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A660720730100365D66 /* BiquadHiLo.cpp */;
|
||||
name = "BiquadHiLo.cpp: 114";
|
||||
rLen = 0;
|
||||
rLoc = 5534;
|
||||
rType = 0;
|
||||
vrLen = 382;
|
||||
vrLoc = 10058;
|
||||
};
|
||||
8B7A9EEC2BDBB10400A163D9 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A690720730100365D66 /* BiquadHiLoVersion.h */;
|
||||
name = "BiquadHiLoVersion.h: 54";
|
||||
rLen = 0;
|
||||
rLoc = 2913;
|
||||
rType = 0;
|
||||
vrLen = 184;
|
||||
vrLoc = 2731;
|
||||
};
|
||||
8BA05A660720730100365D66 /* BiquadHiLo.cpp */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1272, 4968}}";
|
||||
sepNavSelRange = "{10598, 2169}";
|
||||
sepNavVisRange = "{10409, 2622}";
|
||||
sepNavWindowFrame = "{{453, 59}, {967, 819}}";
|
||||
};
|
||||
};
|
||||
8BA05A690720730100365D66 /* BiquadHiLoVersion.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1308, 1062}}";
|
||||
sepNavSelRange = "{2913, 0}";
|
||||
sepNavVisRange = "{1070, 1906}";
|
||||
sepNavWindowFrame = "{{629, 50}, {1355, 828}}";
|
||||
};
|
||||
};
|
||||
8BC6025B073B072D006C4272 /* BiquadHiLo.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {840, 2898}}";
|
||||
sepNavSelRange = "{5641, 0}";
|
||||
sepNavVisRange = "{5516, 117}";
|
||||
sepNavWindowFrame = "{{648, 43}, {1029, 835}}";
|
||||
};
|
||||
};
|
||||
8BCB29E42BE174DD001B6E66 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* BiquadHiLo.h */;
|
||||
name = "BiquadHiLo.h: 151";
|
||||
rLen = 0;
|
||||
rLoc = 5641;
|
||||
rType = 0;
|
||||
vrLen = 117;
|
||||
vrLoc = 5516;
|
||||
};
|
||||
8BD3CCB8148830B20062E48C /* Source Control */ = {
|
||||
isa = PBXSourceControlManager;
|
||||
fallbackIsa = XCSourceControlManager;
|
||||
isSCMEnabled = 0;
|
||||
scmConfiguration = {
|
||||
repositoryNamesForRoots = {
|
||||
"" = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
8BD3CCB9148830B20062E48C /* Code sense */ = {
|
||||
isa = PBXCodeSenseManager;
|
||||
indexTemplatePath = "";
|
||||
};
|
||||
8BFC7C922BD312DD0022A792 /* PlistBookmark */ = {
|
||||
isa = PlistBookmark;
|
||||
fRef = 8D01CCD10486CAD60068D4B7 /* Info.plist */;
|
||||
fallbackIsa = PBXBookmark;
|
||||
isK = 0;
|
||||
kPath = (
|
||||
CFBundleName,
|
||||
);
|
||||
name = /Users/christopherjohnson/Desktop/BiquadHiLo/Info.plist;
|
||||
rLen = 0;
|
||||
rLoc = 9223372036854775808;
|
||||
};
|
||||
8D01CCC60486CAD60068D4B7 /* BiquadHiLo */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
}
|
||||
1509
plugins/MacAU/BiquadHiLo/BiquadHiLo.xcodeproj/christopherjohnson.perspectivev3
Executable file
1509
plugins/MacAU/BiquadHiLo/BiquadHiLo.xcodeproj/christopherjohnson.perspectivev3
Executable file
File diff suppressed because it is too large
Load diff
490
plugins/MacAU/BiquadHiLo/BiquadHiLo.xcodeproj/project.pbxproj
Executable file
490
plugins/MacAU/BiquadHiLo/BiquadHiLo.xcodeproj/project.pbxproj
Executable file
|
|
@ -0,0 +1,490 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 45;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
3EEA126E089847F5002C6BFC /* CAVectorUnit.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3EEA126B089847F5002C6BFC /* CAVectorUnit.cpp */; };
|
||||
3EEA126F089847F5002C6BFC /* CAVectorUnit.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EEA126C089847F5002C6BFC /* CAVectorUnit.h */; };
|
||||
3EEA1270089847F5002C6BFC /* CAVectorUnitTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EEA126D089847F5002C6BFC /* CAVectorUnitTypes.h */; };
|
||||
8B4119B70749654200361ABE /* BiquadHiLo.r in Rez */ = {isa = PBXBuildFile; fileRef = 8BA05A680720730100365D66 /* BiquadHiLo.r */; };
|
||||
8BA05A6B0720730100365D66 /* BiquadHiLo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A660720730100365D66 /* BiquadHiLo.cpp */; };
|
||||
8BA05A6E0720730100365D66 /* BiquadHiLoVersion.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A690720730100365D66 /* BiquadHiLoVersion.h */; };
|
||||
8BA05AAE072073D300365D66 /* AUBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A7F072073D200365D66 /* AUBase.cpp */; };
|
||||
8BA05AAF072073D300365D66 /* AUBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A80072073D200365D66 /* AUBase.h */; };
|
||||
8BA05AB0072073D300365D66 /* AUDispatch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A81072073D200365D66 /* AUDispatch.cpp */; };
|
||||
8BA05AB1072073D300365D66 /* AUDispatch.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A82072073D200365D66 /* AUDispatch.h */; };
|
||||
8BA05AB2072073D300365D66 /* AUInputElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A83072073D200365D66 /* AUInputElement.cpp */; };
|
||||
8BA05AB3072073D300365D66 /* AUInputElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A84072073D200365D66 /* AUInputElement.h */; };
|
||||
8BA05AB4072073D300365D66 /* AUOutputElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A85072073D200365D66 /* AUOutputElement.cpp */; };
|
||||
8BA05AB5072073D300365D66 /* AUOutputElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A86072073D200365D66 /* AUOutputElement.h */; };
|
||||
8BA05AB7072073D300365D66 /* AUScopeElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A88072073D200365D66 /* AUScopeElement.cpp */; };
|
||||
8BA05AB8072073D300365D66 /* AUScopeElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A89072073D200365D66 /* AUScopeElement.h */; };
|
||||
8BA05AB9072073D300365D66 /* ComponentBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A8A072073D200365D66 /* ComponentBase.cpp */; };
|
||||
8BA05ABA072073D300365D66 /* ComponentBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A8B072073D200365D66 /* ComponentBase.h */; };
|
||||
8BA05AC6072073D300365D66 /* AUEffectBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A9A072073D200365D66 /* AUEffectBase.cpp */; };
|
||||
8BA05AC7072073D300365D66 /* AUEffectBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A9B072073D200365D66 /* AUEffectBase.h */; };
|
||||
8BA05AD2072073D300365D66 /* AUBuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AA7072073D200365D66 /* AUBuffer.cpp */; };
|
||||
8BA05AD3072073D300365D66 /* AUBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AA8072073D200365D66 /* AUBuffer.h */; };
|
||||
8BA05AD4072073D300365D66 /* AUDebugDispatcher.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AA9072073D200365D66 /* AUDebugDispatcher.cpp */; };
|
||||
8BA05AD5072073D300365D66 /* AUDebugDispatcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAA072073D200365D66 /* AUDebugDispatcher.h */; };
|
||||
8BA05AD6072073D300365D66 /* AUInputFormatConverter.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAB072073D200365D66 /* AUInputFormatConverter.h */; };
|
||||
8BA05AD7072073D300365D66 /* AUSilentTimeout.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAC072073D200365D66 /* AUSilentTimeout.h */; };
|
||||
8BA05AD8072073D300365D66 /* AUTimestampGenerator.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAD072073D200365D66 /* AUTimestampGenerator.h */; };
|
||||
8BA05AE50720742100365D66 /* CAAudioChannelLayout.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05ADF0720742100365D66 /* CAAudioChannelLayout.cpp */; };
|
||||
8BA05AE60720742100365D66 /* CAAudioChannelLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AE00720742100365D66 /* CAAudioChannelLayout.h */; };
|
||||
8BA05AE70720742100365D66 /* CAMutex.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AE10720742100365D66 /* CAMutex.cpp */; };
|
||||
8BA05AE80720742100365D66 /* CAMutex.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AE20720742100365D66 /* CAMutex.h */; };
|
||||
8BA05AE90720742100365D66 /* CAStreamBasicDescription.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AE30720742100365D66 /* CAStreamBasicDescription.cpp */; };
|
||||
8BA05AEA0720742100365D66 /* CAStreamBasicDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AE40720742100365D66 /* CAStreamBasicDescription.h */; };
|
||||
8BA05AFC072074E100365D66 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BA05AF9072074E100365D66 /* AudioToolbox.framework */; };
|
||||
8BA05AFD072074E100365D66 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BA05AFA072074E100365D66 /* AudioUnit.framework */; };
|
||||
8BA05B02072074F900365D66 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BA05B01072074F900365D66 /* CoreServices.framework */; };
|
||||
8BA05B070720754400365D66 /* CAAUParameter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05B050720754400365D66 /* CAAUParameter.cpp */; };
|
||||
8BA05B080720754400365D66 /* CAAUParameter.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05B060720754400365D66 /* CAAUParameter.h */; };
|
||||
8BC6025C073B072D006C4272 /* BiquadHiLo.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BC6025B073B072D006C4272 /* BiquadHiLo.h */; };
|
||||
8D01CCCA0486CAD60068D4B7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; };
|
||||
F7C347F00ECE5AF8008ADFB6 /* AUBaseHelper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F7C347EE0ECE5AF8008ADFB6 /* AUBaseHelper.cpp */; };
|
||||
F7C347F10ECE5AF8008ADFB6 /* AUBaseHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = F7C347EF0ECE5AF8008ADFB6 /* AUBaseHelper.h */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
3EEA126B089847F5002C6BFC /* CAVectorUnit.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAVectorUnit.cpp; sourceTree = "<group>"; };
|
||||
3EEA126C089847F5002C6BFC /* CAVectorUnit.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAVectorUnit.h; sourceTree = "<group>"; };
|
||||
3EEA126D089847F5002C6BFC /* CAVectorUnitTypes.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAVectorUnitTypes.h; sourceTree = "<group>"; };
|
||||
8B5C7FBF076FB2C200A15F61 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = "<absolute>"; };
|
||||
8BA05A660720730100365D66 /* BiquadHiLo.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = BiquadHiLo.cpp; sourceTree = "<group>"; };
|
||||
8BA05A670720730100365D66 /* BiquadHiLo.exp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.exports; path = BiquadHiLo.exp; sourceTree = "<group>"; };
|
||||
8BA05A680720730100365D66 /* BiquadHiLo.r */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.rez; path = BiquadHiLo.r; sourceTree = "<group>"; };
|
||||
8BA05A690720730100365D66 /* BiquadHiLoVersion.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = BiquadHiLoVersion.h; sourceTree = "<group>"; };
|
||||
8BA05A7F072073D200365D66 /* AUBase.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUBase.cpp; sourceTree = "<group>"; };
|
||||
8BA05A80072073D200365D66 /* AUBase.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUBase.h; sourceTree = "<group>"; };
|
||||
8BA05A81072073D200365D66 /* AUDispatch.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUDispatch.cpp; sourceTree = "<group>"; };
|
||||
8BA05A82072073D200365D66 /* AUDispatch.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUDispatch.h; sourceTree = "<group>"; };
|
||||
8BA05A83072073D200365D66 /* AUInputElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUInputElement.cpp; sourceTree = "<group>"; };
|
||||
8BA05A84072073D200365D66 /* AUInputElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUInputElement.h; sourceTree = "<group>"; };
|
||||
8BA05A85072073D200365D66 /* AUOutputElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUOutputElement.cpp; sourceTree = "<group>"; };
|
||||
8BA05A86072073D200365D66 /* AUOutputElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUOutputElement.h; sourceTree = "<group>"; };
|
||||
8BA05A87072073D200365D66 /* AUResources.r */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.rez; path = AUResources.r; sourceTree = "<group>"; };
|
||||
8BA05A88072073D200365D66 /* AUScopeElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUScopeElement.cpp; sourceTree = "<group>"; };
|
||||
8BA05A89072073D200365D66 /* AUScopeElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUScopeElement.h; sourceTree = "<group>"; };
|
||||
8BA05A8A072073D200365D66 /* ComponentBase.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = ComponentBase.cpp; sourceTree = "<group>"; };
|
||||
8BA05A8B072073D200365D66 /* ComponentBase.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ComponentBase.h; sourceTree = "<group>"; };
|
||||
8BA05A9A072073D200365D66 /* AUEffectBase.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUEffectBase.cpp; sourceTree = "<group>"; };
|
||||
8BA05A9B072073D200365D66 /* AUEffectBase.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUEffectBase.h; sourceTree = "<group>"; };
|
||||
8BA05AA7072073D200365D66 /* AUBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUBuffer.cpp; sourceTree = "<group>"; };
|
||||
8BA05AA8072073D200365D66 /* AUBuffer.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUBuffer.h; sourceTree = "<group>"; };
|
||||
8BA05AA9072073D200365D66 /* AUDebugDispatcher.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUDebugDispatcher.cpp; sourceTree = "<group>"; };
|
||||
8BA05AAA072073D200365D66 /* AUDebugDispatcher.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUDebugDispatcher.h; sourceTree = "<group>"; };
|
||||
8BA05AAB072073D200365D66 /* AUInputFormatConverter.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUInputFormatConverter.h; sourceTree = "<group>"; };
|
||||
8BA05AAC072073D200365D66 /* AUSilentTimeout.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUSilentTimeout.h; sourceTree = "<group>"; };
|
||||
8BA05AAD072073D200365D66 /* AUTimestampGenerator.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUTimestampGenerator.h; sourceTree = "<group>"; };
|
||||
8BA05ADF0720742100365D66 /* CAAudioChannelLayout.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAAudioChannelLayout.cpp; sourceTree = "<group>"; };
|
||||
8BA05AE00720742100365D66 /* CAAudioChannelLayout.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAAudioChannelLayout.h; sourceTree = "<group>"; };
|
||||
8BA05AE10720742100365D66 /* CAMutex.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAMutex.cpp; sourceTree = "<group>"; };
|
||||
8BA05AE20720742100365D66 /* CAMutex.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAMutex.h; sourceTree = "<group>"; };
|
||||
8BA05AE30720742100365D66 /* CAStreamBasicDescription.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAStreamBasicDescription.cpp; sourceTree = "<group>"; };
|
||||
8BA05AE40720742100365D66 /* CAStreamBasicDescription.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAStreamBasicDescription.h; sourceTree = "<group>"; };
|
||||
8BA05AF9072074E100365D66 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = "<absolute>"; };
|
||||
8BA05AFA072074E100365D66 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioUnit.framework; path = /System/Library/Frameworks/AudioUnit.framework; sourceTree = "<absolute>"; };
|
||||
8BA05B01072074F900365D66 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = "<absolute>"; };
|
||||
8BA05B050720754400365D66 /* CAAUParameter.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAAUParameter.cpp; sourceTree = "<group>"; };
|
||||
8BA05B060720754400365D66 /* CAAUParameter.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAAUParameter.h; sourceTree = "<group>"; };
|
||||
8BC6025B073B072D006C4272 /* BiquadHiLo.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = BiquadHiLo.h; sourceTree = "<group>"; };
|
||||
8D01CCD10486CAD60068D4B7 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
|
||||
8D01CCD20486CAD60068D4B7 /* BiquadHiLo.component */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BiquadHiLo.component; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
F7C347EE0ECE5AF8008ADFB6 /* AUBaseHelper.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AUBaseHelper.cpp; path = Extras/CoreAudio/AudioUnits/AUPublic/Utility/AUBaseHelper.cpp; sourceTree = SYSTEM_DEVELOPER_DIR; };
|
||||
F7C347EF0ECE5AF8008ADFB6 /* AUBaseHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AUBaseHelper.h; path = Extras/CoreAudio/AudioUnits/AUPublic/Utility/AUBaseHelper.h; sourceTree = SYSTEM_DEVELOPER_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
8D01CCCD0486CAD60068D4B7 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8BA05AFC072074E100365D66 /* AudioToolbox.framework in Frameworks */,
|
||||
8BA05AFD072074E100365D66 /* AudioUnit.framework in Frameworks */,
|
||||
8BA05B02072074F900365D66 /* CoreServices.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
089C166AFE841209C02AAC07 /* BiquadHiLo */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
08FB77ADFE841716C02AAC07 /* Source */,
|
||||
089C167CFE841241C02AAC07 /* Resources */,
|
||||
089C1671FE841209C02AAC07 /* External Frameworks and Libraries */,
|
||||
19C28FB4FE9D528D11CA2CBB /* Products */,
|
||||
);
|
||||
name = BiquadHiLo;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
089C1671FE841209C02AAC07 /* External Frameworks and Libraries */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8B5C7FBF076FB2C200A15F61 /* CoreAudio.framework */,
|
||||
8BA05B01072074F900365D66 /* CoreServices.framework */,
|
||||
8BA05AF9072074E100365D66 /* AudioToolbox.framework */,
|
||||
8BA05AFA072074E100365D66 /* AudioUnit.framework */,
|
||||
);
|
||||
name = "External Frameworks and Libraries";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
089C167CFE841241C02AAC07 /* Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8D01CCD10486CAD60068D4B7 /* Info.plist */,
|
||||
089C167DFE841241C02AAC07 /* InfoPlist.strings */,
|
||||
);
|
||||
name = Resources;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
08FB77ADFE841716C02AAC07 /* Source */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A56072072A900365D66 /* AU Source */,
|
||||
8BA05AEB0720742700365D66 /* PublicUtility */,
|
||||
8BA05A7D072073D200365D66 /* AUPublic */,
|
||||
);
|
||||
name = Source;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
19C28FB4FE9D528D11CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8D01CCD20486CAD60068D4B7 /* BiquadHiLo.component */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05A56072072A900365D66 /* AU Source */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BC6025B073B072D006C4272 /* BiquadHiLo.h */,
|
||||
8BA05A660720730100365D66 /* BiquadHiLo.cpp */,
|
||||
8BA05A670720730100365D66 /* BiquadHiLo.exp */,
|
||||
8BA05A680720730100365D66 /* BiquadHiLo.r */,
|
||||
8BA05A690720730100365D66 /* BiquadHiLoVersion.h */,
|
||||
);
|
||||
name = "AU Source";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05A7D072073D200365D66 /* AUPublic */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A7E072073D200365D66 /* AUBase */,
|
||||
8BA05A99072073D200365D66 /* OtherBases */,
|
||||
8BA05AA6072073D200365D66 /* Utility */,
|
||||
);
|
||||
name = AUPublic;
|
||||
path = Extras/CoreAudio/AudioUnits/AUPublic;
|
||||
sourceTree = SYSTEM_DEVELOPER_DIR;
|
||||
};
|
||||
8BA05A7E072073D200365D66 /* AUBase */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A7F072073D200365D66 /* AUBase.cpp */,
|
||||
8BA05A80072073D200365D66 /* AUBase.h */,
|
||||
8BA05A81072073D200365D66 /* AUDispatch.cpp */,
|
||||
8BA05A82072073D200365D66 /* AUDispatch.h */,
|
||||
8BA05A83072073D200365D66 /* AUInputElement.cpp */,
|
||||
8BA05A84072073D200365D66 /* AUInputElement.h */,
|
||||
8BA05A85072073D200365D66 /* AUOutputElement.cpp */,
|
||||
8BA05A86072073D200365D66 /* AUOutputElement.h */,
|
||||
8BA05A87072073D200365D66 /* AUResources.r */,
|
||||
8BA05A88072073D200365D66 /* AUScopeElement.cpp */,
|
||||
8BA05A89072073D200365D66 /* AUScopeElement.h */,
|
||||
8BA05A8A072073D200365D66 /* ComponentBase.cpp */,
|
||||
8BA05A8B072073D200365D66 /* ComponentBase.h */,
|
||||
);
|
||||
path = AUBase;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05A99072073D200365D66 /* OtherBases */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A9A072073D200365D66 /* AUEffectBase.cpp */,
|
||||
8BA05A9B072073D200365D66 /* AUEffectBase.h */,
|
||||
);
|
||||
path = OtherBases;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05AA6072073D200365D66 /* Utility */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F7C347EE0ECE5AF8008ADFB6 /* AUBaseHelper.cpp */,
|
||||
F7C347EF0ECE5AF8008ADFB6 /* AUBaseHelper.h */,
|
||||
8BA05AA7072073D200365D66 /* AUBuffer.cpp */,
|
||||
8BA05AA8072073D200365D66 /* AUBuffer.h */,
|
||||
8BA05AA9072073D200365D66 /* AUDebugDispatcher.cpp */,
|
||||
8BA05AAA072073D200365D66 /* AUDebugDispatcher.h */,
|
||||
8BA05AAB072073D200365D66 /* AUInputFormatConverter.h */,
|
||||
8BA05AAC072073D200365D66 /* AUSilentTimeout.h */,
|
||||
8BA05AAD072073D200365D66 /* AUTimestampGenerator.h */,
|
||||
);
|
||||
path = Utility;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05AEB0720742700365D66 /* PublicUtility */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05B050720754400365D66 /* CAAUParameter.cpp */,
|
||||
8BA05B060720754400365D66 /* CAAUParameter.h */,
|
||||
8BA05ADF0720742100365D66 /* CAAudioChannelLayout.cpp */,
|
||||
8BA05AE00720742100365D66 /* CAAudioChannelLayout.h */,
|
||||
8BA05AE10720742100365D66 /* CAMutex.cpp */,
|
||||
8BA05AE20720742100365D66 /* CAMutex.h */,
|
||||
8BA05AE30720742100365D66 /* CAStreamBasicDescription.cpp */,
|
||||
8BA05AE40720742100365D66 /* CAStreamBasicDescription.h */,
|
||||
3EEA126D089847F5002C6BFC /* CAVectorUnitTypes.h */,
|
||||
3EEA126B089847F5002C6BFC /* CAVectorUnit.cpp */,
|
||||
3EEA126C089847F5002C6BFC /* CAVectorUnit.h */,
|
||||
);
|
||||
name = PublicUtility;
|
||||
path = Extras/CoreAudio/PublicUtility;
|
||||
sourceTree = SYSTEM_DEVELOPER_DIR;
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXHeadersBuildPhase section */
|
||||
8D01CCC70486CAD60068D4B7 /* Headers */ = {
|
||||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8BA05A6E0720730100365D66 /* BiquadHiLoVersion.h in Headers */,
|
||||
8BA05AAF072073D300365D66 /* AUBase.h in Headers */,
|
||||
8BA05AB1072073D300365D66 /* AUDispatch.h in Headers */,
|
||||
8BA05AB3072073D300365D66 /* AUInputElement.h in Headers */,
|
||||
8BA05AB5072073D300365D66 /* AUOutputElement.h in Headers */,
|
||||
8BA05AB8072073D300365D66 /* AUScopeElement.h in Headers */,
|
||||
8BA05ABA072073D300365D66 /* ComponentBase.h in Headers */,
|
||||
8BA05AC7072073D300365D66 /* AUEffectBase.h in Headers */,
|
||||
8BA05AD3072073D300365D66 /* AUBuffer.h in Headers */,
|
||||
8BA05AD5072073D300365D66 /* AUDebugDispatcher.h in Headers */,
|
||||
8BA05AD6072073D300365D66 /* AUInputFormatConverter.h in Headers */,
|
||||
8BA05AD7072073D300365D66 /* AUSilentTimeout.h in Headers */,
|
||||
8BA05AD8072073D300365D66 /* AUTimestampGenerator.h in Headers */,
|
||||
8BA05AE60720742100365D66 /* CAAudioChannelLayout.h in Headers */,
|
||||
8BA05AE80720742100365D66 /* CAMutex.h in Headers */,
|
||||
8BA05AEA0720742100365D66 /* CAStreamBasicDescription.h in Headers */,
|
||||
8BA05B080720754400365D66 /* CAAUParameter.h in Headers */,
|
||||
8BC6025C073B072D006C4272 /* BiquadHiLo.h in Headers */,
|
||||
3EEA126F089847F5002C6BFC /* CAVectorUnit.h in Headers */,
|
||||
3EEA1270089847F5002C6BFC /* CAVectorUnitTypes.h in Headers */,
|
||||
F7C347F10ECE5AF8008ADFB6 /* AUBaseHelper.h in Headers */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXHeadersBuildPhase section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8D01CCC60486CAD60068D4B7 /* BiquadHiLo */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 3E4BA243089833B7007656EC /* Build configuration list for PBXNativeTarget "BiquadHiLo" */;
|
||||
buildPhases = (
|
||||
8D01CCC70486CAD60068D4B7 /* Headers */,
|
||||
8D01CCC90486CAD60068D4B7 /* Resources */,
|
||||
8D01CCCB0486CAD60068D4B7 /* Sources */,
|
||||
8D01CCCD0486CAD60068D4B7 /* Frameworks */,
|
||||
8D01CCCF0486CAD60068D4B7 /* Rez */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = BiquadHiLo;
|
||||
productInstallPath = "$(HOME)/Library/Bundles";
|
||||
productName = BiquadHiLo;
|
||||
productReference = 8D01CCD20486CAD60068D4B7 /* BiquadHiLo.component */;
|
||||
productType = "com.apple.product-type.bundle";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
089C1669FE841209C02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 3E4BA247089833B7007656EC /* Build configuration list for PBXProject "BiquadHiLo" */;
|
||||
compatibilityVersion = "Xcode 3.1";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 1;
|
||||
knownRegions = (
|
||||
English,
|
||||
Japanese,
|
||||
French,
|
||||
German,
|
||||
);
|
||||
mainGroup = 089C166AFE841209C02AAC07 /* BiquadHiLo */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
8D01CCC60486CAD60068D4B7 /* BiquadHiLo */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
8D01CCC90486CAD60068D4B7 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8D01CCCA0486CAD60068D4B7 /* InfoPlist.strings in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXRezBuildPhase section */
|
||||
8D01CCCF0486CAD60068D4B7 /* Rez */ = {
|
||||
isa = PBXRezBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8B4119B70749654200361ABE /* BiquadHiLo.r in Rez */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXRezBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
8D01CCCB0486CAD60068D4B7 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8BA05A6B0720730100365D66 /* BiquadHiLo.cpp in Sources */,
|
||||
8BA05AAE072073D300365D66 /* AUBase.cpp in Sources */,
|
||||
8BA05AB0072073D300365D66 /* AUDispatch.cpp in Sources */,
|
||||
8BA05AB2072073D300365D66 /* AUInputElement.cpp in Sources */,
|
||||
8BA05AB4072073D300365D66 /* AUOutputElement.cpp in Sources */,
|
||||
8BA05AB7072073D300365D66 /* AUScopeElement.cpp in Sources */,
|
||||
8BA05AB9072073D300365D66 /* ComponentBase.cpp in Sources */,
|
||||
8BA05AC6072073D300365D66 /* AUEffectBase.cpp in Sources */,
|
||||
8BA05AD2072073D300365D66 /* AUBuffer.cpp in Sources */,
|
||||
8BA05AD4072073D300365D66 /* AUDebugDispatcher.cpp in Sources */,
|
||||
8BA05AE50720742100365D66 /* CAAudioChannelLayout.cpp in Sources */,
|
||||
8BA05AE70720742100365D66 /* CAMutex.cpp in Sources */,
|
||||
8BA05AE90720742100365D66 /* CAStreamBasicDescription.cpp in Sources */,
|
||||
8BA05B070720754400365D66 /* CAAUParameter.cpp in Sources */,
|
||||
3EEA126E089847F5002C6BFC /* CAVectorUnit.cpp in Sources */,
|
||||
F7C347F00ECE5AF8008ADFB6 /* AUBaseHelper.cpp in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
089C167DFE841241C02AAC07 /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
089C167EFE841241C02AAC07 /* English */,
|
||||
);
|
||||
name = InfoPlist.strings;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
3E4BA244089833B7007656EC /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
EXPORTED_SYMBOLS_FILE = BiquadHiLo.exp;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GENERATE_PKGINFO_FILE = YES;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Library/Audio/Plug-Ins/Components/";
|
||||
LIBRARY_STYLE = Bundle;
|
||||
OTHER_LDFLAGS = "-bundle";
|
||||
OTHER_REZFLAGS = "-d ppc_$ppc -d i386_$i386 -d ppc64_$ppc64 -d x86_64_$x86_64 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I \"$(DEVELOPER_DIR)/Examples/CoreAudio/AudioUnits/AUPublic/AUBase\"";
|
||||
PRODUCT_NAME = BiquadHiLo;
|
||||
WRAPPER_EXTENSION = component;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
3E4BA245089833B7007656EC /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = (
|
||||
ppc,
|
||||
i386,
|
||||
x86_64,
|
||||
);
|
||||
EXPORTED_SYMBOLS_FILE = BiquadHiLo.exp;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GENERATE_PKGINFO_FILE = YES;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Library/Audio/Plug-Ins/Components/";
|
||||
LIBRARY_STYLE = Bundle;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
||||
OTHER_LDFLAGS = "-bundle";
|
||||
OTHER_REZFLAGS = "-d ppc_$ppc -d i386_$i386 -d x86_64_$x86_64 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I \"$(DEVELOPER_DIR)/Examples/CoreAudio/AudioUnits/AUPublic/AUBase\"";
|
||||
PRODUCT_NAME = BiquadHiLo;
|
||||
SDKROOT = macosx10.5;
|
||||
STRIP_INSTALLED_PRODUCT = YES;
|
||||
STRIP_STYLE = all;
|
||||
WRAPPER_EXTENSION = component;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
3E4BA248089833B7007656EC /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
SDKROOT = macosx10.6;
|
||||
WARNING_CFLAGS = (
|
||||
"-Wmost",
|
||||
"-Wno-four-char-constants",
|
||||
"-Wno-unknown-pragmas",
|
||||
);
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
3E4BA249089833B7007656EC /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
SDKROOT = macosx10.6;
|
||||
WARNING_CFLAGS = (
|
||||
"-Wmost",
|
||||
"-Wno-four-char-constants",
|
||||
"-Wno-unknown-pragmas",
|
||||
);
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
3E4BA243089833B7007656EC /* Build configuration list for PBXNativeTarget "BiquadHiLo" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
3E4BA244089833B7007656EC /* Debug */,
|
||||
3E4BA245089833B7007656EC /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Debug;
|
||||
};
|
||||
3E4BA247089833B7007656EC /* Build configuration list for PBXProject "BiquadHiLo" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
3E4BA248089833B7007656EC /* Debug */,
|
||||
3E4BA249089833B7007656EC /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Debug;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 089C1669FE841209C02AAC07 /* Project object */;
|
||||
}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* File: ConsoleXSubInVersion.h
|
||||
* File: BiquadHiLoVersion.h
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 3/8/24
|
||||
* Created: 4/19/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
|
|
@ -39,19 +39,19 @@
|
|||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
#ifndef __ConsoleXSubInVersion_h__
|
||||
#define __ConsoleXSubInVersion_h__
|
||||
#ifndef __BiquadHiLoVersion_h__
|
||||
#define __BiquadHiLoVersion_h__
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#define kConsoleXSubInVersion 0xFFFFFFFF
|
||||
#define kBiquadHiLoVersion 0xFFFFFFFF
|
||||
#else
|
||||
#define kConsoleXSubInVersion 0x00010000
|
||||
#define kBiquadHiLoVersion 0x00010000
|
||||
#endif
|
||||
|
||||
//~~~~~~~~~~~~~~ Change!!! ~~~~~~~~~~~~~~~~~~~~~//
|
||||
#define ConsoleXSubIn_COMP_MANF 'Dthr'
|
||||
#define ConsoleXSubIn_COMP_SUBTYPE 'cnxi'
|
||||
#define BiquadHiLo_COMP_MANF 'Dthr'
|
||||
#define BiquadHiLo_COMP_SUBTYPE 'biqh'
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
|
||||
|
||||
#endif
|
||||
BIN
plugins/MacAU/BiquadHiLo/English.lproj/InfoPlist.strings
Executable file
BIN
plugins/MacAU/BiquadHiLo/English.lproj/InfoPlist.strings
Executable file
Binary file not shown.
28
plugins/MacAU/BiquadHiLo/Info.plist
Executable file
28
plugins/MacAU/BiquadHiLo/Info.plist
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.airwindows.audiounit.${PRODUCT_NAME:identifier}</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>${PROJECTNAMEASIDENTIFIER}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>DthX</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>CSResourcesFileMapped</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
296
plugins/MacAU/BiquadStack/BiquadStack.cpp
Executable file
296
plugins/MacAU/BiquadStack/BiquadStack.cpp
Executable file
|
|
@ -0,0 +1,296 @@
|
|||
/*
|
||||
* File: BiquadStack.cpp
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 4/15/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
/*=============================================================================
|
||||
BiquadStack.cpp
|
||||
|
||||
=============================================================================*/
|
||||
#include "BiquadStack.h"
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
COMPONENT_ENTRY(BiquadStack)
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadStack::BiquadStack
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
BiquadStack::BiquadStack(AudioUnit component)
|
||||
: AUEffectBase(component)
|
||||
{
|
||||
CreateElements();
|
||||
Globals()->UseIndexedParameters(kNumberOfParameters);
|
||||
SetParameter(kParam_A, kDefaultValue_ParamA );
|
||||
SetParameter(kParam_B, kDefaultValue_ParamB );
|
||||
SetParameter(kParam_C, kDefaultValue_ParamC );
|
||||
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
mDebugDispatcher = new AUDebugDispatcher (this);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadStack::GetParameterValueStrings
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult BiquadStack::GetParameterValueStrings(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
CFArrayRef * outStrings)
|
||||
{
|
||||
|
||||
return kAudioUnitErr_InvalidProperty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadStack::GetParameterInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult BiquadStack::GetParameterInfo(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
AudioUnitParameterInfo &outParameterInfo )
|
||||
{
|
||||
ComponentResult result = noErr;
|
||||
|
||||
outParameterInfo.flags = kAudioUnitParameterFlag_IsWritable
|
||||
| kAudioUnitParameterFlag_IsReadable;
|
||||
|
||||
if (inScope == kAudioUnitScope_Global) {
|
||||
switch(inParameterID)
|
||||
{
|
||||
case kParam_A:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterAName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamA;
|
||||
break;
|
||||
case kParam_B:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterBName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamB;
|
||||
break;
|
||||
case kParam_C:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterCName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamC;
|
||||
break;
|
||||
default:
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadStack::GetPropertyInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult BiquadStack::GetPropertyInfo (AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
UInt32 & outDataSize,
|
||||
Boolean & outWritable)
|
||||
{
|
||||
return AUEffectBase::GetPropertyInfo (inID, inScope, inElement, outDataSize, outWritable);
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadStack::GetProperty
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult BiquadStack::GetProperty( AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
void * outData )
|
||||
{
|
||||
return AUEffectBase::GetProperty (inID, inScope, inElement, outData);
|
||||
}
|
||||
|
||||
// BiquadStack::Initialize
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult BiquadStack::Initialize()
|
||||
{
|
||||
ComponentResult result = AUEffectBase::Initialize();
|
||||
if (result == noErr)
|
||||
Reset(kAudioUnitScope_Global, 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
#pragma mark ____BiquadStackEffectKernel
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadStack::BiquadStackKernel::Reset()
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
void BiquadStack::BiquadStackKernel::Reset()
|
||||
{
|
||||
for (int x = 0; x < biqs_total; x++) {biqs[x] = 0.0;}
|
||||
fpd = 1.0; while (fpd < 16386) fpd = rand()*UINT32_MAX;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// BiquadStack::BiquadStackKernel::Process
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
void BiquadStack::BiquadStackKernel::Process( const Float32 *inSourceP,
|
||||
Float32 *inDestP,
|
||||
UInt32 inFramesToProcess,
|
||||
UInt32 inNumChannels,
|
||||
bool &ioSilence )
|
||||
{
|
||||
UInt32 nSampleFrames = inFramesToProcess;
|
||||
const Float32 *sourceP = inSourceP;
|
||||
Float32 *destP = inDestP;
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= GetSampleRate();
|
||||
|
||||
biqs[biqs_levelA] = biqs[biqs_levelB];
|
||||
biqs[biqs_aA0] = biqs[biqs_aB0];
|
||||
biqs[biqs_bA1] = biqs[biqs_bB1];
|
||||
biqs[biqs_bA2] = biqs[biqs_bB2];
|
||||
biqs[biqs_cA0] = biqs[biqs_cB0];
|
||||
biqs[biqs_dA1] = biqs[biqs_dB1];
|
||||
biqs[biqs_dA2] = biqs[biqs_dB2];
|
||||
biqs[biqs_eA0] = biqs[biqs_eB0];
|
||||
biqs[biqs_fA1] = biqs[biqs_fB1];
|
||||
biqs[biqs_fA2] = biqs[biqs_fB2];
|
||||
//previous run through the buffer is still in the filter, so we move it
|
||||
//to the A section and now it's the new starting point.
|
||||
|
||||
biqs[biqs_freq] = (((pow(GetParameter( kParam_A ),4)*19980.0)+20.0)/GetSampleRate());
|
||||
biqs[biqs_nonlin] = GetParameter( kParam_B );
|
||||
biqs[biqs_levelB] = (biqs[biqs_nonlin]*2.0)-1.0;
|
||||
if (biqs[biqs_levelB] > 0.0) biqs[biqs_levelB] *= 2.0;
|
||||
biqs[biqs_reso] = ((0.5+(biqs[biqs_nonlin]*0.5)+sqrt(biqs[biqs_freq]))-(1.0-pow(1.0-GetParameter( kParam_C ),2.0)))+0.5+(biqs[biqs_nonlin]*0.5);
|
||||
|
||||
double K = tan(M_PI * biqs[biqs_freq]);
|
||||
double norm = 1.0 / (1.0 + K / (biqs[biqs_reso]*1.93185165) + K * K);
|
||||
biqs[biqs_aB0] = K / (biqs[biqs_reso]*1.93185165) * norm;
|
||||
biqs[biqs_bB1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biqs[biqs_bB2] = (1.0 - K / (biqs[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (biqs[biqs_reso]*0.70710678) + K * K);
|
||||
biqs[biqs_cB0] = K / (biqs[biqs_reso]*0.70710678) * norm;
|
||||
biqs[biqs_dB1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biqs[biqs_dB2] = (1.0 - K / (biqs[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (biqs[biqs_reso]*0.51763809) + K * K);
|
||||
biqs[biqs_eB0] = K / (biqs[biqs_reso]*0.51763809) * norm;
|
||||
biqs[biqs_fB1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biqs[biqs_fB2] = (1.0 - K / (biqs[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
|
||||
if (biqs[biqs_aA0] == 0.0) { // if we have just started, start directly with raw info
|
||||
biqs[biqs_levelA] = biqs[biqs_levelB];
|
||||
biqs[biqs_aA0] = biqs[biqs_aB0];
|
||||
biqs[biqs_bA1] = biqs[biqs_bB1];
|
||||
biqs[biqs_bA2] = biqs[biqs_bB2];
|
||||
biqs[biqs_cA0] = biqs[biqs_cB0];
|
||||
biqs[biqs_dA1] = biqs[biqs_dB1];
|
||||
biqs[biqs_dA2] = biqs[biqs_dB2];
|
||||
biqs[biqs_eA0] = biqs[biqs_eB0];
|
||||
biqs[biqs_fA1] = biqs[biqs_fB1];
|
||||
biqs[biqs_fA2] = biqs[biqs_fB2];
|
||||
}
|
||||
|
||||
while (nSampleFrames-- > 0) {
|
||||
double inputSample = *sourceP;
|
||||
if (fabs(inputSample)<1.18e-23) inputSample = fpd * 1.18e-17;
|
||||
|
||||
double buf = (double)nSampleFrames/inFramesToProcess;
|
||||
biqs[biqs_level] = (biqs[biqs_levelA]*buf)+(biqs[biqs_levelB]*(1.0-buf));
|
||||
biqs[biqs_a0] = (biqs[biqs_aA0]*buf)+(biqs[biqs_aB0]*(1.0-buf));
|
||||
biqs[biqs_b1] = (biqs[biqs_bA1]*buf)+(biqs[biqs_bB1]*(1.0-buf));
|
||||
biqs[biqs_b2] = (biqs[biqs_bA2]*buf)+(biqs[biqs_bB2]*(1.0-buf));
|
||||
biqs[biqs_c0] = (biqs[biqs_cA0]*buf)+(biqs[biqs_cB0]*(1.0-buf));
|
||||
biqs[biqs_d1] = (biqs[biqs_dA1]*buf)+(biqs[biqs_dB1]*(1.0-buf));
|
||||
biqs[biqs_d2] = (biqs[biqs_dA2]*buf)+(biqs[biqs_dB2]*(1.0-buf));
|
||||
biqs[biqs_e0] = (biqs[biqs_eA0]*buf)+(biqs[biqs_eB0]*(1.0-buf));
|
||||
biqs[biqs_f1] = (biqs[biqs_fA1]*buf)+(biqs[biqs_fB1]*(1.0-buf));
|
||||
biqs[biqs_f2] = (biqs[biqs_fA2]*buf)+(biqs[biqs_fB2]*(1.0-buf));
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
biqs[biqs_outL] = inputSample * fabs(biqs[biqs_level]);
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_a0] * (1.0+(biqs[biqs_outL]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outL] * biqs[biqs_dis]) + biqs[biqs_aL1];
|
||||
biqs[biqs_aL1] = biqs[biqs_aL2] - (biqs[biqs_temp]*biqs[biqs_b1]);
|
||||
biqs[biqs_aL2] = (biqs[biqs_outL] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_b2]);
|
||||
biqs[biqs_outL] = biqs[biqs_temp];
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_c0] * (1.0+(biqs[biqs_outL]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outL] * biqs[biqs_dis]) + biqs[biqs_cL1];
|
||||
biqs[biqs_cL1] = biqs[biqs_cL2] - (biqs[biqs_temp]*biqs[biqs_d1]);
|
||||
biqs[biqs_cL2] = (biqs[biqs_outL] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_d2]);
|
||||
biqs[biqs_outL] = biqs[biqs_temp];
|
||||
biqs[biqs_dis] = fabs(biqs[biqs_e0] * (1.0+(biqs[biqs_outL]*biqs[biqs_nonlin])));
|
||||
if (biqs[biqs_dis] > 1.0) biqs[biqs_dis] = 1.0;
|
||||
biqs[biqs_temp] = (biqs[biqs_outL] * biqs[biqs_dis]) + biqs[biqs_eL1];
|
||||
biqs[biqs_eL1] = biqs[biqs_eL2] - (biqs[biqs_temp]*biqs[biqs_f1]);
|
||||
biqs[biqs_eL2] = (biqs[biqs_outL] * -biqs[biqs_dis]) - (biqs[biqs_temp]*biqs[biqs_f2]);
|
||||
biqs[biqs_outL] = biqs[biqs_temp];
|
||||
biqs[biqs_outL] *= biqs[biqs_level];
|
||||
if (biqs[biqs_level] > 1.0) biqs[biqs_outL] *= biqs[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
inputSample += biqs[biqs_outL]; //purely a parallel filter stage here
|
||||
|
||||
//begin 32 bit floating point dither
|
||||
int expon; frexpf((float)inputSample, &expon);
|
||||
fpd ^= fpd << 13; fpd ^= fpd >> 17; fpd ^= fpd << 5;
|
||||
inputSample += ((double(fpd)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit floating point dither
|
||||
|
||||
*destP = inputSample;
|
||||
|
||||
sourceP += inNumChannels; destP += inNumChannels;
|
||||
}
|
||||
}
|
||||
|
||||
1
plugins/MacAU/BiquadStack/BiquadStack.exp
Executable file
1
plugins/MacAU/BiquadStack/BiquadStack.exp
Executable file
|
|
@ -0,0 +1 @@
|
|||
_BiquadStackEntry
|
||||
153
plugins/MacAU/BiquadStack/BiquadStack.h
Executable file
153
plugins/MacAU/BiquadStack/BiquadStack.h
Executable file
|
|
@ -0,0 +1,153 @@
|
|||
/*
|
||||
* File: BiquadStack.h
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 4/15/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
#include "AUEffectBase.h"
|
||||
#include "BiquadStackVersion.h"
|
||||
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
#include "AUDebugDispatcher.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef __BiquadStack_h__
|
||||
#define __BiquadStack_h__
|
||||
|
||||
|
||||
#pragma mark ____BiquadStack Parameters
|
||||
|
||||
// parameters
|
||||
static const float kDefaultValue_ParamA = 0.5;
|
||||
static const float kDefaultValue_ParamB = 0.5;
|
||||
static const float kDefaultValue_ParamC = 0.5;
|
||||
|
||||
static CFStringRef kParameterAName = CFSTR("Freq");
|
||||
static CFStringRef kParameterBName = CFSTR("Level");
|
||||
static CFStringRef kParameterCName = CFSTR("Reso");
|
||||
|
||||
enum {
|
||||
kParam_A =0,
|
||||
kParam_B =1,
|
||||
kParam_C =2,
|
||||
//Add your parameters here...
|
||||
kNumberOfParameters=3
|
||||
};
|
||||
|
||||
#pragma mark ____BiquadStack
|
||||
class BiquadStack : public AUEffectBase
|
||||
{
|
||||
public:
|
||||
BiquadStack(AudioUnit component);
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
virtual ~BiquadStack () { delete mDebugDispatcher; }
|
||||
#endif
|
||||
|
||||
virtual AUKernelBase * NewKernel() { return new BiquadStackKernel(this); }
|
||||
|
||||
virtual ComponentResult GetParameterValueStrings(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
CFArrayRef * outStrings);
|
||||
|
||||
virtual ComponentResult GetParameterInfo(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
AudioUnitParameterInfo &outParameterInfo);
|
||||
|
||||
virtual ComponentResult GetPropertyInfo(AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
UInt32 & outDataSize,
|
||||
Boolean & outWritable );
|
||||
|
||||
virtual ComponentResult GetProperty(AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
void * outData);
|
||||
|
||||
virtual ComponentResult Initialize();
|
||||
virtual bool SupportsTail () { return true; }
|
||||
virtual Float64 GetTailTime() {return (1.0/GetSampleRate())*0.0;} //in SECONDS! gsr * a number = in samples
|
||||
virtual Float64 GetLatency() {return (1.0/GetSampleRate())*0.0;} // in SECONDS! gsr * a number = in samples
|
||||
|
||||
/*! @method Version */
|
||||
virtual ComponentResult Version() { return kBiquadStackVersion; }
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
class BiquadStackKernel : public AUKernelBase // most of the real work happens here
|
||||
{
|
||||
public:
|
||||
BiquadStackKernel(AUEffectBase *inAudioUnit )
|
||||
: AUKernelBase(inAudioUnit)
|
||||
{
|
||||
}
|
||||
|
||||
// *Required* overides for the process method for this effect
|
||||
// processes one channel of interleaved samples
|
||||
virtual void Process( const Float32 *inSourceP,
|
||||
Float32 *inDestP,
|
||||
UInt32 inFramesToProcess,
|
||||
UInt32 inNumChannels,
|
||||
bool &ioSilence);
|
||||
|
||||
virtual void Reset();
|
||||
|
||||
private:
|
||||
|
||||
enum {
|
||||
biqs_freq, biqs_reso, biqs_level, biqs_levelA, biqs_levelB, biqs_nonlin, biqs_temp, biqs_dis,
|
||||
biqs_a0, biqs_aA0, biqs_aB0, biqs_b1, biqs_bA1, biqs_bB1, biqs_b2, biqs_bA2, biqs_bB2,
|
||||
biqs_c0, biqs_cA0, biqs_cB0, biqs_d1, biqs_dA1, biqs_dB1, biqs_d2, biqs_dA2, biqs_dB2,
|
||||
biqs_e0, biqs_eA0, biqs_eB0, biqs_f1, biqs_fA1, biqs_fB1, biqs_f2, biqs_fA2, biqs_fB2,
|
||||
biqs_aL1, biqs_aL2, biqs_aR1, biqs_aR2,
|
||||
biqs_cL1, biqs_cL2, biqs_cR1, biqs_cR2,
|
||||
biqs_eL1, biqs_eL2, biqs_eR1, biqs_eR2,
|
||||
biqs_outL, biqs_outR, biqs_total
|
||||
};
|
||||
double biqs[biqs_total];
|
||||
|
||||
uint32_t fpd;
|
||||
};
|
||||
};
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
#endif
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* File: ConsoleXSubOut.r
|
||||
* File: BiquadStack.r
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 3/8/24
|
||||
* Created: 4/15/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
|
|
@ -41,21 +41,21 @@
|
|||
*/
|
||||
#include <AudioUnit/AudioUnit.r>
|
||||
|
||||
#include "ConsoleXSubOutVersion.h"
|
||||
#include "BiquadStackVersion.h"
|
||||
|
||||
// Note that resource IDs must be spaced 2 apart for the 'STR ' name and description
|
||||
#define kAudioUnitResID_ConsoleXSubOut 1000
|
||||
#define kAudioUnitResID_BiquadStack 1000
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ConsoleXSubOut~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BiquadStack~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
#define RES_ID kAudioUnitResID_ConsoleXSubOut
|
||||
#define RES_ID kAudioUnitResID_BiquadStack
|
||||
#define COMP_TYPE kAudioUnitType_Effect
|
||||
#define COMP_SUBTYPE ConsoleXSubOut_COMP_SUBTYPE
|
||||
#define COMP_MANUF ConsoleXSubOut_COMP_MANF
|
||||
#define COMP_SUBTYPE BiquadStack_COMP_SUBTYPE
|
||||
#define COMP_MANUF BiquadStack_COMP_MANF
|
||||
|
||||
#define VERSION kConsoleXSubOutVersion
|
||||
#define NAME "Airwindows: ConsoleXSubOut"
|
||||
#define DESCRIPTION "ConsoleXSubOut AU"
|
||||
#define ENTRY_POINT "ConsoleXSubOutEntry"
|
||||
#define VERSION kBiquadStackVersion
|
||||
#define NAME "Airwindows: BiquadStack"
|
||||
#define DESCRIPTION "BiquadStack AU"
|
||||
#define ENTRY_POINT "BiquadStackEntry"
|
||||
|
||||
#include "AUResources.r"
|
||||
1358
plugins/MacAU/BiquadStack/BiquadStack.xcodeproj/christopherjohnson.mode1v3
Executable file
1358
plugins/MacAU/BiquadStack/BiquadStack.xcodeproj/christopherjohnson.mode1v3
Executable file
File diff suppressed because it is too large
Load diff
159
plugins/MacAU/BiquadStack/BiquadStack.xcodeproj/christopherjohnson.pbxuser
Executable file
159
plugins/MacAU/BiquadStack/BiquadStack.xcodeproj/christopherjohnson.pbxuser
Executable file
|
|
@ -0,0 +1,159 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
089C1669FE841209C02AAC07 /* Project object */ = {
|
||||
activeBuildConfigurationName = Release;
|
||||
activeTarget = 8D01CCC60486CAD60068D4B7 /* BiquadStack */;
|
||||
codeSenseManager = 8BD3CCB9148830B20062E48C /* Code sense */;
|
||||
perUserDictionary = {
|
||||
PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
20,
|
||||
292,
|
||||
20,
|
||||
48,
|
||||
43,
|
||||
43,
|
||||
20,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXFileDataSource_FiletypeID,
|
||||
PBXFileDataSource_Filename_ColumnID,
|
||||
PBXFileDataSource_Built_ColumnID,
|
||||
PBXFileDataSource_ObjectSize_ColumnID,
|
||||
PBXFileDataSource_Errors_ColumnID,
|
||||
PBXFileDataSource_Warnings_ColumnID,
|
||||
PBXFileDataSource_Target_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
20,
|
||||
252,
|
||||
60,
|
||||
20,
|
||||
48,
|
||||
43,
|
||||
43,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXFileDataSource_FiletypeID,
|
||||
PBXFileDataSource_Filename_ColumnID,
|
||||
PBXTargetDataSource_PrimaryAttribute,
|
||||
PBXFileDataSource_Built_ColumnID,
|
||||
PBXFileDataSource_ObjectSize_ColumnID,
|
||||
PBXFileDataSource_Errors_ColumnID,
|
||||
PBXFileDataSource_Warnings_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXPerProjectTemplateStateSaveDate = 736190270;
|
||||
PBXWorkspaceStateSaveDate = 736190270;
|
||||
};
|
||||
perUserProjectItems = {
|
||||
8B7A9EB92BDBACB100A163D9 /* PBXTextBookmark */ = 8B7A9EB92BDBACB100A163D9 /* PBXTextBookmark */;
|
||||
8B7A9EE72BDBB10100A163D9 /* PBXTextBookmark */ = 8B7A9EE72BDBB10100A163D9 /* PBXTextBookmark */;
|
||||
8B822A842BD814C100D81A37 /* PBXTextBookmark */ = 8B822A842BD814C100D81A37 /* PBXTextBookmark */;
|
||||
8BA4253F2BCEEB20001D5AD4 /* PlistBookmark */ = 8BA4253F2BCEEB20001D5AD4 /* PlistBookmark */;
|
||||
8BCB294B2BE16250001B6E66 /* PBXTextBookmark */ = 8BCB294B2BE16250001B6E66 /* PBXTextBookmark */;
|
||||
};
|
||||
sourceControlManager = 8BD3CCB8148830B20062E48C /* Source Control */;
|
||||
userBuildSettings = {
|
||||
};
|
||||
};
|
||||
8B7A9EB92BDBACB100A163D9 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* BiquadStack.h */;
|
||||
name = "BiquadStack.h: 63";
|
||||
rLen = 0;
|
||||
rLoc = 3138;
|
||||
rType = 0;
|
||||
vrLen = 247;
|
||||
vrLoc = 3;
|
||||
};
|
||||
8B7A9EE72BDBB10100A163D9 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A690720730100365D66 /* BiquadStackVersion.h */;
|
||||
name = "BiquadStackVersion.h: 54";
|
||||
rLen = 0;
|
||||
rLoc = 2920;
|
||||
rType = 0;
|
||||
vrLen = 234;
|
||||
vrLoc = 2741;
|
||||
};
|
||||
8B822A842BD814C100D81A37 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A660720730100365D66 /* BiquadStack.cpp */;
|
||||
name = "BiquadStack.cpp: 283";
|
||||
rLen = 0;
|
||||
rLoc = 13489;
|
||||
rType = 0;
|
||||
vrLen = 0;
|
||||
vrLoc = 0;
|
||||
};
|
||||
8BA05A660720730100365D66 /* BiquadStack.cpp */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1344, 5454}}";
|
||||
sepNavSelRange = "{11235, 2298}";
|
||||
sepNavVisRange = "{10659, 2108}";
|
||||
sepNavWindowFrame = "{{481, 38}, {959, 840}}";
|
||||
};
|
||||
};
|
||||
8BA05A690720730100365D66 /* BiquadStackVersion.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1029, 1242}}";
|
||||
sepNavSelRange = "{2920, 0}";
|
||||
sepNavVisRange = "{2741, 233}";
|
||||
sepNavWindowFrame = "{{85, 50}, {1355, 828}}";
|
||||
};
|
||||
};
|
||||
8BA4253F2BCEEB20001D5AD4 /* PlistBookmark */ = {
|
||||
isa = PlistBookmark;
|
||||
fRef = 8D01CCD10486CAD60068D4B7 /* Info.plist */;
|
||||
fallbackIsa = PBXBookmark;
|
||||
isK = 0;
|
||||
kPath = (
|
||||
CFBundleName,
|
||||
);
|
||||
name = /Users/christopherjohnson/Desktop/BiquadStack/Info.plist;
|
||||
rLen = 0;
|
||||
rLoc = 9223372036854775808;
|
||||
};
|
||||
8BC6025B073B072D006C4272 /* BiquadStack.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1146, 2754}}";
|
||||
sepNavSelRange = "{5261, 573}";
|
||||
sepNavVisRange = "{4718, 1238}";
|
||||
sepNavWindowFrame = "{{784, 57}, {1137, 821}}";
|
||||
};
|
||||
};
|
||||
8BCB294B2BE16250001B6E66 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A690720730100365D66 /* BiquadStackVersion.h */;
|
||||
name = "BiquadStackVersion.h: 54";
|
||||
rLen = 0;
|
||||
rLoc = 2920;
|
||||
rType = 0;
|
||||
vrLen = 233;
|
||||
vrLoc = 2741;
|
||||
};
|
||||
8BD3CCB8148830B20062E48C /* Source Control */ = {
|
||||
isa = PBXSourceControlManager;
|
||||
fallbackIsa = XCSourceControlManager;
|
||||
isSCMEnabled = 0;
|
||||
scmConfiguration = {
|
||||
repositoryNamesForRoots = {
|
||||
"" = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
8BD3CCB9148830B20062E48C /* Code sense */ = {
|
||||
isa = PBXCodeSenseManager;
|
||||
indexTemplatePath = "";
|
||||
};
|
||||
8D01CCC60486CAD60068D4B7 /* BiquadStack */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
}
|
||||
1509
plugins/MacAU/BiquadStack/BiquadStack.xcodeproj/christopherjohnson.perspectivev3
Executable file
1509
plugins/MacAU/BiquadStack/BiquadStack.xcodeproj/christopherjohnson.perspectivev3
Executable file
File diff suppressed because it is too large
Load diff
490
plugins/MacAU/BiquadStack/BiquadStack.xcodeproj/project.pbxproj
Executable file
490
plugins/MacAU/BiquadStack/BiquadStack.xcodeproj/project.pbxproj
Executable file
|
|
@ -0,0 +1,490 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 45;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
3EEA126E089847F5002C6BFC /* CAVectorUnit.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3EEA126B089847F5002C6BFC /* CAVectorUnit.cpp */; };
|
||||
3EEA126F089847F5002C6BFC /* CAVectorUnit.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EEA126C089847F5002C6BFC /* CAVectorUnit.h */; };
|
||||
3EEA1270089847F5002C6BFC /* CAVectorUnitTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EEA126D089847F5002C6BFC /* CAVectorUnitTypes.h */; };
|
||||
8B4119B70749654200361ABE /* BiquadStack.r in Rez */ = {isa = PBXBuildFile; fileRef = 8BA05A680720730100365D66 /* BiquadStack.r */; };
|
||||
8BA05A6B0720730100365D66 /* BiquadStack.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A660720730100365D66 /* BiquadStack.cpp */; };
|
||||
8BA05A6E0720730100365D66 /* BiquadStackVersion.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A690720730100365D66 /* BiquadStackVersion.h */; };
|
||||
8BA05AAE072073D300365D66 /* AUBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A7F072073D200365D66 /* AUBase.cpp */; };
|
||||
8BA05AAF072073D300365D66 /* AUBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A80072073D200365D66 /* AUBase.h */; };
|
||||
8BA05AB0072073D300365D66 /* AUDispatch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A81072073D200365D66 /* AUDispatch.cpp */; };
|
||||
8BA05AB1072073D300365D66 /* AUDispatch.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A82072073D200365D66 /* AUDispatch.h */; };
|
||||
8BA05AB2072073D300365D66 /* AUInputElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A83072073D200365D66 /* AUInputElement.cpp */; };
|
||||
8BA05AB3072073D300365D66 /* AUInputElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A84072073D200365D66 /* AUInputElement.h */; };
|
||||
8BA05AB4072073D300365D66 /* AUOutputElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A85072073D200365D66 /* AUOutputElement.cpp */; };
|
||||
8BA05AB5072073D300365D66 /* AUOutputElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A86072073D200365D66 /* AUOutputElement.h */; };
|
||||
8BA05AB7072073D300365D66 /* AUScopeElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A88072073D200365D66 /* AUScopeElement.cpp */; };
|
||||
8BA05AB8072073D300365D66 /* AUScopeElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A89072073D200365D66 /* AUScopeElement.h */; };
|
||||
8BA05AB9072073D300365D66 /* ComponentBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A8A072073D200365D66 /* ComponentBase.cpp */; };
|
||||
8BA05ABA072073D300365D66 /* ComponentBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A8B072073D200365D66 /* ComponentBase.h */; };
|
||||
8BA05AC6072073D300365D66 /* AUEffectBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A9A072073D200365D66 /* AUEffectBase.cpp */; };
|
||||
8BA05AC7072073D300365D66 /* AUEffectBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A9B072073D200365D66 /* AUEffectBase.h */; };
|
||||
8BA05AD2072073D300365D66 /* AUBuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AA7072073D200365D66 /* AUBuffer.cpp */; };
|
||||
8BA05AD3072073D300365D66 /* AUBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AA8072073D200365D66 /* AUBuffer.h */; };
|
||||
8BA05AD4072073D300365D66 /* AUDebugDispatcher.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AA9072073D200365D66 /* AUDebugDispatcher.cpp */; };
|
||||
8BA05AD5072073D300365D66 /* AUDebugDispatcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAA072073D200365D66 /* AUDebugDispatcher.h */; };
|
||||
8BA05AD6072073D300365D66 /* AUInputFormatConverter.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAB072073D200365D66 /* AUInputFormatConverter.h */; };
|
||||
8BA05AD7072073D300365D66 /* AUSilentTimeout.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAC072073D200365D66 /* AUSilentTimeout.h */; };
|
||||
8BA05AD8072073D300365D66 /* AUTimestampGenerator.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAD072073D200365D66 /* AUTimestampGenerator.h */; };
|
||||
8BA05AE50720742100365D66 /* CAAudioChannelLayout.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05ADF0720742100365D66 /* CAAudioChannelLayout.cpp */; };
|
||||
8BA05AE60720742100365D66 /* CAAudioChannelLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AE00720742100365D66 /* CAAudioChannelLayout.h */; };
|
||||
8BA05AE70720742100365D66 /* CAMutex.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AE10720742100365D66 /* CAMutex.cpp */; };
|
||||
8BA05AE80720742100365D66 /* CAMutex.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AE20720742100365D66 /* CAMutex.h */; };
|
||||
8BA05AE90720742100365D66 /* CAStreamBasicDescription.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AE30720742100365D66 /* CAStreamBasicDescription.cpp */; };
|
||||
8BA05AEA0720742100365D66 /* CAStreamBasicDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AE40720742100365D66 /* CAStreamBasicDescription.h */; };
|
||||
8BA05AFC072074E100365D66 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BA05AF9072074E100365D66 /* AudioToolbox.framework */; };
|
||||
8BA05AFD072074E100365D66 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BA05AFA072074E100365D66 /* AudioUnit.framework */; };
|
||||
8BA05B02072074F900365D66 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BA05B01072074F900365D66 /* CoreServices.framework */; };
|
||||
8BA05B070720754400365D66 /* CAAUParameter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05B050720754400365D66 /* CAAUParameter.cpp */; };
|
||||
8BA05B080720754400365D66 /* CAAUParameter.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05B060720754400365D66 /* CAAUParameter.h */; };
|
||||
8BC6025C073B072D006C4272 /* BiquadStack.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BC6025B073B072D006C4272 /* BiquadStack.h */; };
|
||||
8D01CCCA0486CAD60068D4B7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; };
|
||||
F7C347F00ECE5AF8008ADFB6 /* AUBaseHelper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F7C347EE0ECE5AF8008ADFB6 /* AUBaseHelper.cpp */; };
|
||||
F7C347F10ECE5AF8008ADFB6 /* AUBaseHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = F7C347EF0ECE5AF8008ADFB6 /* AUBaseHelper.h */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
3EEA126B089847F5002C6BFC /* CAVectorUnit.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAVectorUnit.cpp; sourceTree = "<group>"; };
|
||||
3EEA126C089847F5002C6BFC /* CAVectorUnit.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAVectorUnit.h; sourceTree = "<group>"; };
|
||||
3EEA126D089847F5002C6BFC /* CAVectorUnitTypes.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAVectorUnitTypes.h; sourceTree = "<group>"; };
|
||||
8B5C7FBF076FB2C200A15F61 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = "<absolute>"; };
|
||||
8BA05A660720730100365D66 /* BiquadStack.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = BiquadStack.cpp; sourceTree = "<group>"; };
|
||||
8BA05A670720730100365D66 /* BiquadStack.exp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.exports; path = BiquadStack.exp; sourceTree = "<group>"; };
|
||||
8BA05A680720730100365D66 /* BiquadStack.r */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.rez; path = BiquadStack.r; sourceTree = "<group>"; };
|
||||
8BA05A690720730100365D66 /* BiquadStackVersion.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = BiquadStackVersion.h; sourceTree = "<group>"; };
|
||||
8BA05A7F072073D200365D66 /* AUBase.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUBase.cpp; sourceTree = "<group>"; };
|
||||
8BA05A80072073D200365D66 /* AUBase.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUBase.h; sourceTree = "<group>"; };
|
||||
8BA05A81072073D200365D66 /* AUDispatch.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUDispatch.cpp; sourceTree = "<group>"; };
|
||||
8BA05A82072073D200365D66 /* AUDispatch.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUDispatch.h; sourceTree = "<group>"; };
|
||||
8BA05A83072073D200365D66 /* AUInputElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUInputElement.cpp; sourceTree = "<group>"; };
|
||||
8BA05A84072073D200365D66 /* AUInputElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUInputElement.h; sourceTree = "<group>"; };
|
||||
8BA05A85072073D200365D66 /* AUOutputElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUOutputElement.cpp; sourceTree = "<group>"; };
|
||||
8BA05A86072073D200365D66 /* AUOutputElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUOutputElement.h; sourceTree = "<group>"; };
|
||||
8BA05A87072073D200365D66 /* AUResources.r */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.rez; path = AUResources.r; sourceTree = "<group>"; };
|
||||
8BA05A88072073D200365D66 /* AUScopeElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUScopeElement.cpp; sourceTree = "<group>"; };
|
||||
8BA05A89072073D200365D66 /* AUScopeElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUScopeElement.h; sourceTree = "<group>"; };
|
||||
8BA05A8A072073D200365D66 /* ComponentBase.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = ComponentBase.cpp; sourceTree = "<group>"; };
|
||||
8BA05A8B072073D200365D66 /* ComponentBase.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ComponentBase.h; sourceTree = "<group>"; };
|
||||
8BA05A9A072073D200365D66 /* AUEffectBase.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUEffectBase.cpp; sourceTree = "<group>"; };
|
||||
8BA05A9B072073D200365D66 /* AUEffectBase.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUEffectBase.h; sourceTree = "<group>"; };
|
||||
8BA05AA7072073D200365D66 /* AUBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUBuffer.cpp; sourceTree = "<group>"; };
|
||||
8BA05AA8072073D200365D66 /* AUBuffer.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUBuffer.h; sourceTree = "<group>"; };
|
||||
8BA05AA9072073D200365D66 /* AUDebugDispatcher.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUDebugDispatcher.cpp; sourceTree = "<group>"; };
|
||||
8BA05AAA072073D200365D66 /* AUDebugDispatcher.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUDebugDispatcher.h; sourceTree = "<group>"; };
|
||||
8BA05AAB072073D200365D66 /* AUInputFormatConverter.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUInputFormatConverter.h; sourceTree = "<group>"; };
|
||||
8BA05AAC072073D200365D66 /* AUSilentTimeout.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUSilentTimeout.h; sourceTree = "<group>"; };
|
||||
8BA05AAD072073D200365D66 /* AUTimestampGenerator.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUTimestampGenerator.h; sourceTree = "<group>"; };
|
||||
8BA05ADF0720742100365D66 /* CAAudioChannelLayout.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAAudioChannelLayout.cpp; sourceTree = "<group>"; };
|
||||
8BA05AE00720742100365D66 /* CAAudioChannelLayout.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAAudioChannelLayout.h; sourceTree = "<group>"; };
|
||||
8BA05AE10720742100365D66 /* CAMutex.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAMutex.cpp; sourceTree = "<group>"; };
|
||||
8BA05AE20720742100365D66 /* CAMutex.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAMutex.h; sourceTree = "<group>"; };
|
||||
8BA05AE30720742100365D66 /* CAStreamBasicDescription.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAStreamBasicDescription.cpp; sourceTree = "<group>"; };
|
||||
8BA05AE40720742100365D66 /* CAStreamBasicDescription.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAStreamBasicDescription.h; sourceTree = "<group>"; };
|
||||
8BA05AF9072074E100365D66 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = "<absolute>"; };
|
||||
8BA05AFA072074E100365D66 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioUnit.framework; path = /System/Library/Frameworks/AudioUnit.framework; sourceTree = "<absolute>"; };
|
||||
8BA05B01072074F900365D66 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = "<absolute>"; };
|
||||
8BA05B050720754400365D66 /* CAAUParameter.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAAUParameter.cpp; sourceTree = "<group>"; };
|
||||
8BA05B060720754400365D66 /* CAAUParameter.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAAUParameter.h; sourceTree = "<group>"; };
|
||||
8BC6025B073B072D006C4272 /* BiquadStack.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = BiquadStack.h; sourceTree = "<group>"; };
|
||||
8D01CCD10486CAD60068D4B7 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
|
||||
8D01CCD20486CAD60068D4B7 /* BiquadStack.component */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BiquadStack.component; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
F7C347EE0ECE5AF8008ADFB6 /* AUBaseHelper.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AUBaseHelper.cpp; path = Extras/CoreAudio/AudioUnits/AUPublic/Utility/AUBaseHelper.cpp; sourceTree = SYSTEM_DEVELOPER_DIR; };
|
||||
F7C347EF0ECE5AF8008ADFB6 /* AUBaseHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AUBaseHelper.h; path = Extras/CoreAudio/AudioUnits/AUPublic/Utility/AUBaseHelper.h; sourceTree = SYSTEM_DEVELOPER_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
8D01CCCD0486CAD60068D4B7 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8BA05AFC072074E100365D66 /* AudioToolbox.framework in Frameworks */,
|
||||
8BA05AFD072074E100365D66 /* AudioUnit.framework in Frameworks */,
|
||||
8BA05B02072074F900365D66 /* CoreServices.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
089C166AFE841209C02AAC07 /* BiquadStack */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
08FB77ADFE841716C02AAC07 /* Source */,
|
||||
089C167CFE841241C02AAC07 /* Resources */,
|
||||
089C1671FE841209C02AAC07 /* External Frameworks and Libraries */,
|
||||
19C28FB4FE9D528D11CA2CBB /* Products */,
|
||||
);
|
||||
name = BiquadStack;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
089C1671FE841209C02AAC07 /* External Frameworks and Libraries */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8B5C7FBF076FB2C200A15F61 /* CoreAudio.framework */,
|
||||
8BA05B01072074F900365D66 /* CoreServices.framework */,
|
||||
8BA05AF9072074E100365D66 /* AudioToolbox.framework */,
|
||||
8BA05AFA072074E100365D66 /* AudioUnit.framework */,
|
||||
);
|
||||
name = "External Frameworks and Libraries";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
089C167CFE841241C02AAC07 /* Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8D01CCD10486CAD60068D4B7 /* Info.plist */,
|
||||
089C167DFE841241C02AAC07 /* InfoPlist.strings */,
|
||||
);
|
||||
name = Resources;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
08FB77ADFE841716C02AAC07 /* Source */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A56072072A900365D66 /* AU Source */,
|
||||
8BA05AEB0720742700365D66 /* PublicUtility */,
|
||||
8BA05A7D072073D200365D66 /* AUPublic */,
|
||||
);
|
||||
name = Source;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
19C28FB4FE9D528D11CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8D01CCD20486CAD60068D4B7 /* BiquadStack.component */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05A56072072A900365D66 /* AU Source */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BC6025B073B072D006C4272 /* BiquadStack.h */,
|
||||
8BA05A660720730100365D66 /* BiquadStack.cpp */,
|
||||
8BA05A670720730100365D66 /* BiquadStack.exp */,
|
||||
8BA05A680720730100365D66 /* BiquadStack.r */,
|
||||
8BA05A690720730100365D66 /* BiquadStackVersion.h */,
|
||||
);
|
||||
name = "AU Source";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05A7D072073D200365D66 /* AUPublic */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A7E072073D200365D66 /* AUBase */,
|
||||
8BA05A99072073D200365D66 /* OtherBases */,
|
||||
8BA05AA6072073D200365D66 /* Utility */,
|
||||
);
|
||||
name = AUPublic;
|
||||
path = Extras/CoreAudio/AudioUnits/AUPublic;
|
||||
sourceTree = SYSTEM_DEVELOPER_DIR;
|
||||
};
|
||||
8BA05A7E072073D200365D66 /* AUBase */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A7F072073D200365D66 /* AUBase.cpp */,
|
||||
8BA05A80072073D200365D66 /* AUBase.h */,
|
||||
8BA05A81072073D200365D66 /* AUDispatch.cpp */,
|
||||
8BA05A82072073D200365D66 /* AUDispatch.h */,
|
||||
8BA05A83072073D200365D66 /* AUInputElement.cpp */,
|
||||
8BA05A84072073D200365D66 /* AUInputElement.h */,
|
||||
8BA05A85072073D200365D66 /* AUOutputElement.cpp */,
|
||||
8BA05A86072073D200365D66 /* AUOutputElement.h */,
|
||||
8BA05A87072073D200365D66 /* AUResources.r */,
|
||||
8BA05A88072073D200365D66 /* AUScopeElement.cpp */,
|
||||
8BA05A89072073D200365D66 /* AUScopeElement.h */,
|
||||
8BA05A8A072073D200365D66 /* ComponentBase.cpp */,
|
||||
8BA05A8B072073D200365D66 /* ComponentBase.h */,
|
||||
);
|
||||
path = AUBase;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05A99072073D200365D66 /* OtherBases */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A9A072073D200365D66 /* AUEffectBase.cpp */,
|
||||
8BA05A9B072073D200365D66 /* AUEffectBase.h */,
|
||||
);
|
||||
path = OtherBases;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05AA6072073D200365D66 /* Utility */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F7C347EE0ECE5AF8008ADFB6 /* AUBaseHelper.cpp */,
|
||||
F7C347EF0ECE5AF8008ADFB6 /* AUBaseHelper.h */,
|
||||
8BA05AA7072073D200365D66 /* AUBuffer.cpp */,
|
||||
8BA05AA8072073D200365D66 /* AUBuffer.h */,
|
||||
8BA05AA9072073D200365D66 /* AUDebugDispatcher.cpp */,
|
||||
8BA05AAA072073D200365D66 /* AUDebugDispatcher.h */,
|
||||
8BA05AAB072073D200365D66 /* AUInputFormatConverter.h */,
|
||||
8BA05AAC072073D200365D66 /* AUSilentTimeout.h */,
|
||||
8BA05AAD072073D200365D66 /* AUTimestampGenerator.h */,
|
||||
);
|
||||
path = Utility;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05AEB0720742700365D66 /* PublicUtility */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05B050720754400365D66 /* CAAUParameter.cpp */,
|
||||
8BA05B060720754400365D66 /* CAAUParameter.h */,
|
||||
8BA05ADF0720742100365D66 /* CAAudioChannelLayout.cpp */,
|
||||
8BA05AE00720742100365D66 /* CAAudioChannelLayout.h */,
|
||||
8BA05AE10720742100365D66 /* CAMutex.cpp */,
|
||||
8BA05AE20720742100365D66 /* CAMutex.h */,
|
||||
8BA05AE30720742100365D66 /* CAStreamBasicDescription.cpp */,
|
||||
8BA05AE40720742100365D66 /* CAStreamBasicDescription.h */,
|
||||
3EEA126D089847F5002C6BFC /* CAVectorUnitTypes.h */,
|
||||
3EEA126B089847F5002C6BFC /* CAVectorUnit.cpp */,
|
||||
3EEA126C089847F5002C6BFC /* CAVectorUnit.h */,
|
||||
);
|
||||
name = PublicUtility;
|
||||
path = Extras/CoreAudio/PublicUtility;
|
||||
sourceTree = SYSTEM_DEVELOPER_DIR;
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXHeadersBuildPhase section */
|
||||
8D01CCC70486CAD60068D4B7 /* Headers */ = {
|
||||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8BA05A6E0720730100365D66 /* BiquadStackVersion.h in Headers */,
|
||||
8BA05AAF072073D300365D66 /* AUBase.h in Headers */,
|
||||
8BA05AB1072073D300365D66 /* AUDispatch.h in Headers */,
|
||||
8BA05AB3072073D300365D66 /* AUInputElement.h in Headers */,
|
||||
8BA05AB5072073D300365D66 /* AUOutputElement.h in Headers */,
|
||||
8BA05AB8072073D300365D66 /* AUScopeElement.h in Headers */,
|
||||
8BA05ABA072073D300365D66 /* ComponentBase.h in Headers */,
|
||||
8BA05AC7072073D300365D66 /* AUEffectBase.h in Headers */,
|
||||
8BA05AD3072073D300365D66 /* AUBuffer.h in Headers */,
|
||||
8BA05AD5072073D300365D66 /* AUDebugDispatcher.h in Headers */,
|
||||
8BA05AD6072073D300365D66 /* AUInputFormatConverter.h in Headers */,
|
||||
8BA05AD7072073D300365D66 /* AUSilentTimeout.h in Headers */,
|
||||
8BA05AD8072073D300365D66 /* AUTimestampGenerator.h in Headers */,
|
||||
8BA05AE60720742100365D66 /* CAAudioChannelLayout.h in Headers */,
|
||||
8BA05AE80720742100365D66 /* CAMutex.h in Headers */,
|
||||
8BA05AEA0720742100365D66 /* CAStreamBasicDescription.h in Headers */,
|
||||
8BA05B080720754400365D66 /* CAAUParameter.h in Headers */,
|
||||
8BC6025C073B072D006C4272 /* BiquadStack.h in Headers */,
|
||||
3EEA126F089847F5002C6BFC /* CAVectorUnit.h in Headers */,
|
||||
3EEA1270089847F5002C6BFC /* CAVectorUnitTypes.h in Headers */,
|
||||
F7C347F10ECE5AF8008ADFB6 /* AUBaseHelper.h in Headers */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXHeadersBuildPhase section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8D01CCC60486CAD60068D4B7 /* BiquadStack */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 3E4BA243089833B7007656EC /* Build configuration list for PBXNativeTarget "BiquadStack" */;
|
||||
buildPhases = (
|
||||
8D01CCC70486CAD60068D4B7 /* Headers */,
|
||||
8D01CCC90486CAD60068D4B7 /* Resources */,
|
||||
8D01CCCB0486CAD60068D4B7 /* Sources */,
|
||||
8D01CCCD0486CAD60068D4B7 /* Frameworks */,
|
||||
8D01CCCF0486CAD60068D4B7 /* Rez */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = BiquadStack;
|
||||
productInstallPath = "$(HOME)/Library/Bundles";
|
||||
productName = BiquadStack;
|
||||
productReference = 8D01CCD20486CAD60068D4B7 /* BiquadStack.component */;
|
||||
productType = "com.apple.product-type.bundle";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
089C1669FE841209C02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 3E4BA247089833B7007656EC /* Build configuration list for PBXProject "BiquadStack" */;
|
||||
compatibilityVersion = "Xcode 3.1";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 1;
|
||||
knownRegions = (
|
||||
English,
|
||||
Japanese,
|
||||
French,
|
||||
German,
|
||||
);
|
||||
mainGroup = 089C166AFE841209C02AAC07 /* BiquadStack */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
8D01CCC60486CAD60068D4B7 /* BiquadStack */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
8D01CCC90486CAD60068D4B7 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8D01CCCA0486CAD60068D4B7 /* InfoPlist.strings in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXRezBuildPhase section */
|
||||
8D01CCCF0486CAD60068D4B7 /* Rez */ = {
|
||||
isa = PBXRezBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8B4119B70749654200361ABE /* BiquadStack.r in Rez */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXRezBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
8D01CCCB0486CAD60068D4B7 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8BA05A6B0720730100365D66 /* BiquadStack.cpp in Sources */,
|
||||
8BA05AAE072073D300365D66 /* AUBase.cpp in Sources */,
|
||||
8BA05AB0072073D300365D66 /* AUDispatch.cpp in Sources */,
|
||||
8BA05AB2072073D300365D66 /* AUInputElement.cpp in Sources */,
|
||||
8BA05AB4072073D300365D66 /* AUOutputElement.cpp in Sources */,
|
||||
8BA05AB7072073D300365D66 /* AUScopeElement.cpp in Sources */,
|
||||
8BA05AB9072073D300365D66 /* ComponentBase.cpp in Sources */,
|
||||
8BA05AC6072073D300365D66 /* AUEffectBase.cpp in Sources */,
|
||||
8BA05AD2072073D300365D66 /* AUBuffer.cpp in Sources */,
|
||||
8BA05AD4072073D300365D66 /* AUDebugDispatcher.cpp in Sources */,
|
||||
8BA05AE50720742100365D66 /* CAAudioChannelLayout.cpp in Sources */,
|
||||
8BA05AE70720742100365D66 /* CAMutex.cpp in Sources */,
|
||||
8BA05AE90720742100365D66 /* CAStreamBasicDescription.cpp in Sources */,
|
||||
8BA05B070720754400365D66 /* CAAUParameter.cpp in Sources */,
|
||||
3EEA126E089847F5002C6BFC /* CAVectorUnit.cpp in Sources */,
|
||||
F7C347F00ECE5AF8008ADFB6 /* AUBaseHelper.cpp in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
089C167DFE841241C02AAC07 /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
089C167EFE841241C02AAC07 /* English */,
|
||||
);
|
||||
name = InfoPlist.strings;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
3E4BA244089833B7007656EC /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
EXPORTED_SYMBOLS_FILE = BiquadStack.exp;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GENERATE_PKGINFO_FILE = YES;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Library/Audio/Plug-Ins/Components/";
|
||||
LIBRARY_STYLE = Bundle;
|
||||
OTHER_LDFLAGS = "-bundle";
|
||||
OTHER_REZFLAGS = "-d ppc_$ppc -d i386_$i386 -d ppc64_$ppc64 -d x86_64_$x86_64 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I \"$(DEVELOPER_DIR)/Examples/CoreAudio/AudioUnits/AUPublic/AUBase\"";
|
||||
PRODUCT_NAME = BiquadStack;
|
||||
WRAPPER_EXTENSION = component;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
3E4BA245089833B7007656EC /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = (
|
||||
ppc,
|
||||
i386,
|
||||
x86_64,
|
||||
);
|
||||
EXPORTED_SYMBOLS_FILE = BiquadStack.exp;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GENERATE_PKGINFO_FILE = YES;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Library/Audio/Plug-Ins/Components/";
|
||||
LIBRARY_STYLE = Bundle;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
||||
OTHER_LDFLAGS = "-bundle";
|
||||
OTHER_REZFLAGS = "-d ppc_$ppc -d i386_$i386 -d x86_64_$x86_64 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I \"$(DEVELOPER_DIR)/Examples/CoreAudio/AudioUnits/AUPublic/AUBase\"";
|
||||
PRODUCT_NAME = BiquadStack;
|
||||
SDKROOT = macosx10.5;
|
||||
STRIP_INSTALLED_PRODUCT = YES;
|
||||
STRIP_STYLE = all;
|
||||
WRAPPER_EXTENSION = component;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
3E4BA248089833B7007656EC /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
SDKROOT = macosx10.6;
|
||||
WARNING_CFLAGS = (
|
||||
"-Wmost",
|
||||
"-Wno-four-char-constants",
|
||||
"-Wno-unknown-pragmas",
|
||||
);
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
3E4BA249089833B7007656EC /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
SDKROOT = macosx10.6;
|
||||
WARNING_CFLAGS = (
|
||||
"-Wmost",
|
||||
"-Wno-four-char-constants",
|
||||
"-Wno-unknown-pragmas",
|
||||
);
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
3E4BA243089833B7007656EC /* Build configuration list for PBXNativeTarget "BiquadStack" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
3E4BA244089833B7007656EC /* Debug */,
|
||||
3E4BA245089833B7007656EC /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Debug;
|
||||
};
|
||||
3E4BA247089833B7007656EC /* Build configuration list for PBXProject "BiquadStack" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
3E4BA248089833B7007656EC /* Debug */,
|
||||
3E4BA249089833B7007656EC /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Debug;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 089C1669FE841209C02AAC07 /* Project object */;
|
||||
}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* File: ConsoleXSubInVersion.h
|
||||
* File: BiquadStackVersion.h
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 3/8/24
|
||||
* Created: 4/15/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
|
|
@ -39,19 +39,19 @@
|
|||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
#ifndef __ConsoleXSubInVersion_h__
|
||||
#define __ConsoleXSubInVersion_h__
|
||||
#ifndef __BiquadStackVersion_h__
|
||||
#define __BiquadStackVersion_h__
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#define kConsoleXSubInVersion 0xFFFFFFFF
|
||||
#define kBiquadStackVersion 0xFFFFFFFF
|
||||
#else
|
||||
#define kConsoleXSubInVersion 0x00010000
|
||||
#define kBiquadStackVersion 0x00010000
|
||||
#endif
|
||||
|
||||
//~~~~~~~~~~~~~~ Change!!! ~~~~~~~~~~~~~~~~~~~~~//
|
||||
#define ConsoleXSubIn_COMP_MANF 'Dthr'
|
||||
#define ConsoleXSubIn_COMP_SUBTYPE 'cnxi'
|
||||
#define BiquadStack_COMP_MANF 'Dthr'
|
||||
#define BiquadStack_COMP_SUBTYPE 'biqk'
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
|
||||
|
||||
#endif
|
||||
BIN
plugins/MacAU/BiquadStack/English.lproj/InfoPlist.strings
Executable file
BIN
plugins/MacAU/BiquadStack/English.lproj/InfoPlist.strings
Executable file
Binary file not shown.
28
plugins/MacAU/BiquadStack/Info.plist
Executable file
28
plugins/MacAU/BiquadStack/Info.plist
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.airwindows.audiounit.${PRODUCT_NAME:identifier}</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>${PROJECTNAMEASIDENTIFIER}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>DthX</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>CSResourcesFileMapped</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -54,36 +54,125 @@
|
|||
#pragma mark ____ConsoleXBuss Parameters
|
||||
|
||||
// parameters
|
||||
static const float kDefaultValue_ParamOne = 0.5;
|
||||
static const float kDefaultValue_ParamTwo = 0.5;
|
||||
static const float kDefaultValue_ParamThree = 0.5;
|
||||
static const float kDefaultValue_ParamFour = 0.5;
|
||||
static const float kDefaultValue_ParamFive = 0.5;
|
||||
static const float kDefaultValue_ParamSix = 100.0;
|
||||
static const float kDefaultValue_ParamSeven = 0.5;
|
||||
static const float kDefaultValue_ParamEight = 0.5;
|
||||
|
||||
static CFStringRef kParameterOneName = CFSTR("Air");
|
||||
static CFStringRef kParameterTwoName = CFSTR("Fire");
|
||||
static CFStringRef kParameterThreeName = CFSTR("Stone");
|
||||
static CFStringRef kParameterFourName = CFSTR("Reso");
|
||||
static CFStringRef kParameterFiveName = CFSTR("Range");
|
||||
static CFStringRef kParameterSixName = CFSTR("Top dB");
|
||||
static CFStringRef kParameterSevenName = CFSTR("Pan");
|
||||
static CFStringRef kParameterEightName = CFSTR("Fader");
|
||||
//Alter the name if desired, but using the plugin name is a start
|
||||
static const float kDefaultValue_ParamHIP = 0.0;
|
||||
static const float kDefaultValue_ParamLOP = 0.0;
|
||||
static CFStringRef kParameterHIPName = CFSTR("Highpas");
|
||||
static CFStringRef kParameterLOPName = CFSTR("Lowpass");
|
||||
//distributed highpass and lowpass
|
||||
static const float kDefaultValue_ParamAIR = 0.5;
|
||||
static const float kDefaultValue_ParamFIR = 0.5;
|
||||
static const float kDefaultValue_ParamSTO = 0.5;
|
||||
static const float kDefaultValue_ParamRNG = 0.5;
|
||||
static const float kDefaultValue_ParamFCT = 1.0;
|
||||
static const float kDefaultValue_ParamSCT = 1.0;
|
||||
static const float kDefaultValue_ParamFCR = 1.0;
|
||||
static const float kDefaultValue_ParamSCR = 1.0;
|
||||
static const float kDefaultValue_ParamFCA = 0.5;
|
||||
static const float kDefaultValue_ParamSCA = 0.5;
|
||||
static const float kDefaultValue_ParamFCL = 0.5;
|
||||
static const float kDefaultValue_ParamSCL = 0.5;
|
||||
static const float kDefaultValue_ParamFGT = 0.0;
|
||||
static const float kDefaultValue_ParamSGT = 0.0;
|
||||
static const float kDefaultValue_ParamFGR = 1.0;
|
||||
static const float kDefaultValue_ParamSGR = 1.0;
|
||||
static const float kDefaultValue_ParamFGS = 0.5;
|
||||
static const float kDefaultValue_ParamSGS = 0.5;
|
||||
static const float kDefaultValue_ParamFGL = 0.5;
|
||||
static const float kDefaultValue_ParamSGL = 0.5;
|
||||
static CFStringRef kParameterAIRName = CFSTR("Air");
|
||||
static CFStringRef kParameterFIRName = CFSTR("Fire");
|
||||
static CFStringRef kParameterSTOName = CFSTR("Stone");
|
||||
static CFStringRef kParameterRNGName = CFSTR("Range");
|
||||
static CFStringRef kParameterFCTName = CFSTR("FC Thrs");
|
||||
static CFStringRef kParameterSCTName = CFSTR("SC Thrs");
|
||||
static CFStringRef kParameterFCRName = CFSTR("FC Rati");
|
||||
static CFStringRef kParameterSCRName = CFSTR("SC Rati");
|
||||
static CFStringRef kParameterFCAName = CFSTR("FC Atk");
|
||||
static CFStringRef kParameterSCAName = CFSTR("SC Atk");
|
||||
static CFStringRef kParameterFCLName = CFSTR("FC Rls");
|
||||
static CFStringRef kParameterSCLName = CFSTR("SC Rls");
|
||||
static CFStringRef kParameterFGTName = CFSTR("FG Thrs");
|
||||
static CFStringRef kParameterSGTName = CFSTR("SG Thrs");
|
||||
static CFStringRef kParameterFGRName = CFSTR("FG Rati");
|
||||
static CFStringRef kParameterSGRName = CFSTR("SG Rati");
|
||||
static CFStringRef kParameterFGSName = CFSTR("FG Sust");
|
||||
static CFStringRef kParameterSGSName = CFSTR("SG Sust");
|
||||
static CFStringRef kParameterFGLName = CFSTR("FG Rls");
|
||||
static CFStringRef kParameterSGLName = CFSTR("SG Rls");
|
||||
//StoneFire Compression and Gate
|
||||
static const float kDefaultValue_ParamTRF = 0.5;
|
||||
static const float kDefaultValue_ParamTRG = 0.5;
|
||||
static const float kDefaultValue_ParamTRR = 0.5;
|
||||
static const float kDefaultValue_ParamHMF = 0.5;
|
||||
static const float kDefaultValue_ParamHMG = 0.5;
|
||||
static const float kDefaultValue_ParamHMR = 0.5;
|
||||
static const float kDefaultValue_ParamLMF = 0.5;
|
||||
static const float kDefaultValue_ParamLMG = 0.5;
|
||||
static const float kDefaultValue_ParamLMR = 0.5;
|
||||
static const float kDefaultValue_ParamBSF = 0.5;
|
||||
static const float kDefaultValue_ParamBSG = 0.5;
|
||||
static const float kDefaultValue_ParamBSR = 0.5;
|
||||
static CFStringRef kParameterTRFName = CFSTR("Tr Freq");
|
||||
static CFStringRef kParameterTRGName = CFSTR("Treble");
|
||||
static CFStringRef kParameterTRRName = CFSTR("Tr Reso");
|
||||
static CFStringRef kParameterHMFName = CFSTR("HM Freq");
|
||||
static CFStringRef kParameterHMGName = CFSTR("HighMid");
|
||||
static CFStringRef kParameterHMRName = CFSTR("HM Reso");
|
||||
static CFStringRef kParameterLMFName = CFSTR("LM Freq");
|
||||
static CFStringRef kParameterLMGName = CFSTR("LowMid");
|
||||
static CFStringRef kParameterLMRName = CFSTR("LM Reso");
|
||||
static CFStringRef kParameterBSFName = CFSTR("Bs Freq");
|
||||
static CFStringRef kParameterBSGName = CFSTR("Bass");
|
||||
static CFStringRef kParameterBSRName = CFSTR("Bs Reso");
|
||||
//Parametric
|
||||
static const float kDefaultValue_ParamDSC = 100.0;
|
||||
static const float kDefaultValue_ParamPAN = 0.5;
|
||||
static const float kDefaultValue_ParamFAD = 0.5;
|
||||
static CFStringRef kParameterDSCName = CFSTR("Top dB");
|
||||
static CFStringRef kParameterPANName = CFSTR("Pan");
|
||||
static CFStringRef kParameterFADName = CFSTR("Fader");
|
||||
//Discontinuity, Pan, Fader
|
||||
|
||||
enum {
|
||||
kParam_One =0,
|
||||
kParam_Two =1,
|
||||
kParam_Three =2,
|
||||
kParam_Four =3,
|
||||
kParam_Five =4,
|
||||
kParam_Six =5,
|
||||
kParam_Seven =6,
|
||||
kParam_Eight =7,
|
||||
kParam_HIP = 0,
|
||||
kParam_LOP = 1,
|
||||
kParam_AIR = 2,
|
||||
kParam_FIR = 3,
|
||||
kParam_STO = 4,
|
||||
kParam_RNG = 5,
|
||||
kParam_FCT = 6,
|
||||
kParam_SCT = 7,
|
||||
kParam_FCR = 8,
|
||||
kParam_SCR = 9,
|
||||
kParam_FCA = 10,
|
||||
kParam_SCA = 11,
|
||||
kParam_FCL = 12,
|
||||
kParam_SCL = 13,
|
||||
kParam_FGT = 14,
|
||||
kParam_SGT = 15,
|
||||
kParam_FGR = 16,
|
||||
kParam_SGR = 17,
|
||||
kParam_FGS = 18,
|
||||
kParam_SGS = 19,
|
||||
kParam_FGL = 20,
|
||||
kParam_SGL = 21,
|
||||
kParam_TRF = 22,
|
||||
kParam_TRG = 23,
|
||||
kParam_TRR = 24,
|
||||
kParam_HMF = 25,
|
||||
kParam_HMG = 26,
|
||||
kParam_HMR = 27,
|
||||
kParam_LMF = 28,
|
||||
kParam_LMG = 29,
|
||||
kParam_LMR = 30,
|
||||
kParam_BSF = 31,
|
||||
kParam_BSG = 32,
|
||||
kParam_BSR = 33,
|
||||
kParam_DSC = 34,
|
||||
kParam_PAN = 35,
|
||||
kParam_FAD = 36,
|
||||
//Add your parameters here...
|
||||
kNumberOfParameters=8
|
||||
kNumberOfParameters=37
|
||||
};
|
||||
const int dscBuf = 90;
|
||||
|
||||
|
|
@ -131,93 +220,76 @@ public:
|
|||
/*! @method Version */
|
||||
virtual ComponentResult Version() { return kConsoleXBussVersion; }
|
||||
|
||||
private:
|
||||
enum {
|
||||
biq_freq,
|
||||
biq_reso,
|
||||
biq_a0,
|
||||
biq_a1,
|
||||
biq_a2,
|
||||
biq_b1,
|
||||
biq_b2,
|
||||
biq_sL1,
|
||||
biq_sL2,
|
||||
biq_sR1,
|
||||
biq_sR2,
|
||||
biq_total
|
||||
};
|
||||
double biquad[biq_total];
|
||||
private:
|
||||
|
||||
enum {
|
||||
pvAL1,
|
||||
pvSL1,
|
||||
accSL1,
|
||||
acc2SL1,
|
||||
pvAL2,
|
||||
pvSL2,
|
||||
accSL2,
|
||||
acc2SL2,
|
||||
pvAL3,
|
||||
pvSL3,
|
||||
accSL3,
|
||||
pvAL4,
|
||||
pvSL4,
|
||||
gndavgL,
|
||||
outAL,
|
||||
gainAL,
|
||||
pvAR1,
|
||||
pvSR1,
|
||||
accSR1,
|
||||
acc2SR1,
|
||||
pvAR2,
|
||||
pvSR2,
|
||||
accSR2,
|
||||
acc2SR2,
|
||||
pvAR3,
|
||||
pvSR3,
|
||||
accSR3,
|
||||
pvAR4,
|
||||
pvSR4,
|
||||
gndavgR,
|
||||
outAR,
|
||||
gainAR,
|
||||
hilp_freq, hilp_temp,
|
||||
hilp_a0, hilp_aA0, hilp_aB0, hilp_a1, hilp_aA1, hilp_aB1, hilp_b1, hilp_bA1, hilp_bB1, hilp_b2, hilp_bA2, hilp_bB2,
|
||||
hilp_c0, hilp_cA0, hilp_cB0, hilp_c1, hilp_cA1, hilp_cB1, hilp_d1, hilp_dA1, hilp_dB1, hilp_d2, hilp_dA2, hilp_dB2,
|
||||
hilp_e0, hilp_eA0, hilp_eB0, hilp_e1, hilp_eA1, hilp_eB1, hilp_f1, hilp_fA1, hilp_fB1, hilp_f2, hilp_fA2, hilp_fB2,
|
||||
hilp_aL1, hilp_aL2, hilp_aR1, hilp_aR2,
|
||||
hilp_cL1, hilp_cL2, hilp_cR1, hilp_cR2,
|
||||
hilp_eL1, hilp_eL2, hilp_eR1, hilp_eR2,
|
||||
hilp_total
|
||||
};
|
||||
double highpass[hilp_total];
|
||||
double lowpass[hilp_total];
|
||||
|
||||
enum {
|
||||
pvAL1, pvSL1, accSL1, acc2SL1,
|
||||
pvAL2, pvSL2, accSL2, acc2SL2,
|
||||
pvAL3, pvSL3, accSL3,
|
||||
pvAL4, pvSL4,
|
||||
gndavgL, outAL, gainAL,
|
||||
pvAR1, pvSR1, accSR1, acc2SR1,
|
||||
pvAR2, pvSR2, accSR2, acc2SR2,
|
||||
pvAR3, pvSR3, accSR3,
|
||||
pvAR4, pvSR4,
|
||||
gndavgR, outAR, gainAR,
|
||||
air_total
|
||||
};
|
||||
double air[air_total];
|
||||
|
||||
enum {
|
||||
prevSampL1,
|
||||
prevSlewL1,
|
||||
accSlewL1,
|
||||
prevSampL2,
|
||||
prevSlewL2,
|
||||
accSlewL2,
|
||||
prevSampL3,
|
||||
prevSlewL3,
|
||||
accSlewL3,
|
||||
kalGainL,
|
||||
kalOutL,
|
||||
prevSampR1,
|
||||
prevSlewR1,
|
||||
accSlewR1,
|
||||
prevSampR2,
|
||||
prevSlewR2,
|
||||
accSlewR2,
|
||||
prevSampR3,
|
||||
prevSlewR3,
|
||||
accSlewR3,
|
||||
kalGainR,
|
||||
kalOutR,
|
||||
prevSampL1, prevSlewL1, accSlewL1,
|
||||
prevSampL2, prevSlewL2, accSlewL2,
|
||||
prevSampL3, prevSlewL3, accSlewL3,
|
||||
kalGainL, kalOutL,
|
||||
prevSampR1, prevSlewR1, accSlewR1,
|
||||
prevSampR2, prevSlewR2, accSlewR2,
|
||||
prevSampR3, prevSlewR3, accSlewR3,
|
||||
kalGainR, kalOutR,
|
||||
kal_total
|
||||
};
|
||||
double kal[kal_total];
|
||||
double fireCompL;
|
||||
double fireCompR;
|
||||
double fireGate;
|
||||
double stoneCompL;
|
||||
double stoneCompR;
|
||||
double stoneGate;
|
||||
double airGainA;
|
||||
double airGainB;
|
||||
double fireGainA;
|
||||
double fireGainB;
|
||||
double stoneGainA;
|
||||
double stoneGainB;
|
||||
|
||||
double mpkL[2005];
|
||||
double mpkR[2005];
|
||||
double f[66];
|
||||
double prevfreqMPeak;
|
||||
double prevamountMPeak;
|
||||
int mpc;
|
||||
enum {
|
||||
biqs_freq, biqs_reso, biqs_level,
|
||||
biqs_nonlin, biqs_temp, biqs_dis,
|
||||
biqs_a0, biqs_a1, biqs_b1, biqs_b2,
|
||||
biqs_c0, biqs_c1, biqs_d1, biqs_d2,
|
||||
biqs_e0, biqs_e1, biqs_f1, biqs_f2,
|
||||
biqs_aL1, biqs_aL2, biqs_aR1, biqs_aR2,
|
||||
biqs_cL1, biqs_cL2, biqs_cR1, biqs_cR2,
|
||||
biqs_eL1, biqs_eL2, biqs_eR1, biqs_eR2,
|
||||
biqs_outL, biqs_outR, biqs_total
|
||||
};
|
||||
double high[biqs_total];
|
||||
double hmid[biqs_total];
|
||||
double lmid[biqs_total];
|
||||
double bass[biqs_total];
|
||||
|
||||
double dBaL[dscBuf+5];
|
||||
double dBaR[dscBuf+5];
|
||||
|
|
@ -226,14 +298,6 @@ public:
|
|||
int dBaXL;
|
||||
int dBaXR;
|
||||
|
||||
double trebleGainA;
|
||||
double trebleGainB;
|
||||
double midGainA;
|
||||
double midGainB;
|
||||
double mPeakA;
|
||||
double mPeakB;
|
||||
double bassGainA;
|
||||
double bassGainB;
|
||||
double panA;
|
||||
double panB;
|
||||
double inTrimA;
|
||||
|
|
|
|||
|
|
@ -49,31 +49,62 @@
|
|||
PBXFileDataSource_Warnings_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXPerProjectTemplateStateSaveDate = 733436677;
|
||||
PBXWorkspaceStateSaveDate = 733436677;
|
||||
PBXPerProjectTemplateStateSaveDate = 736434312;
|
||||
PBXWorkspaceStateSaveDate = 736434312;
|
||||
};
|
||||
perUserProjectItems = {
|
||||
8BFF26B42BB75E8300B6740F /* PBXTextBookmark */ = 8BFF26B42BB75E8300B6740F /* PBXTextBookmark */;
|
||||
8BFF26B52BB75E8300B6740F /* PBXTextBookmark */ = 8BFF26B52BB75E8300B6740F /* PBXTextBookmark */;
|
||||
8B0FC5EF2BE5188D00C41CDA /* PBXTextBookmark */ = 8B0FC5EF2BE5188D00C41CDA /* PBXTextBookmark */;
|
||||
8B0FC5F02BE5188D00C41CDA /* PBXTextBookmark */ = 8B0FC5F02BE5188D00C41CDA /* PBXTextBookmark */;
|
||||
8B0FC5F12BE5188D00C41CDA /* PBXTextBookmark */ = 8B0FC5F12BE5188D00C41CDA /* PBXTextBookmark */;
|
||||
};
|
||||
sourceControlManager = 8BD3CCB8148830B20062E48C /* Source Control */;
|
||||
userBuildSettings = {
|
||||
};
|
||||
};
|
||||
8B0FC5EF2BE5188D00C41CDA /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* ConsoleXBuss.h */;
|
||||
name = "ConsoleXBuss.h: 135";
|
||||
rLen = 0;
|
||||
rLoc = 6849;
|
||||
rType = 0;
|
||||
vrLen = 209;
|
||||
vrLoc = 3;
|
||||
};
|
||||
8B0FC5F02BE5188D00C41CDA /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A660720730100365D66 /* ConsoleXBuss.cpp */;
|
||||
name = "ConsoleXBuss.cpp: 592";
|
||||
rLen = 0;
|
||||
rLoc = 28214;
|
||||
rType = 0;
|
||||
vrLen = 415;
|
||||
vrLoc = 38727;
|
||||
};
|
||||
8B0FC5F12BE5188D00C41CDA /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A660720730100365D66 /* ConsoleXBuss.cpp */;
|
||||
name = "ConsoleXBuss.cpp: 592";
|
||||
rLen = 0;
|
||||
rLoc = 28214;
|
||||
rType = 0;
|
||||
vrLen = 415;
|
||||
vrLoc = 38727;
|
||||
};
|
||||
8BA05A660720730100365D66 /* ConsoleXBuss.cpp */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1344, 10152}}";
|
||||
sepNavSelRange = "{14513, 11139}";
|
||||
sepNavVisRange = "{24741, 1549}";
|
||||
sepNavWindowFrame = "{{379, 44}, {1061, 834}}";
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1290, 22248}}";
|
||||
sepNavSelRange = "{28214, 0}";
|
||||
sepNavVisRange = "{38727, 415}";
|
||||
sepNavWindowFrame = "{{727, 41}, {983, 837}}";
|
||||
};
|
||||
};
|
||||
8BA05A690720730100365D66 /* ConsoleXBussVersion.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1056, 1062}}";
|
||||
sepNavSelRange = "{2927, 0}";
|
||||
sepNavVisRange = "{970, 2020}";
|
||||
sepNavWindowFrame = "{{486, 44}, {1061, 834}}";
|
||||
sepNavSelRange = "{2923, 4}";
|
||||
sepNavVisRange = "{865, 2125}";
|
||||
sepNavWindowFrame = "{{379, 44}, {1061, 834}}";
|
||||
};
|
||||
};
|
||||
8BA05A7F072073D200365D66 /* AUBase.cpp */ = {
|
||||
|
|
@ -85,10 +116,10 @@
|
|||
};
|
||||
8BC6025B073B072D006C4272 /* ConsoleXBuss.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {948, 4446}}";
|
||||
sepNavSelRange = "{3519, 0}";
|
||||
sepNavVisRange = "{3355, 402}";
|
||||
sepNavWindowFrame = "{{181, 59}, {1174, 819}}";
|
||||
sepNavIntBoundsRect = "{{0, 0}, {554, 5688}}";
|
||||
sepNavSelRange = "{6849, 0}";
|
||||
sepNavVisRange = "{3, 209}";
|
||||
sepNavWindowFrame = "{{565, 38}, {875, 840}}";
|
||||
};
|
||||
};
|
||||
8BD3CCB8148830B20062E48C /* Source Control */ = {
|
||||
|
|
@ -105,26 +136,6 @@
|
|||
isa = PBXCodeSenseManager;
|
||||
indexTemplatePath = "";
|
||||
};
|
||||
8BFF26B42BB75E8300B6740F /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* ConsoleXBuss.h */;
|
||||
name = "ConsoleXBuss.h: 70";
|
||||
rLen = 0;
|
||||
rLoc = 3519;
|
||||
rType = 0;
|
||||
vrLen = 402;
|
||||
vrLoc = 3355;
|
||||
};
|
||||
8BFF26B52BB75E8300B6740F /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* ConsoleXBuss.h */;
|
||||
name = "ConsoleXBuss.h: 70";
|
||||
rLen = 0;
|
||||
rLoc = 3519;
|
||||
rType = 0;
|
||||
vrLen = 402;
|
||||
vrLoc = 3355;
|
||||
};
|
||||
8D01CCC60486CAD60068D4B7 /* ConsoleXBuss */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@
|
|||
<real>185</real>
|
||||
</array>
|
||||
<key>RubberWindowFrame</key>
|
||||
<string>649 296 810 487 0 0 1440 878 </string>
|
||||
<string>611 309 810 487 0 0 1440 878 </string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>PBXSmartGroupTreeModule</string>
|
||||
|
|
@ -340,7 +340,7 @@
|
|||
<key>PBXProjectModuleGUID</key>
|
||||
<string>8BD12F7A2B8931E2007C2EEC</string>
|
||||
<key>PBXProjectModuleLabel</key>
|
||||
<string>ConsoleXBuss.h</string>
|
||||
<string>ConsoleXBuss.cpp</string>
|
||||
<key>PBXSplitModuleInNavigatorKey</key>
|
||||
<dict>
|
||||
<key>Split0</key>
|
||||
|
|
@ -348,14 +348,15 @@
|
|||
<key>PBXProjectModuleGUID</key>
|
||||
<string>8BD12F7B2B8931E2007C2EEC</string>
|
||||
<key>PBXProjectModuleLabel</key>
|
||||
<string>ConsoleXBuss.h</string>
|
||||
<string>ConsoleXBuss.cpp</string>
|
||||
<key>_historyCapacity</key>
|
||||
<integer>0</integer>
|
||||
<key>bookmark</key>
|
||||
<string>8BFF26B52BB75E8300B6740F</string>
|
||||
<string>8B0FC5F12BE5188D00C41CDA</string>
|
||||
<key>history</key>
|
||||
<array>
|
||||
<string>8BFF26B42BB75E8300B6740F</string>
|
||||
<string>8B0FC5EF2BE5188D00C41CDA</string>
|
||||
<string>8B0FC5F02BE5188D00C41CDA</string>
|
||||
</array>
|
||||
</dict>
|
||||
<key>SplitCount</key>
|
||||
|
|
@ -371,7 +372,7 @@
|
|||
<key>Frame</key>
|
||||
<string>{{0, 0}, {603, 132}}</string>
|
||||
<key>RubberWindowFrame</key>
|
||||
<string>649 296 810 487 0 0 1440 878 </string>
|
||||
<string>611 309 810 487 0 0 1440 878 </string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>PBXNavigatorGroup</string>
|
||||
|
|
@ -396,7 +397,7 @@
|
|||
<key>Frame</key>
|
||||
<string>{{10, 27}, {603, 282}}</string>
|
||||
<key>RubberWindowFrame</key>
|
||||
<string>649 296 810 487 0 0 1440 878 </string>
|
||||
<string>611 309 810 487 0 0 1440 878 </string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>XCDetailModule</string>
|
||||
|
|
@ -430,7 +431,7 @@
|
|||
<key>GeometryConfiguration</key>
|
||||
<dict>
|
||||
<key>Frame</key>
|
||||
<string>{{10, 31}, {603, 297}}</string>
|
||||
<string>{{10, 27}, {603, 363}}</string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>PBXCVSModule</string>
|
||||
|
|
@ -450,7 +451,7 @@
|
|||
<key>GeometryConfiguration</key>
|
||||
<dict>
|
||||
<key>Frame</key>
|
||||
<string>{{10, 27}, {603, 414}}</string>
|
||||
<string>{{10, 27}, {603, 363}}</string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>PBXBuildResultsModule</string>
|
||||
|
|
@ -478,11 +479,11 @@
|
|||
</array>
|
||||
<key>TableOfContents</key>
|
||||
<array>
|
||||
<string>8BFF26B62BB75E8300B6740F</string>
|
||||
<string>8B0FC5F22BE5188D00C41CDA</string>
|
||||
<string>1CA23ED40692098700951B8B</string>
|
||||
<string>8BFF26B72BB75E8300B6740F</string>
|
||||
<string>8B0FC5F32BE5188D00C41CDA</string>
|
||||
<string>8BD12F7A2B8931E2007C2EEC</string>
|
||||
<string>8BFF26B82BB75E8300B6740F</string>
|
||||
<string>8B0FC5F42BE5188D00C41CDA</string>
|
||||
<string>1CA23EDF0692099D00951B8B</string>
|
||||
<string>1CA23EE00692099D00951B8B</string>
|
||||
<string>1CA23EE10692099D00951B8B</string>
|
||||
|
|
@ -635,7 +636,7 @@
|
|||
<key>StatusbarIsVisible</key>
|
||||
<true/>
|
||||
<key>TimeStamp</key>
|
||||
<real>733437571.39485395</real>
|
||||
<real>736434317.63132</real>
|
||||
<key>ToolbarConfigUserDefaultsMinorVersion</key>
|
||||
<string>2</string>
|
||||
<key>ToolbarDisplayMode</key>
|
||||
|
|
@ -652,11 +653,10 @@
|
|||
<integer>5</integer>
|
||||
<key>WindowOrderList</key>
|
||||
<array>
|
||||
<string>8BFF26B92BB75E8300B6740F</string>
|
||||
<string>/Users/christopherjohnson/Desktop/airwindows/plugins/MacAU/ConsoleXBuss/ConsoleXBuss.xcodeproj</string>
|
||||
</array>
|
||||
<key>WindowString</key>
|
||||
<string>649 296 810 487 0 0 1440 878 </string>
|
||||
<string>611 309 810 487 0 0 1440 878 </string>
|
||||
<key>WindowToolsV3</key>
|
||||
<array>
|
||||
<dict>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -54,36 +54,125 @@
|
|||
#pragma mark ____ConsoleXChannel Parameters
|
||||
|
||||
// parameters
|
||||
static const float kDefaultValue_ParamOne = 0.5;
|
||||
static const float kDefaultValue_ParamTwo = 0.5;
|
||||
static const float kDefaultValue_ParamThree = 0.5;
|
||||
static const float kDefaultValue_ParamFour = 0.5;
|
||||
static const float kDefaultValue_ParamFive = 0.5;
|
||||
static const float kDefaultValue_ParamSix = 100.0;
|
||||
static const float kDefaultValue_ParamSeven = 0.5;
|
||||
static const float kDefaultValue_ParamEight = 0.5;
|
||||
|
||||
static CFStringRef kParameterOneName = CFSTR("Air");
|
||||
static CFStringRef kParameterTwoName = CFSTR("Fire");
|
||||
static CFStringRef kParameterThreeName = CFSTR("Stone");
|
||||
static CFStringRef kParameterFourName = CFSTR("Reso");
|
||||
static CFStringRef kParameterFiveName = CFSTR("Range");
|
||||
static CFStringRef kParameterSixName = CFSTR("Top dB");
|
||||
static CFStringRef kParameterSevenName = CFSTR("Pan");
|
||||
static CFStringRef kParameterEightName = CFSTR("Fader");
|
||||
//Alter the name if desired, but using the plugin name is a start
|
||||
static const float kDefaultValue_ParamHIP = 0.0;
|
||||
static const float kDefaultValue_ParamLOP = 0.0;
|
||||
static CFStringRef kParameterHIPName = CFSTR("Highpas");
|
||||
static CFStringRef kParameterLOPName = CFSTR("Lowpass");
|
||||
//distributed highpass and lowpass
|
||||
static const float kDefaultValue_ParamAIR = 0.5;
|
||||
static const float kDefaultValue_ParamFIR = 0.5;
|
||||
static const float kDefaultValue_ParamSTO = 0.5;
|
||||
static const float kDefaultValue_ParamRNG = 0.5;
|
||||
static const float kDefaultValue_ParamFCT = 1.0;
|
||||
static const float kDefaultValue_ParamSCT = 1.0;
|
||||
static const float kDefaultValue_ParamFCR = 1.0;
|
||||
static const float kDefaultValue_ParamSCR = 1.0;
|
||||
static const float kDefaultValue_ParamFCA = 0.5;
|
||||
static const float kDefaultValue_ParamSCA = 0.5;
|
||||
static const float kDefaultValue_ParamFCL = 0.5;
|
||||
static const float kDefaultValue_ParamSCL = 0.5;
|
||||
static const float kDefaultValue_ParamFGT = 0.0;
|
||||
static const float kDefaultValue_ParamSGT = 0.0;
|
||||
static const float kDefaultValue_ParamFGR = 1.0;
|
||||
static const float kDefaultValue_ParamSGR = 1.0;
|
||||
static const float kDefaultValue_ParamFGS = 0.5;
|
||||
static const float kDefaultValue_ParamSGS = 0.5;
|
||||
static const float kDefaultValue_ParamFGL = 0.5;
|
||||
static const float kDefaultValue_ParamSGL = 0.5;
|
||||
static CFStringRef kParameterAIRName = CFSTR("Air");
|
||||
static CFStringRef kParameterFIRName = CFSTR("Fire");
|
||||
static CFStringRef kParameterSTOName = CFSTR("Stone");
|
||||
static CFStringRef kParameterRNGName = CFSTR("Range");
|
||||
static CFStringRef kParameterFCTName = CFSTR("FC Thrs");
|
||||
static CFStringRef kParameterSCTName = CFSTR("SC Thrs");
|
||||
static CFStringRef kParameterFCRName = CFSTR("FC Rati");
|
||||
static CFStringRef kParameterSCRName = CFSTR("SC Rati");
|
||||
static CFStringRef kParameterFCAName = CFSTR("FC Atk");
|
||||
static CFStringRef kParameterSCAName = CFSTR("SC Atk");
|
||||
static CFStringRef kParameterFCLName = CFSTR("FC Rls");
|
||||
static CFStringRef kParameterSCLName = CFSTR("SC Rls");
|
||||
static CFStringRef kParameterFGTName = CFSTR("FG Thrs");
|
||||
static CFStringRef kParameterSGTName = CFSTR("SG Thrs");
|
||||
static CFStringRef kParameterFGRName = CFSTR("FG Rati");
|
||||
static CFStringRef kParameterSGRName = CFSTR("SG Rati");
|
||||
static CFStringRef kParameterFGSName = CFSTR("FG Sust");
|
||||
static CFStringRef kParameterSGSName = CFSTR("SG Sust");
|
||||
static CFStringRef kParameterFGLName = CFSTR("FG Rls");
|
||||
static CFStringRef kParameterSGLName = CFSTR("SG Rls");
|
||||
//Stonefire Compression and Gate
|
||||
static const float kDefaultValue_ParamTRF = 0.5;
|
||||
static const float kDefaultValue_ParamTRG = 0.5;
|
||||
static const float kDefaultValue_ParamTRR = 0.5;
|
||||
static const float kDefaultValue_ParamHMF = 0.5;
|
||||
static const float kDefaultValue_ParamHMG = 0.5;
|
||||
static const float kDefaultValue_ParamHMR = 0.5;
|
||||
static const float kDefaultValue_ParamLMF = 0.5;
|
||||
static const float kDefaultValue_ParamLMG = 0.5;
|
||||
static const float kDefaultValue_ParamLMR = 0.5;
|
||||
static const float kDefaultValue_ParamBSF = 0.5;
|
||||
static const float kDefaultValue_ParamBSG = 0.5;
|
||||
static const float kDefaultValue_ParamBSR = 0.5;
|
||||
static CFStringRef kParameterTRFName = CFSTR("Tr Freq");
|
||||
static CFStringRef kParameterTRGName = CFSTR("Treble");
|
||||
static CFStringRef kParameterTRRName = CFSTR("Tr Reso");
|
||||
static CFStringRef kParameterHMFName = CFSTR("HM Freq");
|
||||
static CFStringRef kParameterHMGName = CFSTR("HighMid");
|
||||
static CFStringRef kParameterHMRName = CFSTR("HM Reso");
|
||||
static CFStringRef kParameterLMFName = CFSTR("LM Freq");
|
||||
static CFStringRef kParameterLMGName = CFSTR("LowMid");
|
||||
static CFStringRef kParameterLMRName = CFSTR("LM Reso");
|
||||
static CFStringRef kParameterBSFName = CFSTR("Bs Freq");
|
||||
static CFStringRef kParameterBSGName = CFSTR("Bass");
|
||||
static CFStringRef kParameterBSRName = CFSTR("Bs Reso");
|
||||
//Parametric
|
||||
static const float kDefaultValue_ParamDSC = 100.0;
|
||||
static const float kDefaultValue_ParamPAN = 0.5;
|
||||
static const float kDefaultValue_ParamFAD = 0.5;
|
||||
static CFStringRef kParameterDSCName = CFSTR("Top dB");
|
||||
static CFStringRef kParameterPANName = CFSTR("Pan");
|
||||
static CFStringRef kParameterFADName = CFSTR("Fader");
|
||||
//Discontinuity, Pan, Fader
|
||||
|
||||
enum {
|
||||
kParam_One =0,
|
||||
kParam_Two =1,
|
||||
kParam_Three =2,
|
||||
kParam_Four =3,
|
||||
kParam_Five =4,
|
||||
kParam_Six =5,
|
||||
kParam_Seven =6,
|
||||
kParam_Eight =7,
|
||||
kParam_HIP = 0,
|
||||
kParam_LOP = 1,
|
||||
kParam_AIR = 2,
|
||||
kParam_FIR = 3,
|
||||
kParam_STO = 4,
|
||||
kParam_RNG = 5,
|
||||
kParam_FCT = 6,
|
||||
kParam_SCT = 7,
|
||||
kParam_FCR = 8,
|
||||
kParam_SCR = 9,
|
||||
kParam_FCA = 10,
|
||||
kParam_SCA = 11,
|
||||
kParam_FCL = 12,
|
||||
kParam_SCL = 13,
|
||||
kParam_FGT = 14,
|
||||
kParam_SGT = 15,
|
||||
kParam_FGR = 16,
|
||||
kParam_SGR = 17,
|
||||
kParam_FGS = 18,
|
||||
kParam_SGS = 19,
|
||||
kParam_FGL = 20,
|
||||
kParam_SGL = 21,
|
||||
kParam_TRF = 22,
|
||||
kParam_TRG = 23,
|
||||
kParam_TRR = 24,
|
||||
kParam_HMF = 25,
|
||||
kParam_HMG = 26,
|
||||
kParam_HMR = 27,
|
||||
kParam_LMF = 28,
|
||||
kParam_LMG = 29,
|
||||
kParam_LMR = 30,
|
||||
kParam_BSF = 31,
|
||||
kParam_BSG = 32,
|
||||
kParam_BSR = 33,
|
||||
kParam_DSC = 34,
|
||||
kParam_PAN = 35,
|
||||
kParam_FAD = 36,
|
||||
//Add your parameters here...
|
||||
kNumberOfParameters=8
|
||||
kNumberOfParameters=37
|
||||
};
|
||||
const int dscBuf = 90;
|
||||
|
||||
|
|
@ -131,94 +220,76 @@ public:
|
|||
/*! @method Version */
|
||||
virtual ComponentResult Version() { return kConsoleXChannelVersion; }
|
||||
|
||||
private:
|
||||
private:
|
||||
|
||||
enum {
|
||||
biq_freq,
|
||||
biq_reso,
|
||||
biq_a0,
|
||||
biq_a1,
|
||||
biq_a2,
|
||||
biq_b1,
|
||||
biq_b2,
|
||||
biq_sL1,
|
||||
biq_sL2,
|
||||
biq_sR1,
|
||||
biq_sR2,
|
||||
biq_total
|
||||
hilp_freq, hilp_temp,
|
||||
hilp_a0, hilp_a1, hilp_b1, hilp_b2,
|
||||
hilp_c0, hilp_c1, hilp_d1, hilp_d2,
|
||||
hilp_e0, hilp_e1, hilp_f1, hilp_f2,
|
||||
hilp_aL1, hilp_aL2, hilp_aR1, hilp_aR2,
|
||||
hilp_cL1, hilp_cL2, hilp_cR1, hilp_cR2,
|
||||
hilp_eL1, hilp_eL2, hilp_eR1, hilp_eR2,
|
||||
hilp_total
|
||||
};
|
||||
double biquad[biq_total];
|
||||
double highpass[hilp_total];
|
||||
double lowpass[hilp_total];
|
||||
|
||||
enum {
|
||||
pvAL1,
|
||||
pvSL1,
|
||||
accSL1,
|
||||
acc2SL1,
|
||||
pvAL2,
|
||||
pvSL2,
|
||||
accSL2,
|
||||
acc2SL2,
|
||||
pvAL3,
|
||||
pvSL3,
|
||||
accSL3,
|
||||
pvAL4,
|
||||
pvSL4,
|
||||
gndavgL,
|
||||
outAL,
|
||||
gainAL,
|
||||
pvAR1,
|
||||
pvSR1,
|
||||
accSR1,
|
||||
acc2SR1,
|
||||
pvAR2,
|
||||
pvSR2,
|
||||
accSR2,
|
||||
acc2SR2,
|
||||
pvAR3,
|
||||
pvSR3,
|
||||
accSR3,
|
||||
pvAR4,
|
||||
pvSR4,
|
||||
gndavgR,
|
||||
outAR,
|
||||
gainAR,
|
||||
pvAL1, pvSL1, accSL1, acc2SL1,
|
||||
pvAL2, pvSL2, accSL2, acc2SL2,
|
||||
pvAL3, pvSL3, accSL3,
|
||||
pvAL4, pvSL4,
|
||||
gndavgL, outAL, gainAL,
|
||||
pvAR1, pvSR1, accSR1, acc2SR1,
|
||||
pvAR2, pvSR2, accSR2, acc2SR2,
|
||||
pvAR3, pvSR3, accSR3,
|
||||
pvAR4, pvSR4,
|
||||
gndavgR, outAR, gainAR,
|
||||
air_total
|
||||
};
|
||||
double air[air_total];
|
||||
|
||||
enum {
|
||||
prevSampL1,
|
||||
prevSlewL1,
|
||||
accSlewL1,
|
||||
prevSampL2,
|
||||
prevSlewL2,
|
||||
accSlewL2,
|
||||
prevSampL3,
|
||||
prevSlewL3,
|
||||
accSlewL3,
|
||||
kalGainL,
|
||||
kalOutL,
|
||||
prevSampR1,
|
||||
prevSlewR1,
|
||||
accSlewR1,
|
||||
prevSampR2,
|
||||
prevSlewR2,
|
||||
accSlewR2,
|
||||
prevSampR3,
|
||||
prevSlewR3,
|
||||
accSlewR3,
|
||||
kalGainR,
|
||||
kalOutR,
|
||||
prevSampL1, prevSlewL1, accSlewL1,
|
||||
prevSampL2, prevSlewL2, accSlewL2,
|
||||
prevSampL3, prevSlewL3, accSlewL3,
|
||||
kalGainL, kalOutL,
|
||||
prevSampR1, prevSlewR1, accSlewR1,
|
||||
prevSampR2, prevSlewR2, accSlewR2,
|
||||
prevSampR3, prevSlewR3, accSlewR3,
|
||||
kalGainR, kalOutR,
|
||||
kal_total
|
||||
};
|
||||
double kal[kal_total];
|
||||
double fireCompL;
|
||||
double fireCompR;
|
||||
double fireGate;
|
||||
double stoneCompL;
|
||||
double stoneCompR;
|
||||
double stoneGate;
|
||||
double airGainA;
|
||||
double airGainB;
|
||||
double fireGainA;
|
||||
double fireGainB;
|
||||
double stoneGainA;
|
||||
double stoneGainB;
|
||||
|
||||
double mpkL[2005];
|
||||
double mpkR[2005];
|
||||
double f[66];
|
||||
double prevfreqMPeak;
|
||||
double prevamountMPeak;
|
||||
int mpc;
|
||||
enum {
|
||||
biqs_freq, biqs_reso, biqs_level,
|
||||
biqs_nonlin, biqs_temp, biqs_dis,
|
||||
biqs_a0, biqs_a1, biqs_b1, biqs_b2,
|
||||
biqs_c0, biqs_c1, biqs_d1, biqs_d2,
|
||||
biqs_e0, biqs_e1, biqs_f1, biqs_f2,
|
||||
biqs_aL1, biqs_aL2, biqs_aR1, biqs_aR2,
|
||||
biqs_cL1, biqs_cL2, biqs_cR1, biqs_cR2,
|
||||
biqs_eL1, biqs_eL2, biqs_eR1, biqs_eR2,
|
||||
biqs_outL, biqs_outR, biqs_total
|
||||
};
|
||||
double high[biqs_total];
|
||||
double hmid[biqs_total];
|
||||
double lmid[biqs_total];
|
||||
double bass[biqs_total];
|
||||
|
||||
double dBaL[dscBuf+5];
|
||||
double dBaR[dscBuf+5];
|
||||
|
|
@ -227,14 +298,6 @@ public:
|
|||
int dBaXL;
|
||||
int dBaXR;
|
||||
|
||||
double trebleGainA;
|
||||
double trebleGainB;
|
||||
double midGainA;
|
||||
double midGainB;
|
||||
double mPeakA;
|
||||
double mPeakB;
|
||||
double bassGainA;
|
||||
double bassGainB;
|
||||
double panA;
|
||||
double panB;
|
||||
double inTrimA;
|
||||
|
|
|
|||
|
|
@ -49,31 +49,41 @@
|
|||
PBXFileDataSource_Warnings_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXPerProjectTemplateStateSaveDate = 733433484;
|
||||
PBXWorkspaceStateSaveDate = 733433484;
|
||||
PBXPerProjectTemplateStateSaveDate = 736198355;
|
||||
PBXWorkspaceStateSaveDate = 736198355;
|
||||
};
|
||||
perUserProjectItems = {
|
||||
8BFF25CE2BB7540000B6740F /* PBXTextBookmark */ = 8BFF25CE2BB7540000B6740F /* PBXTextBookmark */;
|
||||
8BFF25CF2BB7540000B6740F /* PBXBookmark */ = 8BFF25CF2BB7540000B6740F /* PBXBookmark */;
|
||||
8BFF25D02BB7540000B6740F /* PBXTextBookmark */ = 8BFF25D02BB7540000B6740F /* PBXTextBookmark */;
|
||||
8B3036552BE05713005401EF /* PBXTextBookmark */ = 8B3036552BE05713005401EF /* PBXTextBookmark */;
|
||||
8BCB29FA2BE17763001B6E66 /* PBXTextBookmark */ = 8BCB29FA2BE17763001B6E66 /* PBXTextBookmark */;
|
||||
8BCB2A212BE17F17001B6E66 /* PBXTextBookmark */ = 8BCB2A212BE17F17001B6E66 /* PBXTextBookmark */;
|
||||
};
|
||||
sourceControlManager = 8BD3CCB8148830B20062E48C /* Source Control */;
|
||||
userBuildSettings = {
|
||||
};
|
||||
};
|
||||
8B3036552BE05713005401EF /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* ConsoleXChannel.h */;
|
||||
name = "ConsoleXChannel.h: 271";
|
||||
rLen = 114;
|
||||
rLoc = 10449;
|
||||
rType = 0;
|
||||
vrLen = 94;
|
||||
vrLoc = 10449;
|
||||
};
|
||||
8BA05A660720730100365D66 /* ConsoleXChannel.cpp */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1344, 10386}}";
|
||||
sepNavSelRange = "{23821, 0}";
|
||||
sepNavVisRange = "{14223, 1897}";
|
||||
sepNavWindowFrame = "{{406, 38}, {1029, 840}}";
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1362, 19656}}";
|
||||
sepNavSelRange = "{59797, 770}";
|
||||
sepNavVisRange = "{55292, 2750}";
|
||||
sepNavWindowFrame = "{{632, 38}, {972, 840}}";
|
||||
};
|
||||
};
|
||||
8BA05A690720730100365D66 /* ConsoleXChannelVersion.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1056, 1062}}";
|
||||
sepNavIntBoundsRect = "{{0, 0}, {471, 1188}}";
|
||||
sepNavSelRange = "{2944, 4}";
|
||||
sepNavVisRange = "{868, 2143}";
|
||||
sepNavVisRange = "{2862, 140}";
|
||||
sepNavWindowFrame = "{{543, 38}, {897, 840}}";
|
||||
};
|
||||
};
|
||||
|
|
@ -86,12 +96,32 @@
|
|||
};
|
||||
8BC6025B073B072D006C4272 /* ConsoleXChannel.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {696, 4482}}";
|
||||
sepNavSelRange = "{3534, 0}";
|
||||
sepNavVisRange = "{3427, 167}";
|
||||
sepNavWindowFrame = "{{811, 38}, {897, 840}}";
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1056, 5130}}";
|
||||
sepNavSelRange = "{2954, 0}";
|
||||
sepNavVisRange = "{2056, 1688}";
|
||||
sepNavWindowFrame = "{{4, 38}, {876, 840}}";
|
||||
};
|
||||
};
|
||||
8BCB29FA2BE17763001B6E66 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A690720730100365D66 /* ConsoleXChannelVersion.h */;
|
||||
name = "ConsoleXChannelVersion.h: 54";
|
||||
rLen = 4;
|
||||
rLoc = 2944;
|
||||
rType = 0;
|
||||
vrLen = 192;
|
||||
vrLoc = 2810;
|
||||
};
|
||||
8BCB2A212BE17F17001B6E66 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A690720730100365D66 /* ConsoleXChannelVersion.h */;
|
||||
name = "ConsoleXChannelVersion.h: 54";
|
||||
rLen = 4;
|
||||
rLoc = 2944;
|
||||
rType = 0;
|
||||
vrLen = 140;
|
||||
vrLoc = 2862;
|
||||
};
|
||||
8BD3CCB8148830B20062E48C /* Source Control */ = {
|
||||
isa = PBXSourceControlManager;
|
||||
fallbackIsa = XCSourceControlManager;
|
||||
|
|
@ -106,30 +136,6 @@
|
|||
isa = PBXCodeSenseManager;
|
||||
indexTemplatePath = "";
|
||||
};
|
||||
8BFF25CE2BB7540000B6740F /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A660720730100365D66 /* ConsoleXChannel.cpp */;
|
||||
name = "ConsoleXChannel.cpp: 341";
|
||||
rLen = 0;
|
||||
rLoc = 15504;
|
||||
rType = 0;
|
||||
vrLen = 25;
|
||||
vrLoc = 50;
|
||||
};
|
||||
8BFF25CF2BB7540000B6740F /* PBXBookmark */ = {
|
||||
isa = PBXBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* ConsoleXChannel.h */;
|
||||
};
|
||||
8BFF25D02BB7540000B6740F /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* ConsoleXChannel.h */;
|
||||
name = "ConsoleXChannel.h: 70";
|
||||
rLen = 0;
|
||||
rLoc = 3534;
|
||||
rType = 0;
|
||||
vrLen = 167;
|
||||
vrLoc = 3427;
|
||||
};
|
||||
8D01CCC60486CAD60068D4B7 /* ConsoleXChannel */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@
|
|||
<real>235</real>
|
||||
</array>
|
||||
<key>RubberWindowFrame</key>
|
||||
<string>759 341 667 487 0 0 1440 878 </string>
|
||||
<string>773 299 667 487 0 0 1440 878 </string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>PBXSmartGroupTreeModule</string>
|
||||
|
|
@ -340,7 +340,7 @@
|
|||
<key>PBXProjectModuleGUID</key>
|
||||
<string>8BD12F472B89309E007C2EEC</string>
|
||||
<key>PBXProjectModuleLabel</key>
|
||||
<string>ConsoleXChannel.h</string>
|
||||
<string>ConsoleXChannelVersion.h</string>
|
||||
<key>PBXSplitModuleInNavigatorKey</key>
|
||||
<dict>
|
||||
<key>Split0</key>
|
||||
|
|
@ -348,15 +348,15 @@
|
|||
<key>PBXProjectModuleGUID</key>
|
||||
<string>8BD12F482B89309E007C2EEC</string>
|
||||
<key>PBXProjectModuleLabel</key>
|
||||
<string>ConsoleXChannel.h</string>
|
||||
<string>ConsoleXChannelVersion.h</string>
|
||||
<key>_historyCapacity</key>
|
||||
<integer>0</integer>
|
||||
<key>bookmark</key>
|
||||
<string>8BFF25D02BB7540000B6740F</string>
|
||||
<string>8BCB2A212BE17F17001B6E66</string>
|
||||
<key>history</key>
|
||||
<array>
|
||||
<string>8BFF25CE2BB7540000B6740F</string>
|
||||
<string>8BFF25CF2BB7540000B6740F</string>
|
||||
<string>8B3036552BE05713005401EF</string>
|
||||
<string>8BCB29FA2BE17763001B6E66</string>
|
||||
</array>
|
||||
</dict>
|
||||
<key>SplitCount</key>
|
||||
|
|
@ -370,18 +370,18 @@
|
|||
<key>GeometryConfiguration</key>
|
||||
<dict>
|
||||
<key>Frame</key>
|
||||
<string>{{0, 0}, {410, 69}}</string>
|
||||
<string>{{0, 0}, {410, 86}}</string>
|
||||
<key>RubberWindowFrame</key>
|
||||
<string>759 341 667 487 0 0 1440 878 </string>
|
||||
<string>773 299 667 487 0 0 1440 878 </string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>PBXNavigatorGroup</string>
|
||||
<key>Proportion</key>
|
||||
<string>69pt</string>
|
||||
<string>86pt</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Proportion</key>
|
||||
<string>372pt</string>
|
||||
<string>355pt</string>
|
||||
<key>Tabs</key>
|
||||
<array>
|
||||
<dict>
|
||||
|
|
@ -395,9 +395,9 @@
|
|||
<key>GeometryConfiguration</key>
|
||||
<dict>
|
||||
<key>Frame</key>
|
||||
<string>{{10, 27}, {410, 345}}</string>
|
||||
<string>{{10, 27}, {410, 328}}</string>
|
||||
<key>RubberWindowFrame</key>
|
||||
<string>759 341 667 487 0 0 1440 878 </string>
|
||||
<string>773 299 667 487 0 0 1440 878 </string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>XCDetailModule</string>
|
||||
|
|
@ -451,7 +451,7 @@
|
|||
<key>GeometryConfiguration</key>
|
||||
<dict>
|
||||
<key>Frame</key>
|
||||
<string>{{10, 27}, {410, 414}}</string>
|
||||
<string>{{10, 27}, {410, 282}}</string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>PBXBuildResultsModule</string>
|
||||
|
|
@ -479,11 +479,11 @@
|
|||
</array>
|
||||
<key>TableOfContents</key>
|
||||
<array>
|
||||
<string>8BFF25D12BB7540000B6740F</string>
|
||||
<string>8BCB2A222BE17F17001B6E66</string>
|
||||
<string>1CA23ED40692098700951B8B</string>
|
||||
<string>8BFF25D22BB7540000B6740F</string>
|
||||
<string>8BCB2A232BE17F17001B6E66</string>
|
||||
<string>8BD12F472B89309E007C2EEC</string>
|
||||
<string>8BFF25D32BB7540000B6740F</string>
|
||||
<string>8BCB2A242BE17F17001B6E66</string>
|
||||
<string>1CA23EDF0692099D00951B8B</string>
|
||||
<string>1CA23EE00692099D00951B8B</string>
|
||||
<string>1CA23EE10692099D00951B8B</string>
|
||||
|
|
@ -636,7 +636,7 @@
|
|||
<key>StatusbarIsVisible</key>
|
||||
<true/>
|
||||
<key>TimeStamp</key>
|
||||
<real>733434880.65089798</real>
|
||||
<real>736198423.42711902</real>
|
||||
<key>ToolbarConfigUserDefaultsMinorVersion</key>
|
||||
<string>2</string>
|
||||
<key>ToolbarDisplayMode</key>
|
||||
|
|
@ -653,10 +653,11 @@
|
|||
<integer>5</integer>
|
||||
<key>WindowOrderList</key>
|
||||
<array>
|
||||
<string>8BCB2A252BE17F17001B6E66</string>
|
||||
<string>/Users/christopherjohnson/Desktop/airwindows/plugins/MacAU/ConsoleXChannel/ConsoleXChannel.xcodeproj</string>
|
||||
</array>
|
||||
<key>WindowString</key>
|
||||
<string>759 341 667 487 0 0 1440 878 </string>
|
||||
<string>773 299 667 487 0 0 1440 878 </string>
|
||||
<key>WindowToolsV3</key>
|
||||
<array>
|
||||
<dict>
|
||||
|
|
|
|||
|
|
@ -1,257 +0,0 @@
|
|||
/*
|
||||
* File: ConsoleXSubIn.cpp
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 3/8/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
/*=============================================================================
|
||||
ConsoleXSubIn.cpp
|
||||
|
||||
=============================================================================*/
|
||||
#include "ConsoleXSubIn.h"
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
COMPONENT_ENTRY(ConsoleXSubIn)
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// ConsoleXSubIn::ConsoleXSubIn
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ConsoleXSubIn::ConsoleXSubIn(AudioUnit component)
|
||||
: AUEffectBase(component)
|
||||
{
|
||||
CreateElements();
|
||||
Globals()->UseIndexedParameters(kNumberOfParameters);
|
||||
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
mDebugDispatcher = new AUDebugDispatcher (this);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// ConsoleXSubIn::GetParameterValueStrings
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult ConsoleXSubIn::GetParameterValueStrings(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
CFArrayRef * outStrings)
|
||||
{
|
||||
|
||||
return kAudioUnitErr_InvalidProperty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// ConsoleXSubIn::GetParameterInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult ConsoleXSubIn::GetParameterInfo(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
AudioUnitParameterInfo &outParameterInfo )
|
||||
{
|
||||
ComponentResult result = noErr;
|
||||
|
||||
outParameterInfo.flags = kAudioUnitParameterFlag_IsWritable
|
||||
| kAudioUnitParameterFlag_IsReadable;
|
||||
|
||||
if (inScope == kAudioUnitScope_Global) {
|
||||
switch(inParameterID)
|
||||
{
|
||||
default:
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// ConsoleXSubIn::GetPropertyInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult ConsoleXSubIn::GetPropertyInfo (AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
UInt32 & outDataSize,
|
||||
Boolean & outWritable)
|
||||
{
|
||||
return AUEffectBase::GetPropertyInfo (inID, inScope, inElement, outDataSize, outWritable);
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// state that plugin supports only stereo-in/stereo-out processing
|
||||
UInt32 ConsoleXSubIn::SupportedNumChannels(const AUChannelInfo ** outInfo)
|
||||
{
|
||||
if (outInfo != NULL)
|
||||
{
|
||||
static AUChannelInfo info;
|
||||
info.inChannels = 2;
|
||||
info.outChannels = 2;
|
||||
*outInfo = &info;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// ConsoleXSubIn::GetProperty
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult ConsoleXSubIn::GetProperty( AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
void * outData )
|
||||
{
|
||||
return AUEffectBase::GetProperty (inID, inScope, inElement, outData);
|
||||
}
|
||||
|
||||
// ConsoleXSubIn::Initialize
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult ConsoleXSubIn::Initialize()
|
||||
{
|
||||
ComponentResult result = AUEffectBase::Initialize();
|
||||
if (result == noErr)
|
||||
Reset(kAudioUnitScope_Global, 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
#pragma mark ____ConsoleXSubInEffectKernel
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// ConsoleXSubIn::ConsoleXSubInKernel::Reset()
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult ConsoleXSubIn::Reset(AudioUnitScope inScope, AudioUnitElement inElement)
|
||||
{
|
||||
for (int x = 0; x < biq_total; x++) {biquad[x] = 0.0;}
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
return noErr;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// ConsoleXSubIn::ProcessBufferLists
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
OSStatus ConsoleXSubIn::ProcessBufferLists(AudioUnitRenderActionFlags & ioActionFlags,
|
||||
const AudioBufferList & inBuffer,
|
||||
AudioBufferList & outBuffer,
|
||||
UInt32 inFramesToProcess)
|
||||
{
|
||||
Float32 * inputL = (Float32*)(inBuffer.mBuffers[0].mData);
|
||||
Float32 * inputR = (Float32*)(inBuffer.mBuffers[1].mData);
|
||||
Float32 * outputL = (Float32*)(outBuffer.mBuffers[0].mData);
|
||||
Float32 * outputR = (Float32*)(outBuffer.mBuffers[1].mData);
|
||||
UInt32 nSampleFrames = inFramesToProcess;
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= GetSampleRate();
|
||||
|
||||
biquad[biq_freq] = 25000.0/GetSampleRate();
|
||||
biquad[biq_reso] = 0.60134489;
|
||||
double K = tan(M_PI * biquad[biq_freq]);
|
||||
double norm = 1.0 / (1.0 + K / biquad[biq_reso] + K * K);
|
||||
biquad[biq_a0] = K * K * norm;
|
||||
biquad[biq_a1] = 2.0 * biquad[biq_a0];
|
||||
biquad[biq_a2] = biquad[biq_a0];
|
||||
biquad[biq_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
biquad[biq_b2] = (1.0 - K / biquad[biq_reso] + K * K) * norm;
|
||||
//ultrasonic nonlinear filter
|
||||
|
||||
while (nSampleFrames-- > 0) {
|
||||
double inputSampleL = *inputL;
|
||||
double inputSampleR = *inputR;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (biquad[biq_freq] < 0.5) {
|
||||
double nlBiq = fabs(biquad[biq_a0]*(1.0+(inputSampleL*0.25))); if (nlBiq > 1.0) nlBiq = 1.0;
|
||||
double tmp = (inputSampleL * nlBiq) + biquad[biq_sL1];
|
||||
biquad[biq_sL1] = (inputSampleL * biquad[biq_a1]) - (tmp * biquad[biq_b1]) + biquad[biq_sL2];
|
||||
biquad[biq_sL2] = (inputSampleL * nlBiq) - (tmp * biquad[biq_b2]);
|
||||
inputSampleL = tmp;
|
||||
nlBiq = fabs(biquad[biq_a0]*(1.0+(inputSampleR*0.25))); if (nlBiq > 1.0) nlBiq = 1.0;
|
||||
tmp = (inputSampleR * nlBiq) + biquad[biq_sR1];
|
||||
biquad[biq_sR1] = (inputSampleR * biquad[biq_a1]) - (tmp * biquad[biq_b1]) + biquad[biq_sR2];
|
||||
biquad[biq_sR2] = (inputSampleR * nlBiq) - (tmp * biquad[biq_b2]);
|
||||
inputSampleR = tmp;
|
||||
//ultrasonic filter before anything else is done
|
||||
}
|
||||
|
||||
if (inputSampleL > 1.0) inputSampleL = 1.0;
|
||||
else if (inputSampleL > 0.0) inputSampleL = -expm1((log1p(-inputSampleL) * 0.6180339887498949));
|
||||
if (inputSampleL < -1.0) inputSampleL = -1.0;
|
||||
else if (inputSampleL < 0.0) inputSampleL = expm1((log1p(inputSampleL) * 0.6180339887498949));
|
||||
inputSampleL *= 1.6180339887498949;
|
||||
|
||||
if (inputSampleR > 1.0) inputSampleR = 1.0;
|
||||
else if (inputSampleR > 0.0) inputSampleR = -expm1((log1p(-inputSampleR) * 0.6180339887498949));
|
||||
if (inputSampleR < -1.0) inputSampleR = -1.0;
|
||||
else if (inputSampleR < 0.0) inputSampleR = expm1((log1p(inputSampleR) * 0.6180339887498949));
|
||||
inputSampleR *= 1.6180339887498949;
|
||||
//ConsoleXSubIn is purely a decode that is followed with encode on ConsoleXSubOut
|
||||
//It allows for another filtering stage for steep distributed ultrasonic filtering
|
||||
//but pointedly has no controls: it just has to be there, first on the submix
|
||||
|
||||
//begin 32 bit stereo floating point dither
|
||||
int expon; frexpf((float)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
frexpf((float)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit stereo floating point dither
|
||||
|
||||
*outputL = inputSampleL;
|
||||
*outputR = inputSampleR;
|
||||
//direct stereo out
|
||||
|
||||
inputL += 1;
|
||||
inputR += 1;
|
||||
outputL += 1;
|
||||
outputR += 1;
|
||||
}
|
||||
return noErr;
|
||||
}
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
_ConsoleXSubInEntry
|
||||
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
_ConsoleXSubOutEntry
|
||||
Binary file not shown.
304
plugins/MacAU/Distance3/Distance3.cpp
Executable file
304
plugins/MacAU/Distance3/Distance3.cpp
Executable file
|
|
@ -0,0 +1,304 @@
|
|||
/*
|
||||
* File: Distance3.cpp
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 2/23/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
/*=============================================================================
|
||||
Distance3.cpp
|
||||
|
||||
=============================================================================*/
|
||||
#include "Distance3.h"
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
COMPONENT_ENTRY(Distance3)
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Distance3::Distance3
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Distance3::Distance3(AudioUnit component)
|
||||
: AUEffectBase(component)
|
||||
{
|
||||
CreateElements();
|
||||
Globals()->UseIndexedParameters(kNumberOfParameters);
|
||||
SetParameter(kParam_One, kDefaultValue_ParamOne );
|
||||
SetParameter(kParam_Two, kDefaultValue_ParamTwo );
|
||||
SetParameter(kParam_Three, kDefaultValue_ParamThree );
|
||||
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
mDebugDispatcher = new AUDebugDispatcher (this);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Distance3::GetParameterValueStrings
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Distance3::GetParameterValueStrings(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
CFArrayRef * outStrings)
|
||||
{
|
||||
|
||||
return kAudioUnitErr_InvalidProperty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Distance3::GetParameterInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Distance3::GetParameterInfo(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
AudioUnitParameterInfo &outParameterInfo )
|
||||
{
|
||||
ComponentResult result = noErr;
|
||||
|
||||
outParameterInfo.flags = kAudioUnitParameterFlag_IsWritable
|
||||
| kAudioUnitParameterFlag_IsReadable;
|
||||
|
||||
if (inScope == kAudioUnitScope_Global) {
|
||||
switch(inParameterID)
|
||||
{
|
||||
case kParam_One:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterOneName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_CustomUnit;
|
||||
outParameterInfo.unitName = kParameterOneUnit;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 10.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamOne;
|
||||
break;
|
||||
case kParam_Two:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterTwoName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 70.0;
|
||||
outParameterInfo.maxValue = 140.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamTwo;
|
||||
break;
|
||||
case kParam_Three:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterThreeName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamThree;
|
||||
break;
|
||||
default:
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Distance3::GetPropertyInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Distance3::GetPropertyInfo (AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
UInt32 & outDataSize,
|
||||
Boolean & outWritable)
|
||||
{
|
||||
return AUEffectBase::GetPropertyInfo (inID, inScope, inElement, outDataSize, outWritable);
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Distance3::GetProperty
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Distance3::GetProperty( AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
void * outData )
|
||||
{
|
||||
return AUEffectBase::GetProperty (inID, inScope, inElement, outData);
|
||||
}
|
||||
|
||||
// Distance3::Initialize
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Distance3::Initialize()
|
||||
{
|
||||
ComponentResult result = AUEffectBase::Initialize();
|
||||
if (result == noErr)
|
||||
Reset(kAudioUnitScope_Global, 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
#pragma mark ____Distance3EffectKernel
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Distance3::Distance3Kernel::Reset()
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
void Distance3::Distance3Kernel::Reset()
|
||||
{
|
||||
prevresultAL = lastclampAL = clampAL = changeAL = lastAL = 0.0;
|
||||
prevresultBL = lastclampBL = clampBL = changeBL = lastBL = 0.0;
|
||||
prevresultCL = lastclampCL = clampCL = changeCL = lastCL = 0.0;
|
||||
|
||||
for(int count = 0; count < dscBuf+2; count++) {
|
||||
dBaL[count] = 0.0;
|
||||
dBbL[count] = 0.0;
|
||||
dBcL[count] = 0.0;
|
||||
}
|
||||
dBaPosL = 0.0;
|
||||
dBbPosL = 0.0;
|
||||
dBcPosL = 0.0;
|
||||
dBaXL = 1;
|
||||
dBbXL = 1;
|
||||
dBcXL = 1;
|
||||
|
||||
fpd = 1.0; while (fpd < 16386) fpd = rand()*UINT32_MAX;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Distance3::Distance3Kernel::Process
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
void Distance3::Distance3Kernel::Process( const Float32 *inSourceP,
|
||||
Float32 *inDestP,
|
||||
UInt32 inFramesToProcess,
|
||||
UInt32 inNumChannels,
|
||||
bool &ioSilence )
|
||||
{
|
||||
UInt32 nSampleFrames = inFramesToProcess;
|
||||
const Float32 *sourceP = inSourceP;
|
||||
Float32 *destP = inDestP;
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= GetSampleRate();
|
||||
|
||||
double softslew = (GetParameter( kParam_One )*10.0)+0.5;
|
||||
softslew *= overallscale;
|
||||
double outslew = softslew * (1.0-(GetParameter( kParam_One )*0.0333));
|
||||
double refdB = GetParameter( kParam_Two );
|
||||
double topdB = 0.000000075 * pow(10.0,refdB/20.0) * overallscale;
|
||||
double wet = GetParameter( kParam_Three );
|
||||
|
||||
while (nSampleFrames-- > 0) {
|
||||
double inputSampleL = *sourceP;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpd * 1.18e-17;
|
||||
double drySampleL = inputSampleL;
|
||||
|
||||
inputSampleL *= softslew;
|
||||
lastclampAL = clampAL; clampAL = inputSampleL - lastAL;
|
||||
double postfilter = changeAL = fabs(clampAL - lastclampAL);
|
||||
postfilter += (softslew / 2.0);
|
||||
inputSampleL /= outslew;
|
||||
inputSampleL += (prevresultAL * postfilter);
|
||||
inputSampleL /= (postfilter + 1.0);
|
||||
prevresultAL = inputSampleL;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleL *= topdB;
|
||||
if (inputSampleL < -0.222) inputSampleL = -0.222; if (inputSampleL > 0.222) inputSampleL = 0.222;
|
||||
//Air Discontinuity A begin
|
||||
dBaL[dBaXL] = inputSampleL; dBaPosL *= 0.5; dBaPosL += fabs((inputSampleL*((inputSampleL*0.25)-0.5))*0.5);
|
||||
int dBdly = floor(dBaPosL*dscBuf);
|
||||
double dBi = (dBaPosL*dscBuf)-dBdly;
|
||||
inputSampleL = dBaL[dBaXL-dBdly +((dBaXL-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleL += dBaL[dBaXL-dBdly +((dBaXL-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBaXL++; if (dBaXL < 0 || dBaXL >= dscBuf) dBaXL = 0;
|
||||
//Air Discontinuity A end
|
||||
inputSampleL /= topdB;
|
||||
|
||||
inputSampleL *= softslew;
|
||||
lastclampBL = clampBL; clampBL = inputSampleL - lastBL;
|
||||
postfilter = changeBL = fabs(clampBL - lastclampBL);
|
||||
postfilter += (softslew / 2.0);
|
||||
lastBL = inputSampleL;
|
||||
inputSampleL /= outslew;
|
||||
inputSampleL += (prevresultBL * postfilter);
|
||||
inputSampleL /= (postfilter + 1.0);
|
||||
prevresultBL = inputSampleL;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleL *= topdB;
|
||||
if (inputSampleL < -0.222) inputSampleL = -0.222; if (inputSampleL > 0.222) inputSampleL = 0.222;
|
||||
//Air Discontinuity B begin
|
||||
dBbL[dBbXL] = inputSampleL; dBbPosL *= 0.5; dBbPosL += fabs((inputSampleL*((inputSampleL*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBbPosL*dscBuf); dBi = (dBbPosL*dscBuf)-dBdly;
|
||||
inputSampleL = dBbL[dBbXL-dBdly +((dBbXL-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleL += dBbL[dBbXL-dBdly +((dBbXL-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBbXL++; if (dBbXL < 0 || dBbXL >= dscBuf) dBbXL = 0;
|
||||
//Air Discontinuity B end
|
||||
inputSampleL /= topdB;
|
||||
|
||||
inputSampleL *= softslew;
|
||||
lastclampCL = clampCL; clampCL = inputSampleL - lastCL;
|
||||
postfilter = changeCL = fabs(clampCL - lastclampCL);
|
||||
postfilter += (softslew / 2.0);
|
||||
lastCL = inputSampleL;
|
||||
inputSampleL /= softslew; //don't boost the final time!
|
||||
inputSampleL += (prevresultCL * postfilter);
|
||||
inputSampleL /= (postfilter + 1.0);
|
||||
prevresultCL = inputSampleL;
|
||||
//do an IIR like thing to further squish superdistant stuff
|
||||
|
||||
inputSampleL *= topdB;
|
||||
if (inputSampleL < -0.222) inputSampleL = -0.222; if (inputSampleL > 0.222) inputSampleL = 0.222;
|
||||
//Air Discontinuity C begin
|
||||
dBcL[dBcXL] = inputSampleL; dBcPosL *= 0.5; dBcPosL += fabs((inputSampleL*((inputSampleL*0.25)-0.5))*0.5);
|
||||
dBdly = floor(dBcPosL*dscBuf); dBi = (dBcPosL*dscBuf)-dBdly;
|
||||
inputSampleL = dBcL[dBcXL-dBdly +((dBcXL-dBdly < 0)?dscBuf:0)]*(1.0-dBi);
|
||||
dBdly++; inputSampleL += dBcL[dBcXL-dBdly +((dBcXL-dBdly < 0)?dscBuf:0)]*dBi;
|
||||
dBcXL++; if (dBcXL < 0 || dBcXL >= dscBuf) dBcXL = 0;
|
||||
//Air Discontinuity C end
|
||||
inputSampleL /= topdB;
|
||||
|
||||
if (wet < 1.0) inputSampleL = (drySampleL * (1.0-wet))+(inputSampleL*wet);
|
||||
|
||||
//begin 32 bit floating point dither
|
||||
int expon; frexpf((float)inputSampleL, &expon);
|
||||
fpd ^= fpd << 13; fpd ^= fpd >> 17; fpd ^= fpd << 5;
|
||||
inputSampleL += ((double(fpd)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit floating point dither
|
||||
|
||||
*destP = inputSampleL;
|
||||
|
||||
sourceP += inNumChannels; destP += inNumChannels;
|
||||
}
|
||||
}
|
||||
|
||||
1
plugins/MacAU/Distance3/Distance3.exp
Executable file
1
plugins/MacAU/Distance3/Distance3.exp
Executable file
|
|
@ -0,0 +1 @@
|
|||
_Distance3Entry
|
||||
176
plugins/MacAU/Distance3/Distance3.h
Executable file
176
plugins/MacAU/Distance3/Distance3.h
Executable file
|
|
@ -0,0 +1,176 @@
|
|||
/*
|
||||
* File: Distance3.h
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 2/23/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
#include "AUEffectBase.h"
|
||||
#include "Distance3Version.h"
|
||||
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
#include "AUDebugDispatcher.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef __Distance3_h__
|
||||
#define __Distance3_h__
|
||||
|
||||
|
||||
#pragma mark ____Distance3 Parameters
|
||||
|
||||
// parameters
|
||||
static const float kDefaultValue_ParamOne = 0.5;
|
||||
static const float kDefaultValue_ParamTwo = 100.0;
|
||||
static const float kDefaultValue_ParamThree = 1.0;
|
||||
|
||||
static CFStringRef kParameterOneName = CFSTR("Distance");
|
||||
static CFStringRef kParameterOneUnit = CFSTR("miles");
|
||||
static CFStringRef kParameterTwoName = CFSTR("Top dB");
|
||||
static CFStringRef kParameterThreeName = CFSTR("Dry/Wet");
|
||||
|
||||
enum {
|
||||
kParam_One =0,
|
||||
kParam_Two =1,
|
||||
kParam_Three =2,
|
||||
//Add your parameters here...
|
||||
kNumberOfParameters=3
|
||||
};
|
||||
|
||||
const int dscBuf = 90;
|
||||
|
||||
|
||||
#pragma mark ____Distance3
|
||||
class Distance3 : public AUEffectBase
|
||||
{
|
||||
public:
|
||||
Distance3(AudioUnit component);
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
virtual ~Distance3 () { delete mDebugDispatcher; }
|
||||
#endif
|
||||
|
||||
virtual AUKernelBase * NewKernel() { return new Distance3Kernel(this); }
|
||||
|
||||
virtual ComponentResult GetParameterValueStrings(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
CFArrayRef * outStrings);
|
||||
|
||||
virtual ComponentResult GetParameterInfo(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
AudioUnitParameterInfo &outParameterInfo);
|
||||
|
||||
virtual ComponentResult GetPropertyInfo(AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
UInt32 & outDataSize,
|
||||
Boolean & outWritable );
|
||||
|
||||
virtual ComponentResult GetProperty(AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
void * outData);
|
||||
|
||||
virtual ComponentResult Initialize();
|
||||
virtual bool SupportsTail () { return true; }
|
||||
virtual Float64 GetTailTime() {return (1.0/GetSampleRate())*0.0;} //in SECONDS! gsr * a number = in samples
|
||||
virtual Float64 GetLatency() {return (1.0/GetSampleRate())*0.0;} // in SECONDS! gsr * a number = in samples
|
||||
|
||||
/*! @method Version */
|
||||
virtual ComponentResult Version() { return kDistance3Version; }
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
class Distance3Kernel : public AUKernelBase // most of the real work happens here
|
||||
{
|
||||
public:
|
||||
Distance3Kernel(AUEffectBase *inAudioUnit )
|
||||
: AUKernelBase(inAudioUnit)
|
||||
{
|
||||
}
|
||||
|
||||
// *Required* overides for the process method for this effect
|
||||
// processes one channel of interleaved samples
|
||||
virtual void Process( const Float32 *inSourceP,
|
||||
Float32 *inDestP,
|
||||
UInt32 inFramesToProcess,
|
||||
UInt32 inNumChannels,
|
||||
bool &ioSilence);
|
||||
|
||||
virtual void Reset();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
double lastclampAL;
|
||||
double clampAL;
|
||||
double changeAL;
|
||||
double prevresultAL;
|
||||
double lastAL;
|
||||
|
||||
double lastclampBL;
|
||||
double clampBL;
|
||||
double changeBL;
|
||||
double prevresultBL;
|
||||
double lastBL;
|
||||
|
||||
double lastclampCL;
|
||||
double clampCL;
|
||||
double changeCL;
|
||||
double prevresultCL;
|
||||
double lastCL;
|
||||
|
||||
double dBaL[dscBuf+5];
|
||||
double dBaPosL;
|
||||
int dBaXL;
|
||||
|
||||
double dBbL[dscBuf+5];
|
||||
double dBbPosL;
|
||||
int dBbXL;
|
||||
|
||||
double dBcL[dscBuf+5];
|
||||
double dBcPosL;
|
||||
int dBcXL;
|
||||
|
||||
uint32_t fpd;
|
||||
};
|
||||
};
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
#endif
|
||||
61
plugins/MacAU/Distance3/Distance3.r
Executable file
61
plugins/MacAU/Distance3/Distance3.r
Executable file
|
|
@ -0,0 +1,61 @@
|
|||
/*
|
||||
* File: Distance3.r
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 2/23/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
#include <AudioUnit/AudioUnit.r>
|
||||
|
||||
#include "Distance3Version.h"
|
||||
|
||||
// Note that resource IDs must be spaced 2 apart for the 'STR ' name and description
|
||||
#define kAudioUnitResID_Distance3 1000
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Distance3~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
#define RES_ID kAudioUnitResID_Distance3
|
||||
#define COMP_TYPE kAudioUnitType_Effect
|
||||
#define COMP_SUBTYPE Distance3_COMP_SUBTYPE
|
||||
#define COMP_MANUF Distance3_COMP_MANF
|
||||
|
||||
#define VERSION kDistance3Version
|
||||
#define NAME "Airwindows: Distance3"
|
||||
#define DESCRIPTION "Distance3 AU"
|
||||
#define ENTRY_POINT "Distance3Entry"
|
||||
|
||||
#include "AUResources.r"
|
||||
1358
plugins/MacAU/Distance3/Distance3.xcodeproj/christopherjohnson.mode1v3
Executable file
1358
plugins/MacAU/Distance3/Distance3.xcodeproj/christopherjohnson.mode1v3
Executable file
File diff suppressed because it is too large
Load diff
148
plugins/MacAU/Distance3/Distance3.xcodeproj/christopherjohnson.pbxuser
Executable file
148
plugins/MacAU/Distance3/Distance3.xcodeproj/christopherjohnson.pbxuser
Executable file
|
|
@ -0,0 +1,148 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
089C1669FE841209C02AAC07 /* Project object */ = {
|
||||
activeBuildConfigurationName = Release;
|
||||
activeTarget = 8D01CCC60486CAD60068D4B7 /* Distance3 */;
|
||||
codeSenseManager = 8BD3CCB9148830B20062E48C /* Code sense */;
|
||||
perUserDictionary = {
|
||||
PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
20,
|
||||
292,
|
||||
20,
|
||||
48,
|
||||
43,
|
||||
43,
|
||||
20,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXFileDataSource_FiletypeID,
|
||||
PBXFileDataSource_Filename_ColumnID,
|
||||
PBXFileDataSource_Built_ColumnID,
|
||||
PBXFileDataSource_ObjectSize_ColumnID,
|
||||
PBXFileDataSource_Errors_ColumnID,
|
||||
PBXFileDataSource_Warnings_ColumnID,
|
||||
PBXFileDataSource_Target_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
20,
|
||||
252,
|
||||
60,
|
||||
20,
|
||||
48,
|
||||
43,
|
||||
43,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXFileDataSource_FiletypeID,
|
||||
PBXFileDataSource_Filename_ColumnID,
|
||||
PBXTargetDataSource_PrimaryAttribute,
|
||||
PBXFileDataSource_Built_ColumnID,
|
||||
PBXFileDataSource_ObjectSize_ColumnID,
|
||||
PBXFileDataSource_Errors_ColumnID,
|
||||
PBXFileDataSource_Warnings_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXPerProjectTemplateStateSaveDate = 736188587;
|
||||
PBXWorkspaceStateSaveDate = 736188587;
|
||||
};
|
||||
perUserProjectItems = {
|
||||
8B4000192BE1598000DB7E7A /* PBXTextBookmark */ = 8B4000192BE1598000DB7E7A /* PBXTextBookmark */;
|
||||
8B40001A2BE1598000DB7E7A /* PBXTextBookmark */ = 8B40001A2BE1598000DB7E7A /* PBXTextBookmark */;
|
||||
8B61B4862B9A4FB600B45CE1 /* PBXTextBookmark */ = 8B61B4862B9A4FB600B45CE1 /* PBXTextBookmark */;
|
||||
8BD12F122B8929DF007C2EEC /* PlistBookmark */ = 8BD12F122B8929DF007C2EEC /* PlistBookmark */;
|
||||
};
|
||||
sourceControlManager = 8BD3CCB8148830B20062E48C /* Source Control */;
|
||||
userBuildSettings = {
|
||||
};
|
||||
};
|
||||
8B4000192BE1598000DB7E7A /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A660720730100365D66 /* Distance3.cpp */;
|
||||
name = "Distance3.cpp: 217";
|
||||
rLen = 0;
|
||||
rLoc = 9655;
|
||||
rType = 0;
|
||||
vrLen = 144;
|
||||
vrLoc = 0;
|
||||
};
|
||||
8B40001A2BE1598000DB7E7A /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A660720730100365D66 /* Distance3.cpp */;
|
||||
name = "Distance3.cpp: 217";
|
||||
rLen = 0;
|
||||
rLoc = 9655;
|
||||
rType = 0;
|
||||
vrLen = 144;
|
||||
vrLoc = 0;
|
||||
};
|
||||
8B61B4862B9A4FB600B45CE1 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* Distance3.h */;
|
||||
name = "Distance3.h: 72";
|
||||
rLen = 0;
|
||||
rLoc = 3209;
|
||||
rType = 0;
|
||||
vrLen = 555;
|
||||
vrLoc = 3283;
|
||||
};
|
||||
8BA05A660720730100365D66 /* Distance3.cpp */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1029, 5562}}";
|
||||
sepNavSelRange = "{9655, 0}";
|
||||
sepNavVisRange = "{0, 144}";
|
||||
sepNavWindowFrame = "{{543, 38}, {897, 840}}";
|
||||
};
|
||||
};
|
||||
8BA05A690720730100365D66 /* Distance3Version.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1056, 1062}}";
|
||||
sepNavSelRange = "{2902, 4}";
|
||||
sepNavVisRange = "{967, 2002}";
|
||||
sepNavWindowFrame = "{{661, 38}, {897, 840}}";
|
||||
};
|
||||
};
|
||||
8BC6025B073B072D006C4272 /* Distance3.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1146, 3168}}";
|
||||
sepNavSelRange = "{5353, 480}";
|
||||
sepNavVisRange = "{4266, 1169}";
|
||||
sepNavWindowFrame = "{{767, 38}, {897, 840}}";
|
||||
};
|
||||
};
|
||||
8BD12F122B8929DF007C2EEC /* PlistBookmark */ = {
|
||||
isa = PlistBookmark;
|
||||
fRef = 8D01CCD10486CAD60068D4B7 /* Info.plist */;
|
||||
fallbackIsa = PBXBookmark;
|
||||
isK = 0;
|
||||
kPath = (
|
||||
CFBundleName,
|
||||
);
|
||||
name = /Users/christopherjohnson/Desktop/Distance3/Info.plist;
|
||||
rLen = 0;
|
||||
rLoc = 9223372036854775808;
|
||||
};
|
||||
8BD3CCB8148830B20062E48C /* Source Control */ = {
|
||||
isa = PBXSourceControlManager;
|
||||
fallbackIsa = XCSourceControlManager;
|
||||
isSCMEnabled = 0;
|
||||
scmConfiguration = {
|
||||
repositoryNamesForRoots = {
|
||||
"" = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
8BD3CCB9148830B20062E48C /* Code sense */ = {
|
||||
isa = PBXCodeSenseManager;
|
||||
indexTemplatePath = "";
|
||||
};
|
||||
8D01CCC60486CAD60068D4B7 /* Distance3 */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
}
|
||||
1508
plugins/MacAU/Distance3/Distance3.xcodeproj/christopherjohnson.perspectivev3
Executable file
1508
plugins/MacAU/Distance3/Distance3.xcodeproj/christopherjohnson.perspectivev3
Executable file
File diff suppressed because it is too large
Load diff
|
|
@ -10,9 +10,9 @@
|
|||
3EEA126E089847F5002C6BFC /* CAVectorUnit.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3EEA126B089847F5002C6BFC /* CAVectorUnit.cpp */; };
|
||||
3EEA126F089847F5002C6BFC /* CAVectorUnit.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EEA126C089847F5002C6BFC /* CAVectorUnit.h */; };
|
||||
3EEA1270089847F5002C6BFC /* CAVectorUnitTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EEA126D089847F5002C6BFC /* CAVectorUnitTypes.h */; };
|
||||
8B4119B70749654200361ABE /* ConsoleXSubOut.r in Rez */ = {isa = PBXBuildFile; fileRef = 8BA05A680720730100365D66 /* ConsoleXSubOut.r */; };
|
||||
8BA05A6B0720730100365D66 /* ConsoleXSubOut.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A660720730100365D66 /* ConsoleXSubOut.cpp */; };
|
||||
8BA05A6E0720730100365D66 /* ConsoleXSubOutVersion.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A690720730100365D66 /* ConsoleXSubOutVersion.h */; };
|
||||
8B4119B70749654200361ABE /* Distance3.r in Rez */ = {isa = PBXBuildFile; fileRef = 8BA05A680720730100365D66 /* Distance3.r */; };
|
||||
8BA05A6B0720730100365D66 /* Distance3.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A660720730100365D66 /* Distance3.cpp */; };
|
||||
8BA05A6E0720730100365D66 /* Distance3Version.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A690720730100365D66 /* Distance3Version.h */; };
|
||||
8BA05AAE072073D300365D66 /* AUBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A7F072073D200365D66 /* AUBase.cpp */; };
|
||||
8BA05AAF072073D300365D66 /* AUBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A80072073D200365D66 /* AUBase.h */; };
|
||||
8BA05AB0072073D300365D66 /* AUDispatch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A81072073D200365D66 /* AUDispatch.cpp */; };
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
8BA05B02072074F900365D66 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BA05B01072074F900365D66 /* CoreServices.framework */; };
|
||||
8BA05B070720754400365D66 /* CAAUParameter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05B050720754400365D66 /* CAAUParameter.cpp */; };
|
||||
8BA05B080720754400365D66 /* CAAUParameter.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05B060720754400365D66 /* CAAUParameter.h */; };
|
||||
8BC6025C073B072D006C4272 /* ConsoleXSubOut.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BC6025B073B072D006C4272 /* ConsoleXSubOut.h */; };
|
||||
8BC6025C073B072D006C4272 /* Distance3.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BC6025B073B072D006C4272 /* Distance3.h */; };
|
||||
8D01CCCA0486CAD60068D4B7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; };
|
||||
F7C347F00ECE5AF8008ADFB6 /* AUBaseHelper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F7C347EE0ECE5AF8008ADFB6 /* AUBaseHelper.cpp */; };
|
||||
F7C347F10ECE5AF8008ADFB6 /* AUBaseHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = F7C347EF0ECE5AF8008ADFB6 /* AUBaseHelper.h */; };
|
||||
|
|
@ -57,10 +57,10 @@
|
|||
3EEA126C089847F5002C6BFC /* CAVectorUnit.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAVectorUnit.h; sourceTree = "<group>"; };
|
||||
3EEA126D089847F5002C6BFC /* CAVectorUnitTypes.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAVectorUnitTypes.h; sourceTree = "<group>"; };
|
||||
8B5C7FBF076FB2C200A15F61 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = "<absolute>"; };
|
||||
8BA05A660720730100365D66 /* ConsoleXSubOut.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = ConsoleXSubOut.cpp; sourceTree = "<group>"; };
|
||||
8BA05A670720730100365D66 /* ConsoleXSubOut.exp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.exports; path = ConsoleXSubOut.exp; sourceTree = "<group>"; };
|
||||
8BA05A680720730100365D66 /* ConsoleXSubOut.r */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.rez; path = ConsoleXSubOut.r; sourceTree = "<group>"; };
|
||||
8BA05A690720730100365D66 /* ConsoleXSubOutVersion.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ConsoleXSubOutVersion.h; sourceTree = "<group>"; };
|
||||
8BA05A660720730100365D66 /* Distance3.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Distance3.cpp; sourceTree = "<group>"; };
|
||||
8BA05A670720730100365D66 /* Distance3.exp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.exports; path = Distance3.exp; sourceTree = "<group>"; };
|
||||
8BA05A680720730100365D66 /* Distance3.r */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.rez; path = Distance3.r; sourceTree = "<group>"; };
|
||||
8BA05A690720730100365D66 /* Distance3Version.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = Distance3Version.h; sourceTree = "<group>"; };
|
||||
8BA05A7F072073D200365D66 /* AUBase.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUBase.cpp; sourceTree = "<group>"; };
|
||||
8BA05A80072073D200365D66 /* AUBase.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUBase.h; sourceTree = "<group>"; };
|
||||
8BA05A81072073D200365D66 /* AUDispatch.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUDispatch.cpp; sourceTree = "<group>"; };
|
||||
|
|
@ -94,9 +94,9 @@
|
|||
8BA05B01072074F900365D66 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = "<absolute>"; };
|
||||
8BA05B050720754400365D66 /* CAAUParameter.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAAUParameter.cpp; sourceTree = "<group>"; };
|
||||
8BA05B060720754400365D66 /* CAAUParameter.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAAUParameter.h; sourceTree = "<group>"; };
|
||||
8BC6025B073B072D006C4272 /* ConsoleXSubOut.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ConsoleXSubOut.h; sourceTree = "<group>"; };
|
||||
8BC6025B073B072D006C4272 /* Distance3.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = Distance3.h; sourceTree = "<group>"; };
|
||||
8D01CCD10486CAD60068D4B7 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
|
||||
8D01CCD20486CAD60068D4B7 /* ConsoleXSubOut.component */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ConsoleXSubOut.component; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
8D01CCD20486CAD60068D4B7 /* Distance3.component */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Distance3.component; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
F7C347EE0ECE5AF8008ADFB6 /* AUBaseHelper.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AUBaseHelper.cpp; path = Extras/CoreAudio/AudioUnits/AUPublic/Utility/AUBaseHelper.cpp; sourceTree = SYSTEM_DEVELOPER_DIR; };
|
||||
F7C347EF0ECE5AF8008ADFB6 /* AUBaseHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AUBaseHelper.h; path = Extras/CoreAudio/AudioUnits/AUPublic/Utility/AUBaseHelper.h; sourceTree = SYSTEM_DEVELOPER_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
|
|
@ -115,7 +115,7 @@
|
|||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
089C166AFE841209C02AAC07 /* ConsoleXSubOut */ = {
|
||||
089C166AFE841209C02AAC07 /* Distance3 */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
08FB77ADFE841716C02AAC07 /* Source */,
|
||||
|
|
@ -123,7 +123,7 @@
|
|||
089C1671FE841209C02AAC07 /* External Frameworks and Libraries */,
|
||||
19C28FB4FE9D528D11CA2CBB /* Products */,
|
||||
);
|
||||
name = ConsoleXSubOut;
|
||||
name = Distance3;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
089C1671FE841209C02AAC07 /* External Frameworks and Libraries */ = {
|
||||
|
|
@ -159,7 +159,7 @@
|
|||
19C28FB4FE9D528D11CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8D01CCD20486CAD60068D4B7 /* ConsoleXSubOut.component */,
|
||||
8D01CCD20486CAD60068D4B7 /* Distance3.component */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
|
|
@ -167,11 +167,11 @@
|
|||
8BA05A56072072A900365D66 /* AU Source */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BC6025B073B072D006C4272 /* ConsoleXSubOut.h */,
|
||||
8BA05A660720730100365D66 /* ConsoleXSubOut.cpp */,
|
||||
8BA05A670720730100365D66 /* ConsoleXSubOut.exp */,
|
||||
8BA05A680720730100365D66 /* ConsoleXSubOut.r */,
|
||||
8BA05A690720730100365D66 /* ConsoleXSubOutVersion.h */,
|
||||
8BC6025B073B072D006C4272 /* Distance3.h */,
|
||||
8BA05A660720730100365D66 /* Distance3.cpp */,
|
||||
8BA05A670720730100365D66 /* Distance3.exp */,
|
||||
8BA05A680720730100365D66 /* Distance3.r */,
|
||||
8BA05A690720730100365D66 /* Distance3Version.h */,
|
||||
);
|
||||
name = "AU Source";
|
||||
sourceTree = "<group>";
|
||||
|
|
@ -258,7 +258,7 @@
|
|||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8BA05A6E0720730100365D66 /* ConsoleXSubOutVersion.h in Headers */,
|
||||
8BA05A6E0720730100365D66 /* Distance3Version.h in Headers */,
|
||||
8BA05AAF072073D300365D66 /* AUBase.h in Headers */,
|
||||
8BA05AB1072073D300365D66 /* AUDispatch.h in Headers */,
|
||||
8BA05AB3072073D300365D66 /* AUInputElement.h in Headers */,
|
||||
|
|
@ -275,7 +275,7 @@
|
|||
8BA05AE80720742100365D66 /* CAMutex.h in Headers */,
|
||||
8BA05AEA0720742100365D66 /* CAStreamBasicDescription.h in Headers */,
|
||||
8BA05B080720754400365D66 /* CAAUParameter.h in Headers */,
|
||||
8BC6025C073B072D006C4272 /* ConsoleXSubOut.h in Headers */,
|
||||
8BC6025C073B072D006C4272 /* Distance3.h in Headers */,
|
||||
3EEA126F089847F5002C6BFC /* CAVectorUnit.h in Headers */,
|
||||
3EEA1270089847F5002C6BFC /* CAVectorUnitTypes.h in Headers */,
|
||||
F7C347F10ECE5AF8008ADFB6 /* AUBaseHelper.h in Headers */,
|
||||
|
|
@ -285,9 +285,9 @@
|
|||
/* End PBXHeadersBuildPhase section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8D01CCC60486CAD60068D4B7 /* ConsoleXSubOut */ = {
|
||||
8D01CCC60486CAD60068D4B7 /* Distance3 */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 3E4BA243089833B7007656EC /* Build configuration list for PBXNativeTarget "ConsoleXSubOut" */;
|
||||
buildConfigurationList = 3E4BA243089833B7007656EC /* Build configuration list for PBXNativeTarget "Distance3" */;
|
||||
buildPhases = (
|
||||
8D01CCC70486CAD60068D4B7 /* Headers */,
|
||||
8D01CCC90486CAD60068D4B7 /* Resources */,
|
||||
|
|
@ -299,10 +299,10 @@
|
|||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = ConsoleXSubOut;
|
||||
name = Distance3;
|
||||
productInstallPath = "$(HOME)/Library/Bundles";
|
||||
productName = ConsoleXSubOut;
|
||||
productReference = 8D01CCD20486CAD60068D4B7 /* ConsoleXSubOut.component */;
|
||||
productName = Distance3;
|
||||
productReference = 8D01CCD20486CAD60068D4B7 /* Distance3.component */;
|
||||
productType = "com.apple.product-type.bundle";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
|
@ -310,7 +310,7 @@
|
|||
/* Begin PBXProject section */
|
||||
089C1669FE841209C02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 3E4BA247089833B7007656EC /* Build configuration list for PBXProject "ConsoleXSubOut" */;
|
||||
buildConfigurationList = 3E4BA247089833B7007656EC /* Build configuration list for PBXProject "Distance3" */;
|
||||
compatibilityVersion = "Xcode 3.1";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 1;
|
||||
|
|
@ -320,11 +320,11 @@
|
|||
French,
|
||||
German,
|
||||
);
|
||||
mainGroup = 089C166AFE841209C02AAC07 /* ConsoleXSubOut */;
|
||||
mainGroup = 089C166AFE841209C02AAC07 /* Distance3 */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
8D01CCC60486CAD60068D4B7 /* ConsoleXSubOut */,
|
||||
8D01CCC60486CAD60068D4B7 /* Distance3 */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
|
@ -345,7 +345,7 @@
|
|||
isa = PBXRezBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8B4119B70749654200361ABE /* ConsoleXSubOut.r in Rez */,
|
||||
8B4119B70749654200361ABE /* Distance3.r in Rez */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
@ -356,7 +356,7 @@
|
|||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8BA05A6B0720730100365D66 /* ConsoleXSubOut.cpp in Sources */,
|
||||
8BA05A6B0720730100365D66 /* Distance3.cpp in Sources */,
|
||||
8BA05AAE072073D300365D66 /* AUBase.cpp in Sources */,
|
||||
8BA05AB0072073D300365D66 /* AUDispatch.cpp in Sources */,
|
||||
8BA05AB2072073D300365D66 /* AUInputElement.cpp in Sources */,
|
||||
|
|
@ -392,7 +392,7 @@
|
|||
3E4BA244089833B7007656EC /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
EXPORTED_SYMBOLS_FILE = ConsoleXSubOut.exp;
|
||||
EXPORTED_SYMBOLS_FILE = Distance3.exp;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GENERATE_PKGINFO_FILE = YES;
|
||||
|
|
@ -401,7 +401,7 @@
|
|||
LIBRARY_STYLE = Bundle;
|
||||
OTHER_LDFLAGS = "-bundle";
|
||||
OTHER_REZFLAGS = "-d ppc_$ppc -d i386_$i386 -d ppc64_$ppc64 -d x86_64_$x86_64 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I \"$(DEVELOPER_DIR)/Examples/CoreAudio/AudioUnits/AUPublic/AUBase\"";
|
||||
PRODUCT_NAME = ConsoleXSubOut;
|
||||
PRODUCT_NAME = Distance3;
|
||||
WRAPPER_EXTENSION = component;
|
||||
};
|
||||
name = Debug;
|
||||
|
|
@ -414,7 +414,7 @@
|
|||
i386,
|
||||
x86_64,
|
||||
);
|
||||
EXPORTED_SYMBOLS_FILE = ConsoleXSubOut.exp;
|
||||
EXPORTED_SYMBOLS_FILE = Distance3.exp;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GENERATE_PKGINFO_FILE = YES;
|
||||
|
|
@ -424,7 +424,7 @@
|
|||
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
||||
OTHER_LDFLAGS = "-bundle";
|
||||
OTHER_REZFLAGS = "-d ppc_$ppc -d i386_$i386 -d x86_64_$x86_64 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I \"$(DEVELOPER_DIR)/Examples/CoreAudio/AudioUnits/AUPublic/AUBase\"";
|
||||
PRODUCT_NAME = ConsoleXSubOut;
|
||||
PRODUCT_NAME = Distance3;
|
||||
SDKROOT = macosx10.5;
|
||||
STRIP_INSTALLED_PRODUCT = YES;
|
||||
STRIP_STYLE = all;
|
||||
|
|
@ -466,7 +466,7 @@
|
|||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
3E4BA243089833B7007656EC /* Build configuration list for PBXNativeTarget "ConsoleXSubOut" */ = {
|
||||
3E4BA243089833B7007656EC /* Build configuration list for PBXNativeTarget "Distance3" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
3E4BA244089833B7007656EC /* Debug */,
|
||||
|
|
@ -475,7 +475,7 @@
|
|||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Debug;
|
||||
};
|
||||
3E4BA247089833B7007656EC /* Build configuration list for PBXProject "ConsoleXSubOut" */ = {
|
||||
3E4BA247089833B7007656EC /* Build configuration list for PBXProject "Distance3" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
3E4BA248089833B7007656EC /* Debug */,
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* File: ConsoleXSubOutVersion.h
|
||||
* File: Distance3Version.h
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 3/8/24
|
||||
* Created: 2/23/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
|
|
@ -39,19 +39,19 @@
|
|||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
#ifndef __ConsoleXSubOutVersion_h__
|
||||
#define __ConsoleXSubOutVersion_h__
|
||||
#ifndef __Distance3Version_h__
|
||||
#define __Distance3Version_h__
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#define kConsoleXSubOutVersion 0xFFFFFFFF
|
||||
#define kDistance3Version 0xFFFFFFFF
|
||||
#else
|
||||
#define kConsoleXSubOutVersion 0x00010000
|
||||
#define kDistance3Version 0x00010000
|
||||
#endif
|
||||
|
||||
//~~~~~~~~~~~~~~ Change!!! ~~~~~~~~~~~~~~~~~~~~~//
|
||||
#define ConsoleXSubOut_COMP_MANF 'Dthr'
|
||||
#define ConsoleXSubOut_COMP_SUBTYPE 'cnxo'
|
||||
#define Distance3_COMP_MANF 'Dthr'
|
||||
#define Distance3_COMP_SUBTYPE 'disv'
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
|
||||
|
||||
#endif
|
||||
BIN
plugins/MacAU/Distance3/English.lproj/InfoPlist.strings
Executable file
BIN
plugins/MacAU/Distance3/English.lproj/InfoPlist.strings
Executable file
Binary file not shown.
28
plugins/MacAU/Distance3/Info.plist
Executable file
28
plugins/MacAU/Distance3/Info.plist
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.airwindows.audiounit.${PRODUCT_NAME:identifier}</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>${PROJECTNAMEASIDENTIFIER}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>DthX</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>CSResourcesFileMapped</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
plugins/MacAU/Parametric/English.lproj/InfoPlist.strings
Executable file
BIN
plugins/MacAU/Parametric/English.lproj/InfoPlist.strings
Executable file
Binary file not shown.
28
plugins/MacAU/Parametric/Info.plist
Executable file
28
plugins/MacAU/Parametric/Info.plist
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.airwindows.audiounit.${PRODUCT_NAME:identifier}</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>${PROJECTNAMEASIDENTIFIER}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>DthX</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>CSResourcesFileMapped</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
410
plugins/MacAU/Parametric/Parametric.cpp
Executable file
410
plugins/MacAU/Parametric/Parametric.cpp
Executable file
|
|
@ -0,0 +1,410 @@
|
|||
/*
|
||||
* File: Parametric.cpp
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 4/22/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
/*=============================================================================
|
||||
Parametric.cpp
|
||||
|
||||
=============================================================================*/
|
||||
#include "Parametric.h"
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
COMPONENT_ENTRY(Parametric)
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Parametric::Parametric
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Parametric::Parametric(AudioUnit component)
|
||||
: AUEffectBase(component)
|
||||
{
|
||||
CreateElements();
|
||||
Globals()->UseIndexedParameters(kNumberOfParameters);
|
||||
SetParameter(kParam_TRF, kDefaultValue_ParamTRF );
|
||||
SetParameter(kParam_TRG, kDefaultValue_ParamTRG );
|
||||
SetParameter(kParam_TRR, kDefaultValue_ParamTRR );
|
||||
SetParameter(kParam_HMF, kDefaultValue_ParamHMF );
|
||||
SetParameter(kParam_HMG, kDefaultValue_ParamHMG );
|
||||
SetParameter(kParam_HMR, kDefaultValue_ParamHMR );
|
||||
SetParameter(kParam_LMF, kDefaultValue_ParamLMF );
|
||||
SetParameter(kParam_LMG, kDefaultValue_ParamLMG );
|
||||
SetParameter(kParam_LMR, kDefaultValue_ParamLMR );
|
||||
SetParameter(kParam_DW, kDefaultValue_ParamDW );
|
||||
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
mDebugDispatcher = new AUDebugDispatcher (this);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Parametric::GetParameterValueStrings
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Parametric::GetParameterValueStrings(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
CFArrayRef * outStrings)
|
||||
{
|
||||
|
||||
return kAudioUnitErr_InvalidProperty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Parametric::GetParameterInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Parametric::GetParameterInfo(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
AudioUnitParameterInfo &outParameterInfo )
|
||||
{
|
||||
ComponentResult result = noErr;
|
||||
|
||||
outParameterInfo.flags = kAudioUnitParameterFlag_IsWritable
|
||||
| kAudioUnitParameterFlag_IsReadable;
|
||||
|
||||
if (inScope == kAudioUnitScope_Global) {
|
||||
switch(inParameterID)
|
||||
{
|
||||
case kParam_TRF:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterTRFName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamTRF;
|
||||
break;
|
||||
case kParam_TRG:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterTRGName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamTRG;
|
||||
break;
|
||||
case kParam_TRR:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterTRRName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamTRR;
|
||||
break;
|
||||
case kParam_HMF:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterHMFName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamHMF;
|
||||
break;
|
||||
case kParam_HMG:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterHMGName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamHMG;
|
||||
break;
|
||||
case kParam_HMR:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterHMRName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamHMR;
|
||||
break;
|
||||
case kParam_LMF:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterLMFName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamLMF;
|
||||
break;
|
||||
case kParam_LMG:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterLMGName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamLMG;
|
||||
break;
|
||||
case kParam_LMR:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterLMRName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamLMR;
|
||||
break;
|
||||
case kParam_DW:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterDWName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamDW;
|
||||
break;
|
||||
default:
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Parametric::GetPropertyInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Parametric::GetPropertyInfo (AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
UInt32 & outDataSize,
|
||||
Boolean & outWritable)
|
||||
{
|
||||
return AUEffectBase::GetPropertyInfo (inID, inScope, inElement, outDataSize, outWritable);
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Parametric::GetProperty
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Parametric::GetProperty( AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
void * outData )
|
||||
{
|
||||
return AUEffectBase::GetProperty (inID, inScope, inElement, outData);
|
||||
}
|
||||
|
||||
// Parametric::Initialize
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Parametric::Initialize()
|
||||
{
|
||||
ComponentResult result = AUEffectBase::Initialize();
|
||||
if (result == noErr)
|
||||
Reset(kAudioUnitScope_Global, 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
#pragma mark ____ParametricEffectKernel
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Parametric::ParametricKernel::Reset()
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
void Parametric::ParametricKernel::Reset()
|
||||
{
|
||||
for (int x = 0; x < biqs_total; x++) {
|
||||
high[x] = 0.0;
|
||||
hmid[x] = 0.0;
|
||||
lmid[x] = 0.0;
|
||||
}
|
||||
fpd = 1.0; while (fpd < 16386) fpd = rand()*UINT32_MAX;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Parametric::ParametricKernel::Process
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
void Parametric::ParametricKernel::Process( const Float32 *inSourceP,
|
||||
Float32 *inDestP,
|
||||
UInt32 inFramesToProcess,
|
||||
UInt32 inNumChannels,
|
||||
bool &ioSilence )
|
||||
{
|
||||
UInt32 nSampleFrames = inFramesToProcess;
|
||||
const Float32 *sourceP = inSourceP;
|
||||
Float32 *destP = inDestP;
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= GetSampleRate();
|
||||
|
||||
high[biqs_freq] = (((pow(GetParameter( kParam_TRF ),3)*14500.0)+1500.0)/GetSampleRate());
|
||||
if (high[biqs_freq] < 0.0001) high[biqs_freq] = 0.0001;
|
||||
high[biqs_nonlin] = GetParameter( kParam_TRG );
|
||||
high[biqs_level] = (high[biqs_nonlin]*2.0)-1.0;
|
||||
if (high[biqs_level] > 0.0) high[biqs_level] *= 2.0;
|
||||
high[biqs_reso] = ((0.5+(high[biqs_nonlin]*0.5)+sqrt(high[biqs_freq]))-(1.0-pow(1.0-GetParameter( kParam_TRR ),2.0)))+0.5+(high[biqs_nonlin]*0.5);
|
||||
double K = tan(M_PI * high[biqs_freq]);
|
||||
double norm = 1.0 / (1.0 + K / (high[biqs_reso]*1.93185165) + K * K);
|
||||
high[biqs_a0] = K / (high[biqs_reso]*1.93185165) * norm;
|
||||
high[biqs_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
high[biqs_b2] = (1.0 - K / (high[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (high[biqs_reso]*0.70710678) + K * K);
|
||||
high[biqs_c0] = K / (high[biqs_reso]*0.70710678) * norm;
|
||||
high[biqs_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
high[biqs_d2] = (1.0 - K / (high[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (high[biqs_reso]*0.51763809) + K * K);
|
||||
high[biqs_e0] = K / (high[biqs_reso]*0.51763809) * norm;
|
||||
high[biqs_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
high[biqs_f2] = (1.0 - K / (high[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
//high
|
||||
|
||||
hmid[biqs_freq] = (((pow(GetParameter( kParam_HMF ),3)*6400.0)+600.0)/GetSampleRate());
|
||||
if (hmid[biqs_freq] < 0.0001) hmid[biqs_freq] = 0.0001;
|
||||
hmid[biqs_nonlin] = GetParameter( kParam_HMG );
|
||||
hmid[biqs_level] = (hmid[biqs_nonlin]*2.0)-1.0;
|
||||
if (hmid[biqs_level] > 0.0) hmid[biqs_level] *= 2.0;
|
||||
hmid[biqs_reso] = ((0.5+(hmid[biqs_nonlin]*0.5)+sqrt(hmid[biqs_freq]))-(1.0-pow(1.0-GetParameter( kParam_HMR ),2.0)))+0.5+(hmid[biqs_nonlin]*0.5);
|
||||
K = tan(M_PI * hmid[biqs_freq]);
|
||||
norm = 1.0 / (1.0 + K / (hmid[biqs_reso]*1.93185165) + K * K);
|
||||
hmid[biqs_a0] = K / (hmid[biqs_reso]*1.93185165) * norm;
|
||||
hmid[biqs_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
hmid[biqs_b2] = (1.0 - K / (hmid[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (hmid[biqs_reso]*0.70710678) + K * K);
|
||||
hmid[biqs_c0] = K / (hmid[biqs_reso]*0.70710678) * norm;
|
||||
hmid[biqs_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
hmid[biqs_d2] = (1.0 - K / (hmid[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (hmid[biqs_reso]*0.51763809) + K * K);
|
||||
hmid[biqs_e0] = K / (hmid[biqs_reso]*0.51763809) * norm;
|
||||
hmid[biqs_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
hmid[biqs_f2] = (1.0 - K / (hmid[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
//hmid
|
||||
|
||||
lmid[biqs_freq] = (((pow(GetParameter( kParam_LMF ),3)*2200.0)+20.0)/GetSampleRate());
|
||||
if (lmid[biqs_freq] < 0.00001) lmid[biqs_freq] = 0.00001;
|
||||
lmid[biqs_nonlin] = GetParameter( kParam_LMG );
|
||||
lmid[biqs_level] = (lmid[biqs_nonlin]*2.0)-1.0;
|
||||
if (lmid[biqs_level] > 0.0) lmid[biqs_level] *= 2.0;
|
||||
lmid[biqs_reso] = ((0.5+(lmid[biqs_nonlin]*0.5)+sqrt(lmid[biqs_freq]))-(1.0-pow(1.0-GetParameter( kParam_LMR ),2.0)))+0.5+(lmid[biqs_nonlin]*0.5);
|
||||
K = tan(M_PI * lmid[biqs_freq]);
|
||||
norm = 1.0 / (1.0 + K / (lmid[biqs_reso]*1.93185165) + K * K);
|
||||
lmid[biqs_a0] = K / (lmid[biqs_reso]*1.93185165) * norm;
|
||||
lmid[biqs_b1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lmid[biqs_b2] = (1.0 - K / (lmid[biqs_reso]*1.93185165) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (lmid[biqs_reso]*0.70710678) + K * K);
|
||||
lmid[biqs_c0] = K / (lmid[biqs_reso]*0.70710678) * norm;
|
||||
lmid[biqs_d1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lmid[biqs_d2] = (1.0 - K / (lmid[biqs_reso]*0.70710678) + K * K) * norm;
|
||||
norm = 1.0 / (1.0 + K / (lmid[biqs_reso]*0.51763809) + K * K);
|
||||
lmid[biqs_e0] = K / (lmid[biqs_reso]*0.51763809) * norm;
|
||||
lmid[biqs_f1] = 2.0 * (K * K - 1.0) * norm;
|
||||
lmid[biqs_f2] = (1.0 - K / (lmid[biqs_reso]*0.51763809) + K * K) * norm;
|
||||
//lmid
|
||||
|
||||
double wet = GetParameter( kParam_DW );
|
||||
|
||||
while (nSampleFrames-- > 0) {
|
||||
double inputSample = *sourceP;
|
||||
if (fabs(inputSample)<1.18e-23) inputSample = fpd * 1.18e-17;
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
high[biqs_outL] = inputSample * fabs(high[biqs_level]);
|
||||
high[biqs_dis] = fabs(high[biqs_a0] * (1.0+(high[biqs_outL]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outL] * high[biqs_dis]) + high[biqs_aL1];
|
||||
high[biqs_aL1] = high[biqs_aL2] - (high[biqs_temp]*high[biqs_b1]);
|
||||
high[biqs_aL2] = (high[biqs_outL] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_b2]);
|
||||
high[biqs_outL] = high[biqs_temp];
|
||||
high[biqs_dis] = fabs(high[biqs_c0] * (1.0+(high[biqs_outL]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outL] * high[biqs_dis]) + high[biqs_cL1];
|
||||
high[biqs_cL1] = high[biqs_cL2] - (high[biqs_temp]*high[biqs_d1]);
|
||||
high[biqs_cL2] = (high[biqs_outL] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_d2]);
|
||||
high[biqs_outL] = high[biqs_temp];
|
||||
high[biqs_dis] = fabs(high[biqs_e0] * (1.0+(high[biqs_outL]*high[biqs_nonlin])));
|
||||
if (high[biqs_dis] > 1.0) high[biqs_dis] = 1.0;
|
||||
high[biqs_temp] = (high[biqs_outL] * high[biqs_dis]) + high[biqs_eL1];
|
||||
high[biqs_eL1] = high[biqs_eL2] - (high[biqs_temp]*high[biqs_f1]);
|
||||
high[biqs_eL2] = (high[biqs_outL] * -high[biqs_dis]) - (high[biqs_temp]*high[biqs_f2]);
|
||||
high[biqs_outL] = high[biqs_temp]; high[biqs_outL] *= high[biqs_level];
|
||||
if (high[biqs_level] > 1.0) high[biqs_outL] *= high[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
hmid[biqs_outL] = inputSample * fabs(hmid[biqs_level]);
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_a0] * (1.0+(hmid[biqs_outL]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outL] * hmid[biqs_dis]) + hmid[biqs_aL1];
|
||||
hmid[biqs_aL1] = hmid[biqs_aL2] - (hmid[biqs_temp]*hmid[biqs_b1]);
|
||||
hmid[biqs_aL2] = (hmid[biqs_outL] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_b2]);
|
||||
hmid[biqs_outL] = hmid[biqs_temp];
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_c0] * (1.0+(hmid[biqs_outL]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outL] * hmid[biqs_dis]) + hmid[biqs_cL1];
|
||||
hmid[biqs_cL1] = hmid[biqs_cL2] - (hmid[biqs_temp]*hmid[biqs_d1]);
|
||||
hmid[biqs_cL2] = (hmid[biqs_outL] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_d2]);
|
||||
hmid[biqs_outL] = hmid[biqs_temp];
|
||||
hmid[biqs_dis] = fabs(hmid[biqs_e0] * (1.0+(hmid[biqs_outL]*hmid[biqs_nonlin])));
|
||||
if (hmid[biqs_dis] > 1.0) hmid[biqs_dis] = 1.0;
|
||||
hmid[biqs_temp] = (hmid[biqs_outL] * hmid[biqs_dis]) + hmid[biqs_eL1];
|
||||
hmid[biqs_eL1] = hmid[biqs_eL2] - (hmid[biqs_temp]*hmid[biqs_f1]);
|
||||
hmid[biqs_eL2] = (hmid[biqs_outL] * -hmid[biqs_dis]) - (hmid[biqs_temp]*hmid[biqs_f2]);
|
||||
hmid[biqs_outL] = hmid[biqs_temp]; hmid[biqs_outL] *= hmid[biqs_level];
|
||||
if (hmid[biqs_level] > 1.0) hmid[biqs_outL] *= hmid[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
//begin Stacked Biquad With Reversed Neutron Flow L
|
||||
lmid[biqs_outL] = inputSample * fabs(lmid[biqs_level]);
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_a0] * (1.0+(lmid[biqs_outL]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outL] * lmid[biqs_dis]) + lmid[biqs_aL1];
|
||||
lmid[biqs_aL1] = lmid[biqs_aL2] - (lmid[biqs_temp]*lmid[biqs_b1]);
|
||||
lmid[biqs_aL2] = (lmid[biqs_outL] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_b2]);
|
||||
lmid[biqs_outL] = lmid[biqs_temp];
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_c0] * (1.0+(lmid[biqs_outL]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outL] * lmid[biqs_dis]) + lmid[biqs_cL1];
|
||||
lmid[biqs_cL1] = lmid[biqs_cL2] - (lmid[biqs_temp]*lmid[biqs_d1]);
|
||||
lmid[biqs_cL2] = (lmid[biqs_outL] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_d2]);
|
||||
lmid[biqs_outL] = lmid[biqs_temp];
|
||||
lmid[biqs_dis] = fabs(lmid[biqs_e0] * (1.0+(lmid[biqs_outL]*lmid[biqs_nonlin])));
|
||||
if (lmid[biqs_dis] > 1.0) lmid[biqs_dis] = 1.0;
|
||||
lmid[biqs_temp] = (lmid[biqs_outL] * lmid[biqs_dis]) + lmid[biqs_eL1];
|
||||
lmid[biqs_eL1] = lmid[biqs_eL2] - (lmid[biqs_temp]*lmid[biqs_f1]);
|
||||
lmid[biqs_eL2] = (lmid[biqs_outL] * -lmid[biqs_dis]) - (lmid[biqs_temp]*lmid[biqs_f2]);
|
||||
lmid[biqs_outL] = lmid[biqs_temp]; lmid[biqs_outL] *= lmid[biqs_level];
|
||||
if (lmid[biqs_level] > 1.0) lmid[biqs_outL] *= lmid[biqs_level];
|
||||
//end Stacked Biquad With Reversed Neutron Flow L
|
||||
|
||||
double parametric = high[biqs_outL] + hmid[biqs_outL] + lmid[biqs_outL];
|
||||
inputSample += (parametric * wet); //purely a parallel filter stage here
|
||||
|
||||
|
||||
//begin 32 bit floating point dither
|
||||
int expon; frexpf((float)inputSample, &expon);
|
||||
fpd ^= fpd << 13; fpd ^= fpd >> 17; fpd ^= fpd << 5;
|
||||
inputSample += ((double(fpd)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit floating point dither
|
||||
|
||||
*destP = inputSample;
|
||||
|
||||
sourceP += inNumChannels; destP += inNumChannels;
|
||||
}
|
||||
}
|
||||
|
||||
1
plugins/MacAU/Parametric/Parametric.exp
Executable file
1
plugins/MacAU/Parametric/Parametric.exp
Executable file
|
|
@ -0,0 +1 @@
|
|||
_ParametricEntry
|
||||
177
plugins/MacAU/Parametric/Parametric.h
Executable file
177
plugins/MacAU/Parametric/Parametric.h
Executable file
|
|
@ -0,0 +1,177 @@
|
|||
/*
|
||||
* File: Parametric.h
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 4/22/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
#include "AUEffectBase.h"
|
||||
#include "ParametricVersion.h"
|
||||
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
#include "AUDebugDispatcher.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef __Parametric_h__
|
||||
#define __Parametric_h__
|
||||
|
||||
|
||||
#pragma mark ____Parametric Parameters
|
||||
|
||||
// parameters
|
||||
static const float kDefaultValue_ParamTRF = 0.5;
|
||||
static const float kDefaultValue_ParamTRG = 0.5;
|
||||
static const float kDefaultValue_ParamTRR = 0.5;
|
||||
static const float kDefaultValue_ParamHMF = 0.5;
|
||||
static const float kDefaultValue_ParamHMG = 0.5;
|
||||
static const float kDefaultValue_ParamHMR = 0.5;
|
||||
static const float kDefaultValue_ParamLMF = 0.5;
|
||||
static const float kDefaultValue_ParamLMG = 0.5;
|
||||
static const float kDefaultValue_ParamLMR = 0.5;
|
||||
static const float kDefaultValue_ParamDW = 1.0;
|
||||
|
||||
static CFStringRef kParameterTRFName = CFSTR("Tr Freq");
|
||||
static CFStringRef kParameterTRGName = CFSTR("Treble");
|
||||
static CFStringRef kParameterTRRName = CFSTR("Tr Reso");
|
||||
static CFStringRef kParameterHMFName = CFSTR("HM Freq");
|
||||
static CFStringRef kParameterHMGName = CFSTR("HighMid");
|
||||
static CFStringRef kParameterHMRName = CFSTR("HM Reso");
|
||||
static CFStringRef kParameterLMFName = CFSTR("LM Freq");
|
||||
static CFStringRef kParameterLMGName = CFSTR("LowMid");
|
||||
static CFStringRef kParameterLMRName = CFSTR("LM Reso");
|
||||
static CFStringRef kParameterDWName = CFSTR("Dry/Wet");
|
||||
|
||||
enum {
|
||||
kParam_TRF =0,
|
||||
kParam_TRG =1,
|
||||
kParam_TRR =2,
|
||||
kParam_HMF =3,
|
||||
kParam_HMG =4,
|
||||
kParam_HMR =5,
|
||||
kParam_LMF =6,
|
||||
kParam_LMG =7,
|
||||
kParam_LMR =8,
|
||||
kParam_DW = 9,
|
||||
//Add your parameters here...
|
||||
kNumberOfParameters=10
|
||||
};
|
||||
|
||||
#pragma mark ____Parametric
|
||||
class Parametric : public AUEffectBase
|
||||
{
|
||||
public:
|
||||
Parametric(AudioUnit component);
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
virtual ~Parametric () { delete mDebugDispatcher; }
|
||||
#endif
|
||||
|
||||
virtual AUKernelBase * NewKernel() { return new ParametricKernel(this); }
|
||||
|
||||
virtual ComponentResult GetParameterValueStrings(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
CFArrayRef * outStrings);
|
||||
|
||||
virtual ComponentResult GetParameterInfo(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
AudioUnitParameterInfo &outParameterInfo);
|
||||
|
||||
virtual ComponentResult GetPropertyInfo(AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
UInt32 & outDataSize,
|
||||
Boolean & outWritable );
|
||||
|
||||
virtual ComponentResult GetProperty(AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
void * outData);
|
||||
|
||||
virtual ComponentResult Initialize();
|
||||
virtual bool SupportsTail () { return true; }
|
||||
virtual Float64 GetTailTime() {return (1.0/GetSampleRate())*0.0;} //in SECONDS! gsr * a number = in samples
|
||||
virtual Float64 GetLatency() {return (1.0/GetSampleRate())*0.0;} // in SECONDS! gsr * a number = in samples
|
||||
|
||||
/*! @method Version */
|
||||
virtual ComponentResult Version() { return kParametricVersion; }
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
class ParametricKernel : public AUKernelBase // most of the real work happens here
|
||||
{
|
||||
public:
|
||||
ParametricKernel(AUEffectBase *inAudioUnit )
|
||||
: AUKernelBase(inAudioUnit)
|
||||
{
|
||||
}
|
||||
|
||||
// *Required* overides for the process method for this effect
|
||||
// processes one channel of interleaved samples
|
||||
virtual void Process( const Float32 *inSourceP,
|
||||
Float32 *inDestP,
|
||||
UInt32 inFramesToProcess,
|
||||
UInt32 inNumChannels,
|
||||
bool &ioSilence);
|
||||
|
||||
virtual void Reset();
|
||||
|
||||
private:
|
||||
|
||||
enum {
|
||||
biqs_freq, biqs_reso, biqs_level,
|
||||
biqs_nonlin, biqs_temp, biqs_dis,
|
||||
biqs_a0, biqs_a1, biqs_b1, biqs_b2,
|
||||
biqs_c0, biqs_c1, biqs_d1, biqs_d2,
|
||||
biqs_e0, biqs_e1, biqs_f1, biqs_f2,
|
||||
biqs_aL1, biqs_aL2, biqs_aR1, biqs_aR2,
|
||||
biqs_cL1, biqs_cL2, biqs_cR1, biqs_cR2,
|
||||
biqs_eL1, biqs_eL2, biqs_eR1, biqs_eR2,
|
||||
biqs_outL, biqs_outR, biqs_total
|
||||
};
|
||||
double high[biqs_total];
|
||||
double hmid[biqs_total];
|
||||
double lmid[biqs_total];
|
||||
|
||||
uint32_t fpd;
|
||||
};
|
||||
};
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
#endif
|
||||
61
plugins/MacAU/Parametric/Parametric.r
Executable file
61
plugins/MacAU/Parametric/Parametric.r
Executable file
|
|
@ -0,0 +1,61 @@
|
|||
/*
|
||||
* File: Parametric.r
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 4/22/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
#include <AudioUnit/AudioUnit.r>
|
||||
|
||||
#include "ParametricVersion.h"
|
||||
|
||||
// Note that resource IDs must be spaced 2 apart for the 'STR ' name and description
|
||||
#define kAudioUnitResID_Parametric 1000
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Parametric~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
#define RES_ID kAudioUnitResID_Parametric
|
||||
#define COMP_TYPE kAudioUnitType_Effect
|
||||
#define COMP_SUBTYPE Parametric_COMP_SUBTYPE
|
||||
#define COMP_MANUF Parametric_COMP_MANF
|
||||
|
||||
#define VERSION kParametricVersion
|
||||
#define NAME "Airwindows: Parametric"
|
||||
#define DESCRIPTION "Parametric AU"
|
||||
#define ENTRY_POINT "ParametricEntry"
|
||||
|
||||
#include "AUResources.r"
|
||||
1358
plugins/MacAU/Parametric/Parametric.xcodeproj/christopherjohnson.mode1v3
Executable file
1358
plugins/MacAU/Parametric/Parametric.xcodeproj/christopherjohnson.mode1v3
Executable file
File diff suppressed because it is too large
Load diff
148
plugins/MacAU/Parametric/Parametric.xcodeproj/christopherjohnson.pbxuser
Executable file
148
plugins/MacAU/Parametric/Parametric.xcodeproj/christopherjohnson.pbxuser
Executable file
|
|
@ -0,0 +1,148 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
089C1669FE841209C02AAC07 /* Project object */ = {
|
||||
activeBuildConfigurationName = Release;
|
||||
activeTarget = 8D01CCC60486CAD60068D4B7 /* Parametric */;
|
||||
codeSenseManager = 8BD3CCB9148830B20062E48C /* Code sense */;
|
||||
perUserDictionary = {
|
||||
PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
20,
|
||||
292,
|
||||
20,
|
||||
48,
|
||||
43,
|
||||
43,
|
||||
20,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXFileDataSource_FiletypeID,
|
||||
PBXFileDataSource_Filename_ColumnID,
|
||||
PBXFileDataSource_Built_ColumnID,
|
||||
PBXFileDataSource_ObjectSize_ColumnID,
|
||||
PBXFileDataSource_Errors_ColumnID,
|
||||
PBXFileDataSource_Warnings_ColumnID,
|
||||
PBXFileDataSource_Target_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
20,
|
||||
252,
|
||||
60,
|
||||
20,
|
||||
48,
|
||||
43,
|
||||
43,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXFileDataSource_FiletypeID,
|
||||
PBXFileDataSource_Filename_ColumnID,
|
||||
PBXTargetDataSource_PrimaryAttribute,
|
||||
PBXFileDataSource_Built_ColumnID,
|
||||
PBXFileDataSource_ObjectSize_ColumnID,
|
||||
PBXFileDataSource_Errors_ColumnID,
|
||||
PBXFileDataSource_Warnings_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXPerProjectTemplateStateSaveDate = 736192353;
|
||||
PBXWorkspaceStateSaveDate = 736192353;
|
||||
};
|
||||
perUserProjectItems = {
|
||||
8B22C2E62BD6FBA700F60808 /* PlistBookmark */ = 8B22C2E62BD6FBA700F60808 /* PlistBookmark */;
|
||||
8BCB29A92BE16D04001B6E66 /* PBXTextBookmark */ = 8BCB29A92BE16D04001B6E66 /* PBXTextBookmark */;
|
||||
8BCB29AB2BE16D04001B6E66 /* PBXTextBookmark */ = 8BCB29AB2BE16D04001B6E66 /* PBXTextBookmark */;
|
||||
8BCB29BA2BE170CB001B6E66 /* PBXTextBookmark */ = 8BCB29BA2BE170CB001B6E66 /* PBXTextBookmark */;
|
||||
};
|
||||
sourceControlManager = 8BD3CCB8148830B20062E48C /* Source Control */;
|
||||
userBuildSettings = {
|
||||
};
|
||||
};
|
||||
8B22C2E62BD6FBA700F60808 /* PlistBookmark */ = {
|
||||
isa = PlistBookmark;
|
||||
fRef = 8D01CCD10486CAD60068D4B7 /* Info.plist */;
|
||||
fallbackIsa = PBXBookmark;
|
||||
isK = 0;
|
||||
kPath = (
|
||||
CFBundleName,
|
||||
);
|
||||
name = /Users/christopherjohnson/Desktop/Parametric/Info.plist;
|
||||
rLen = 0;
|
||||
rLoc = 9223372036854775808;
|
||||
};
|
||||
8BA05A660720730100365D66 /* Parametric.cpp */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1362, 7398}}";
|
||||
sepNavSelRange = "{20393, 153}";
|
||||
sepNavVisRange = "{18911, 1990}";
|
||||
sepNavWindowFrame = "{{539, 38}, {895, 840}}";
|
||||
};
|
||||
};
|
||||
8BA05A690720730100365D66 /* ParametricVersion.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1029, 1242}}";
|
||||
sepNavSelRange = "{0, 0}";
|
||||
sepNavVisRange = "{2678, 107}";
|
||||
sepNavWindowFrame = "{{506, 38}, {961, 840}}";
|
||||
};
|
||||
};
|
||||
8BC6025B073B072D006C4272 /* Parametric.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1029, 3366}}";
|
||||
sepNavSelRange = "{3276, 0}";
|
||||
sepNavVisRange = "{3129, 309}";
|
||||
sepNavWindowFrame = "{{684, 38}, {756, 840}}";
|
||||
};
|
||||
};
|
||||
8BCB29A92BE16D04001B6E66 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A690720730100365D66 /* ParametricVersion.h */;
|
||||
name = "ParametricVersion.h: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 107;
|
||||
vrLoc = 2678;
|
||||
};
|
||||
8BCB29AB2BE16D04001B6E66 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* Parametric.h */;
|
||||
name = "Parametric.h: 66";
|
||||
rLen = 0;
|
||||
rLoc = 3276;
|
||||
rType = 0;
|
||||
vrLen = 309;
|
||||
vrLoc = 3129;
|
||||
};
|
||||
8BCB29BA2BE170CB001B6E66 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* Parametric.h */;
|
||||
name = "Parametric.h: 66";
|
||||
rLen = 0;
|
||||
rLoc = 3276;
|
||||
rType = 0;
|
||||
vrLen = 309;
|
||||
vrLoc = 3129;
|
||||
};
|
||||
8BD3CCB8148830B20062E48C /* Source Control */ = {
|
||||
isa = PBXSourceControlManager;
|
||||
fallbackIsa = XCSourceControlManager;
|
||||
isSCMEnabled = 0;
|
||||
scmConfiguration = {
|
||||
repositoryNamesForRoots = {
|
||||
"" = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
8BD3CCB9148830B20062E48C /* Code sense */ = {
|
||||
isa = PBXCodeSenseManager;
|
||||
indexTemplatePath = "";
|
||||
};
|
||||
8D01CCC60486CAD60068D4B7 /* Parametric */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
}
|
||||
1508
plugins/MacAU/Parametric/Parametric.xcodeproj/christopherjohnson.perspectivev3
Executable file
1508
plugins/MacAU/Parametric/Parametric.xcodeproj/christopherjohnson.perspectivev3
Executable file
File diff suppressed because it is too large
Load diff
490
plugins/MacAU/Parametric/Parametric.xcodeproj/project.pbxproj
Executable file
490
plugins/MacAU/Parametric/Parametric.xcodeproj/project.pbxproj
Executable file
|
|
@ -0,0 +1,490 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 45;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
3EEA126E089847F5002C6BFC /* CAVectorUnit.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3EEA126B089847F5002C6BFC /* CAVectorUnit.cpp */; };
|
||||
3EEA126F089847F5002C6BFC /* CAVectorUnit.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EEA126C089847F5002C6BFC /* CAVectorUnit.h */; };
|
||||
3EEA1270089847F5002C6BFC /* CAVectorUnitTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = 3EEA126D089847F5002C6BFC /* CAVectorUnitTypes.h */; };
|
||||
8B4119B70749654200361ABE /* Parametric.r in Rez */ = {isa = PBXBuildFile; fileRef = 8BA05A680720730100365D66 /* Parametric.r */; };
|
||||
8BA05A6B0720730100365D66 /* Parametric.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A660720730100365D66 /* Parametric.cpp */; };
|
||||
8BA05A6E0720730100365D66 /* ParametricVersion.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A690720730100365D66 /* ParametricVersion.h */; };
|
||||
8BA05AAE072073D300365D66 /* AUBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A7F072073D200365D66 /* AUBase.cpp */; };
|
||||
8BA05AAF072073D300365D66 /* AUBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A80072073D200365D66 /* AUBase.h */; };
|
||||
8BA05AB0072073D300365D66 /* AUDispatch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A81072073D200365D66 /* AUDispatch.cpp */; };
|
||||
8BA05AB1072073D300365D66 /* AUDispatch.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A82072073D200365D66 /* AUDispatch.h */; };
|
||||
8BA05AB2072073D300365D66 /* AUInputElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A83072073D200365D66 /* AUInputElement.cpp */; };
|
||||
8BA05AB3072073D300365D66 /* AUInputElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A84072073D200365D66 /* AUInputElement.h */; };
|
||||
8BA05AB4072073D300365D66 /* AUOutputElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A85072073D200365D66 /* AUOutputElement.cpp */; };
|
||||
8BA05AB5072073D300365D66 /* AUOutputElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A86072073D200365D66 /* AUOutputElement.h */; };
|
||||
8BA05AB7072073D300365D66 /* AUScopeElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A88072073D200365D66 /* AUScopeElement.cpp */; };
|
||||
8BA05AB8072073D300365D66 /* AUScopeElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A89072073D200365D66 /* AUScopeElement.h */; };
|
||||
8BA05AB9072073D300365D66 /* ComponentBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A8A072073D200365D66 /* ComponentBase.cpp */; };
|
||||
8BA05ABA072073D300365D66 /* ComponentBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A8B072073D200365D66 /* ComponentBase.h */; };
|
||||
8BA05AC6072073D300365D66 /* AUEffectBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05A9A072073D200365D66 /* AUEffectBase.cpp */; };
|
||||
8BA05AC7072073D300365D66 /* AUEffectBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05A9B072073D200365D66 /* AUEffectBase.h */; };
|
||||
8BA05AD2072073D300365D66 /* AUBuffer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AA7072073D200365D66 /* AUBuffer.cpp */; };
|
||||
8BA05AD3072073D300365D66 /* AUBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AA8072073D200365D66 /* AUBuffer.h */; };
|
||||
8BA05AD4072073D300365D66 /* AUDebugDispatcher.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AA9072073D200365D66 /* AUDebugDispatcher.cpp */; };
|
||||
8BA05AD5072073D300365D66 /* AUDebugDispatcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAA072073D200365D66 /* AUDebugDispatcher.h */; };
|
||||
8BA05AD6072073D300365D66 /* AUInputFormatConverter.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAB072073D200365D66 /* AUInputFormatConverter.h */; };
|
||||
8BA05AD7072073D300365D66 /* AUSilentTimeout.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAC072073D200365D66 /* AUSilentTimeout.h */; };
|
||||
8BA05AD8072073D300365D66 /* AUTimestampGenerator.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AAD072073D200365D66 /* AUTimestampGenerator.h */; };
|
||||
8BA05AE50720742100365D66 /* CAAudioChannelLayout.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05ADF0720742100365D66 /* CAAudioChannelLayout.cpp */; };
|
||||
8BA05AE60720742100365D66 /* CAAudioChannelLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AE00720742100365D66 /* CAAudioChannelLayout.h */; };
|
||||
8BA05AE70720742100365D66 /* CAMutex.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AE10720742100365D66 /* CAMutex.cpp */; };
|
||||
8BA05AE80720742100365D66 /* CAMutex.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AE20720742100365D66 /* CAMutex.h */; };
|
||||
8BA05AE90720742100365D66 /* CAStreamBasicDescription.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05AE30720742100365D66 /* CAStreamBasicDescription.cpp */; };
|
||||
8BA05AEA0720742100365D66 /* CAStreamBasicDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05AE40720742100365D66 /* CAStreamBasicDescription.h */; };
|
||||
8BA05AFC072074E100365D66 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BA05AF9072074E100365D66 /* AudioToolbox.framework */; };
|
||||
8BA05AFD072074E100365D66 /* AudioUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BA05AFA072074E100365D66 /* AudioUnit.framework */; };
|
||||
8BA05B02072074F900365D66 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BA05B01072074F900365D66 /* CoreServices.framework */; };
|
||||
8BA05B070720754400365D66 /* CAAUParameter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8BA05B050720754400365D66 /* CAAUParameter.cpp */; };
|
||||
8BA05B080720754400365D66 /* CAAUParameter.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BA05B060720754400365D66 /* CAAUParameter.h */; };
|
||||
8BC6025C073B072D006C4272 /* Parametric.h in Headers */ = {isa = PBXBuildFile; fileRef = 8BC6025B073B072D006C4272 /* Parametric.h */; };
|
||||
8D01CCCA0486CAD60068D4B7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; };
|
||||
F7C347F00ECE5AF8008ADFB6 /* AUBaseHelper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F7C347EE0ECE5AF8008ADFB6 /* AUBaseHelper.cpp */; };
|
||||
F7C347F10ECE5AF8008ADFB6 /* AUBaseHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = F7C347EF0ECE5AF8008ADFB6 /* AUBaseHelper.h */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
3EEA126B089847F5002C6BFC /* CAVectorUnit.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAVectorUnit.cpp; sourceTree = "<group>"; };
|
||||
3EEA126C089847F5002C6BFC /* CAVectorUnit.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAVectorUnit.h; sourceTree = "<group>"; };
|
||||
3EEA126D089847F5002C6BFC /* CAVectorUnitTypes.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAVectorUnitTypes.h; sourceTree = "<group>"; };
|
||||
8B5C7FBF076FB2C200A15F61 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = "<absolute>"; };
|
||||
8BA05A660720730100365D66 /* Parametric.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = Parametric.cpp; sourceTree = "<group>"; };
|
||||
8BA05A670720730100365D66 /* Parametric.exp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.exports; path = Parametric.exp; sourceTree = "<group>"; };
|
||||
8BA05A680720730100365D66 /* Parametric.r */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.rez; path = Parametric.r; sourceTree = "<group>"; };
|
||||
8BA05A690720730100365D66 /* ParametricVersion.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ParametricVersion.h; sourceTree = "<group>"; };
|
||||
8BA05A7F072073D200365D66 /* AUBase.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUBase.cpp; sourceTree = "<group>"; };
|
||||
8BA05A80072073D200365D66 /* AUBase.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUBase.h; sourceTree = "<group>"; };
|
||||
8BA05A81072073D200365D66 /* AUDispatch.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUDispatch.cpp; sourceTree = "<group>"; };
|
||||
8BA05A82072073D200365D66 /* AUDispatch.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUDispatch.h; sourceTree = "<group>"; };
|
||||
8BA05A83072073D200365D66 /* AUInputElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUInputElement.cpp; sourceTree = "<group>"; };
|
||||
8BA05A84072073D200365D66 /* AUInputElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUInputElement.h; sourceTree = "<group>"; };
|
||||
8BA05A85072073D200365D66 /* AUOutputElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUOutputElement.cpp; sourceTree = "<group>"; };
|
||||
8BA05A86072073D200365D66 /* AUOutputElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUOutputElement.h; sourceTree = "<group>"; };
|
||||
8BA05A87072073D200365D66 /* AUResources.r */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.rez; path = AUResources.r; sourceTree = "<group>"; };
|
||||
8BA05A88072073D200365D66 /* AUScopeElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUScopeElement.cpp; sourceTree = "<group>"; };
|
||||
8BA05A89072073D200365D66 /* AUScopeElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUScopeElement.h; sourceTree = "<group>"; };
|
||||
8BA05A8A072073D200365D66 /* ComponentBase.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = ComponentBase.cpp; sourceTree = "<group>"; };
|
||||
8BA05A8B072073D200365D66 /* ComponentBase.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ComponentBase.h; sourceTree = "<group>"; };
|
||||
8BA05A9A072073D200365D66 /* AUEffectBase.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUEffectBase.cpp; sourceTree = "<group>"; };
|
||||
8BA05A9B072073D200365D66 /* AUEffectBase.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUEffectBase.h; sourceTree = "<group>"; };
|
||||
8BA05AA7072073D200365D66 /* AUBuffer.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUBuffer.cpp; sourceTree = "<group>"; };
|
||||
8BA05AA8072073D200365D66 /* AUBuffer.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUBuffer.h; sourceTree = "<group>"; };
|
||||
8BA05AA9072073D200365D66 /* AUDebugDispatcher.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = AUDebugDispatcher.cpp; sourceTree = "<group>"; };
|
||||
8BA05AAA072073D200365D66 /* AUDebugDispatcher.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUDebugDispatcher.h; sourceTree = "<group>"; };
|
||||
8BA05AAB072073D200365D66 /* AUInputFormatConverter.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUInputFormatConverter.h; sourceTree = "<group>"; };
|
||||
8BA05AAC072073D200365D66 /* AUSilentTimeout.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUSilentTimeout.h; sourceTree = "<group>"; };
|
||||
8BA05AAD072073D200365D66 /* AUTimestampGenerator.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = AUTimestampGenerator.h; sourceTree = "<group>"; };
|
||||
8BA05ADF0720742100365D66 /* CAAudioChannelLayout.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAAudioChannelLayout.cpp; sourceTree = "<group>"; };
|
||||
8BA05AE00720742100365D66 /* CAAudioChannelLayout.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAAudioChannelLayout.h; sourceTree = "<group>"; };
|
||||
8BA05AE10720742100365D66 /* CAMutex.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAMutex.cpp; sourceTree = "<group>"; };
|
||||
8BA05AE20720742100365D66 /* CAMutex.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAMutex.h; sourceTree = "<group>"; };
|
||||
8BA05AE30720742100365D66 /* CAStreamBasicDescription.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAStreamBasicDescription.cpp; sourceTree = "<group>"; };
|
||||
8BA05AE40720742100365D66 /* CAStreamBasicDescription.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAStreamBasicDescription.h; sourceTree = "<group>"; };
|
||||
8BA05AF9072074E100365D66 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = "<absolute>"; };
|
||||
8BA05AFA072074E100365D66 /* AudioUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioUnit.framework; path = /System/Library/Frameworks/AudioUnit.framework; sourceTree = "<absolute>"; };
|
||||
8BA05B01072074F900365D66 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = "<absolute>"; };
|
||||
8BA05B050720754400365D66 /* CAAUParameter.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CAAUParameter.cpp; sourceTree = "<group>"; };
|
||||
8BA05B060720754400365D66 /* CAAUParameter.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CAAUParameter.h; sourceTree = "<group>"; };
|
||||
8BC6025B073B072D006C4272 /* Parametric.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = Parametric.h; sourceTree = "<group>"; };
|
||||
8D01CCD10486CAD60068D4B7 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
|
||||
8D01CCD20486CAD60068D4B7 /* Parametric.component */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Parametric.component; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
F7C347EE0ECE5AF8008ADFB6 /* AUBaseHelper.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AUBaseHelper.cpp; path = Extras/CoreAudio/AudioUnits/AUPublic/Utility/AUBaseHelper.cpp; sourceTree = SYSTEM_DEVELOPER_DIR; };
|
||||
F7C347EF0ECE5AF8008ADFB6 /* AUBaseHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AUBaseHelper.h; path = Extras/CoreAudio/AudioUnits/AUPublic/Utility/AUBaseHelper.h; sourceTree = SYSTEM_DEVELOPER_DIR; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
8D01CCCD0486CAD60068D4B7 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8BA05AFC072074E100365D66 /* AudioToolbox.framework in Frameworks */,
|
||||
8BA05AFD072074E100365D66 /* AudioUnit.framework in Frameworks */,
|
||||
8BA05B02072074F900365D66 /* CoreServices.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
089C166AFE841209C02AAC07 /* Parametric */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
08FB77ADFE841716C02AAC07 /* Source */,
|
||||
089C167CFE841241C02AAC07 /* Resources */,
|
||||
089C1671FE841209C02AAC07 /* External Frameworks and Libraries */,
|
||||
19C28FB4FE9D528D11CA2CBB /* Products */,
|
||||
);
|
||||
name = Parametric;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
089C1671FE841209C02AAC07 /* External Frameworks and Libraries */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8B5C7FBF076FB2C200A15F61 /* CoreAudio.framework */,
|
||||
8BA05B01072074F900365D66 /* CoreServices.framework */,
|
||||
8BA05AF9072074E100365D66 /* AudioToolbox.framework */,
|
||||
8BA05AFA072074E100365D66 /* AudioUnit.framework */,
|
||||
);
|
||||
name = "External Frameworks and Libraries";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
089C167CFE841241C02AAC07 /* Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8D01CCD10486CAD60068D4B7 /* Info.plist */,
|
||||
089C167DFE841241C02AAC07 /* InfoPlist.strings */,
|
||||
);
|
||||
name = Resources;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
08FB77ADFE841716C02AAC07 /* Source */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A56072072A900365D66 /* AU Source */,
|
||||
8BA05AEB0720742700365D66 /* PublicUtility */,
|
||||
8BA05A7D072073D200365D66 /* AUPublic */,
|
||||
);
|
||||
name = Source;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
19C28FB4FE9D528D11CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8D01CCD20486CAD60068D4B7 /* Parametric.component */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05A56072072A900365D66 /* AU Source */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BC6025B073B072D006C4272 /* Parametric.h */,
|
||||
8BA05A660720730100365D66 /* Parametric.cpp */,
|
||||
8BA05A670720730100365D66 /* Parametric.exp */,
|
||||
8BA05A680720730100365D66 /* Parametric.r */,
|
||||
8BA05A690720730100365D66 /* ParametricVersion.h */,
|
||||
);
|
||||
name = "AU Source";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05A7D072073D200365D66 /* AUPublic */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A7E072073D200365D66 /* AUBase */,
|
||||
8BA05A99072073D200365D66 /* OtherBases */,
|
||||
8BA05AA6072073D200365D66 /* Utility */,
|
||||
);
|
||||
name = AUPublic;
|
||||
path = Extras/CoreAudio/AudioUnits/AUPublic;
|
||||
sourceTree = SYSTEM_DEVELOPER_DIR;
|
||||
};
|
||||
8BA05A7E072073D200365D66 /* AUBase */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A7F072073D200365D66 /* AUBase.cpp */,
|
||||
8BA05A80072073D200365D66 /* AUBase.h */,
|
||||
8BA05A81072073D200365D66 /* AUDispatch.cpp */,
|
||||
8BA05A82072073D200365D66 /* AUDispatch.h */,
|
||||
8BA05A83072073D200365D66 /* AUInputElement.cpp */,
|
||||
8BA05A84072073D200365D66 /* AUInputElement.h */,
|
||||
8BA05A85072073D200365D66 /* AUOutputElement.cpp */,
|
||||
8BA05A86072073D200365D66 /* AUOutputElement.h */,
|
||||
8BA05A87072073D200365D66 /* AUResources.r */,
|
||||
8BA05A88072073D200365D66 /* AUScopeElement.cpp */,
|
||||
8BA05A89072073D200365D66 /* AUScopeElement.h */,
|
||||
8BA05A8A072073D200365D66 /* ComponentBase.cpp */,
|
||||
8BA05A8B072073D200365D66 /* ComponentBase.h */,
|
||||
);
|
||||
path = AUBase;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05A99072073D200365D66 /* OtherBases */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05A9A072073D200365D66 /* AUEffectBase.cpp */,
|
||||
8BA05A9B072073D200365D66 /* AUEffectBase.h */,
|
||||
);
|
||||
path = OtherBases;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05AA6072073D200365D66 /* Utility */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F7C347EE0ECE5AF8008ADFB6 /* AUBaseHelper.cpp */,
|
||||
F7C347EF0ECE5AF8008ADFB6 /* AUBaseHelper.h */,
|
||||
8BA05AA7072073D200365D66 /* AUBuffer.cpp */,
|
||||
8BA05AA8072073D200365D66 /* AUBuffer.h */,
|
||||
8BA05AA9072073D200365D66 /* AUDebugDispatcher.cpp */,
|
||||
8BA05AAA072073D200365D66 /* AUDebugDispatcher.h */,
|
||||
8BA05AAB072073D200365D66 /* AUInputFormatConverter.h */,
|
||||
8BA05AAC072073D200365D66 /* AUSilentTimeout.h */,
|
||||
8BA05AAD072073D200365D66 /* AUTimestampGenerator.h */,
|
||||
);
|
||||
path = Utility;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8BA05AEB0720742700365D66 /* PublicUtility */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8BA05B050720754400365D66 /* CAAUParameter.cpp */,
|
||||
8BA05B060720754400365D66 /* CAAUParameter.h */,
|
||||
8BA05ADF0720742100365D66 /* CAAudioChannelLayout.cpp */,
|
||||
8BA05AE00720742100365D66 /* CAAudioChannelLayout.h */,
|
||||
8BA05AE10720742100365D66 /* CAMutex.cpp */,
|
||||
8BA05AE20720742100365D66 /* CAMutex.h */,
|
||||
8BA05AE30720742100365D66 /* CAStreamBasicDescription.cpp */,
|
||||
8BA05AE40720742100365D66 /* CAStreamBasicDescription.h */,
|
||||
3EEA126D089847F5002C6BFC /* CAVectorUnitTypes.h */,
|
||||
3EEA126B089847F5002C6BFC /* CAVectorUnit.cpp */,
|
||||
3EEA126C089847F5002C6BFC /* CAVectorUnit.h */,
|
||||
);
|
||||
name = PublicUtility;
|
||||
path = Extras/CoreAudio/PublicUtility;
|
||||
sourceTree = SYSTEM_DEVELOPER_DIR;
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXHeadersBuildPhase section */
|
||||
8D01CCC70486CAD60068D4B7 /* Headers */ = {
|
||||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8BA05A6E0720730100365D66 /* ParametricVersion.h in Headers */,
|
||||
8BA05AAF072073D300365D66 /* AUBase.h in Headers */,
|
||||
8BA05AB1072073D300365D66 /* AUDispatch.h in Headers */,
|
||||
8BA05AB3072073D300365D66 /* AUInputElement.h in Headers */,
|
||||
8BA05AB5072073D300365D66 /* AUOutputElement.h in Headers */,
|
||||
8BA05AB8072073D300365D66 /* AUScopeElement.h in Headers */,
|
||||
8BA05ABA072073D300365D66 /* ComponentBase.h in Headers */,
|
||||
8BA05AC7072073D300365D66 /* AUEffectBase.h in Headers */,
|
||||
8BA05AD3072073D300365D66 /* AUBuffer.h in Headers */,
|
||||
8BA05AD5072073D300365D66 /* AUDebugDispatcher.h in Headers */,
|
||||
8BA05AD6072073D300365D66 /* AUInputFormatConverter.h in Headers */,
|
||||
8BA05AD7072073D300365D66 /* AUSilentTimeout.h in Headers */,
|
||||
8BA05AD8072073D300365D66 /* AUTimestampGenerator.h in Headers */,
|
||||
8BA05AE60720742100365D66 /* CAAudioChannelLayout.h in Headers */,
|
||||
8BA05AE80720742100365D66 /* CAMutex.h in Headers */,
|
||||
8BA05AEA0720742100365D66 /* CAStreamBasicDescription.h in Headers */,
|
||||
8BA05B080720754400365D66 /* CAAUParameter.h in Headers */,
|
||||
8BC6025C073B072D006C4272 /* Parametric.h in Headers */,
|
||||
3EEA126F089847F5002C6BFC /* CAVectorUnit.h in Headers */,
|
||||
3EEA1270089847F5002C6BFC /* CAVectorUnitTypes.h in Headers */,
|
||||
F7C347F10ECE5AF8008ADFB6 /* AUBaseHelper.h in Headers */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXHeadersBuildPhase section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8D01CCC60486CAD60068D4B7 /* Parametric */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 3E4BA243089833B7007656EC /* Build configuration list for PBXNativeTarget "Parametric" */;
|
||||
buildPhases = (
|
||||
8D01CCC70486CAD60068D4B7 /* Headers */,
|
||||
8D01CCC90486CAD60068D4B7 /* Resources */,
|
||||
8D01CCCB0486CAD60068D4B7 /* Sources */,
|
||||
8D01CCCD0486CAD60068D4B7 /* Frameworks */,
|
||||
8D01CCCF0486CAD60068D4B7 /* Rez */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = Parametric;
|
||||
productInstallPath = "$(HOME)/Library/Bundles";
|
||||
productName = Parametric;
|
||||
productReference = 8D01CCD20486CAD60068D4B7 /* Parametric.component */;
|
||||
productType = "com.apple.product-type.bundle";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
089C1669FE841209C02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 3E4BA247089833B7007656EC /* Build configuration list for PBXProject "Parametric" */;
|
||||
compatibilityVersion = "Xcode 3.1";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 1;
|
||||
knownRegions = (
|
||||
English,
|
||||
Japanese,
|
||||
French,
|
||||
German,
|
||||
);
|
||||
mainGroup = 089C166AFE841209C02AAC07 /* Parametric */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
8D01CCC60486CAD60068D4B7 /* Parametric */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
8D01CCC90486CAD60068D4B7 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8D01CCCA0486CAD60068D4B7 /* InfoPlist.strings in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXRezBuildPhase section */
|
||||
8D01CCCF0486CAD60068D4B7 /* Rez */ = {
|
||||
isa = PBXRezBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8B4119B70749654200361ABE /* Parametric.r in Rez */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXRezBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
8D01CCCB0486CAD60068D4B7 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8BA05A6B0720730100365D66 /* Parametric.cpp in Sources */,
|
||||
8BA05AAE072073D300365D66 /* AUBase.cpp in Sources */,
|
||||
8BA05AB0072073D300365D66 /* AUDispatch.cpp in Sources */,
|
||||
8BA05AB2072073D300365D66 /* AUInputElement.cpp in Sources */,
|
||||
8BA05AB4072073D300365D66 /* AUOutputElement.cpp in Sources */,
|
||||
8BA05AB7072073D300365D66 /* AUScopeElement.cpp in Sources */,
|
||||
8BA05AB9072073D300365D66 /* ComponentBase.cpp in Sources */,
|
||||
8BA05AC6072073D300365D66 /* AUEffectBase.cpp in Sources */,
|
||||
8BA05AD2072073D300365D66 /* AUBuffer.cpp in Sources */,
|
||||
8BA05AD4072073D300365D66 /* AUDebugDispatcher.cpp in Sources */,
|
||||
8BA05AE50720742100365D66 /* CAAudioChannelLayout.cpp in Sources */,
|
||||
8BA05AE70720742100365D66 /* CAMutex.cpp in Sources */,
|
||||
8BA05AE90720742100365D66 /* CAStreamBasicDescription.cpp in Sources */,
|
||||
8BA05B070720754400365D66 /* CAAUParameter.cpp in Sources */,
|
||||
3EEA126E089847F5002C6BFC /* CAVectorUnit.cpp in Sources */,
|
||||
F7C347F00ECE5AF8008ADFB6 /* AUBaseHelper.cpp in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
089C167DFE841241C02AAC07 /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
089C167EFE841241C02AAC07 /* English */,
|
||||
);
|
||||
name = InfoPlist.strings;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
3E4BA244089833B7007656EC /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
EXPORTED_SYMBOLS_FILE = Parametric.exp;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GENERATE_PKGINFO_FILE = YES;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Library/Audio/Plug-Ins/Components/";
|
||||
LIBRARY_STYLE = Bundle;
|
||||
OTHER_LDFLAGS = "-bundle";
|
||||
OTHER_REZFLAGS = "-d ppc_$ppc -d i386_$i386 -d ppc64_$ppc64 -d x86_64_$x86_64 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I \"$(DEVELOPER_DIR)/Examples/CoreAudio/AudioUnits/AUPublic/AUBase\"";
|
||||
PRODUCT_NAME = Parametric;
|
||||
WRAPPER_EXTENSION = component;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
3E4BA245089833B7007656EC /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = (
|
||||
ppc,
|
||||
i386,
|
||||
x86_64,
|
||||
);
|
||||
EXPORTED_SYMBOLS_FILE = Parametric.exp;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GENERATE_PKGINFO_FILE = YES;
|
||||
INFOPLIST_FILE = Info.plist;
|
||||
INSTALL_PATH = "$(HOME)/Library/Audio/Plug-Ins/Components/";
|
||||
LIBRARY_STYLE = Bundle;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
||||
OTHER_LDFLAGS = "-bundle";
|
||||
OTHER_REZFLAGS = "-d ppc_$ppc -d i386_$i386 -d x86_64_$x86_64 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I \"$(DEVELOPER_DIR)/Examples/CoreAudio/AudioUnits/AUPublic/AUBase\"";
|
||||
PRODUCT_NAME = Parametric;
|
||||
SDKROOT = macosx10.5;
|
||||
STRIP_INSTALLED_PRODUCT = YES;
|
||||
STRIP_STYLE = all;
|
||||
WRAPPER_EXTENSION = component;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
3E4BA248089833B7007656EC /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
SDKROOT = macosx10.6;
|
||||
WARNING_CFLAGS = (
|
||||
"-Wmost",
|
||||
"-Wno-four-char-constants",
|
||||
"-Wno-unknown-pragmas",
|
||||
);
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
3E4BA249089833B7007656EC /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
SDKROOT = macosx10.6;
|
||||
WARNING_CFLAGS = (
|
||||
"-Wmost",
|
||||
"-Wno-four-char-constants",
|
||||
"-Wno-unknown-pragmas",
|
||||
);
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
3E4BA243089833B7007656EC /* Build configuration list for PBXNativeTarget "Parametric" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
3E4BA244089833B7007656EC /* Debug */,
|
||||
3E4BA245089833B7007656EC /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Debug;
|
||||
};
|
||||
3E4BA247089833B7007656EC /* Build configuration list for PBXProject "Parametric" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
3E4BA248089833B7007656EC /* Debug */,
|
||||
3E4BA249089833B7007656EC /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Debug;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 089C1669FE841209C02AAC07 /* Project object */;
|
||||
}
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* File: ConsoleXSubOutVersion.h
|
||||
* File: ParametricVersion.h
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 3/8/24
|
||||
* Created: 4/22/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
|
|
@ -39,19 +39,19 @@
|
|||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
#ifndef __ConsoleXSubOutVersion_h__
|
||||
#define __ConsoleXSubOutVersion_h__
|
||||
#ifndef __ParametricVersion_h__
|
||||
#define __ParametricVersion_h__
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#define kConsoleXSubOutVersion 0xFFFFFFFF
|
||||
#define kParametricVersion 0xFFFFFFFF
|
||||
#else
|
||||
#define kConsoleXSubOutVersion 0x00010000
|
||||
#define kParametricVersion 0x00010000
|
||||
#endif
|
||||
|
||||
//~~~~~~~~~~~~~~ Change!!! ~~~~~~~~~~~~~~~~~~~~~//
|
||||
#define ConsoleXSubOut_COMP_MANF 'Dthr'
|
||||
#define ConsoleXSubOut_COMP_SUBTYPE 'cnxo'
|
||||
#define Parametric_COMP_MANF 'Dthr'
|
||||
#define Parametric_COMP_SUBTYPE 'para'
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
|
||||
|
||||
#endif
|
||||
BIN
plugins/MacAU/Pop3/English.lproj/InfoPlist.strings
Executable file
BIN
plugins/MacAU/Pop3/English.lproj/InfoPlist.strings
Executable file
Binary file not shown.
317
plugins/MacAU/Pop3/Pop3.cpp
Executable file
317
plugins/MacAU/Pop3/Pop3.cpp
Executable file
|
|
@ -0,0 +1,317 @@
|
|||
/*
|
||||
* File: Pop3.cpp
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 4/19/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
/*=============================================================================
|
||||
Pop3.cpp
|
||||
|
||||
=============================================================================*/
|
||||
#include "Pop3.h"
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
COMPONENT_ENTRY(Pop3)
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Pop3::Pop3
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Pop3::Pop3(AudioUnit component)
|
||||
: AUEffectBase(component)
|
||||
{
|
||||
CreateElements();
|
||||
Globals()->UseIndexedParameters(kNumberOfParameters);
|
||||
SetParameter(kParam_A, kDefaultValue_ParamA );
|
||||
SetParameter(kParam_B, kDefaultValue_ParamB );
|
||||
SetParameter(kParam_C, kDefaultValue_ParamC );
|
||||
SetParameter(kParam_D, kDefaultValue_ParamD );
|
||||
SetParameter(kParam_E, kDefaultValue_ParamE );
|
||||
SetParameter(kParam_F, kDefaultValue_ParamF );
|
||||
SetParameter(kParam_G, kDefaultValue_ParamG );
|
||||
SetParameter(kParam_H, kDefaultValue_ParamH );
|
||||
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
mDebugDispatcher = new AUDebugDispatcher (this);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Pop3::GetParameterValueStrings
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Pop3::GetParameterValueStrings(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
CFArrayRef * outStrings)
|
||||
{
|
||||
|
||||
return kAudioUnitErr_InvalidProperty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Pop3::GetParameterInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Pop3::GetParameterInfo(AudioUnitScope inScope,
|
||||
AudioUnitParameterID inParameterID,
|
||||
AudioUnitParameterInfo &outParameterInfo )
|
||||
{
|
||||
ComponentResult result = noErr;
|
||||
|
||||
outParameterInfo.flags = kAudioUnitParameterFlag_IsWritable
|
||||
| kAudioUnitParameterFlag_IsReadable;
|
||||
|
||||
if (inScope == kAudioUnitScope_Global) {
|
||||
switch(inParameterID)
|
||||
{
|
||||
case kParam_A:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterAName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamA;
|
||||
break;
|
||||
case kParam_B:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterBName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamB;
|
||||
break;
|
||||
case kParam_C:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterCName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamC;
|
||||
break;
|
||||
case kParam_D:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterDName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamD;
|
||||
break;
|
||||
case kParam_E:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterEName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamE;
|
||||
break;
|
||||
case kParam_F:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterFName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamF;
|
||||
break;
|
||||
case kParam_G:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterGName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamG;
|
||||
break;
|
||||
case kParam_H:
|
||||
AUBase::FillInParameterName (outParameterInfo, kParameterHName, false);
|
||||
outParameterInfo.unit = kAudioUnitParameterUnit_Generic;
|
||||
outParameterInfo.minValue = 0.0;
|
||||
outParameterInfo.maxValue = 1.0;
|
||||
outParameterInfo.defaultValue = kDefaultValue_ParamH;
|
||||
break;
|
||||
default:
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
result = kAudioUnitErr_InvalidParameter;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Pop3::GetPropertyInfo
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Pop3::GetPropertyInfo (AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
UInt32 & outDataSize,
|
||||
Boolean & outWritable)
|
||||
{
|
||||
return AUEffectBase::GetPropertyInfo (inID, inScope, inElement, outDataSize, outWritable);
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// state that plugin supports only stereo-in/stereo-out processing
|
||||
UInt32 Pop3::SupportedNumChannels(const AUChannelInfo ** outInfo)
|
||||
{
|
||||
if (outInfo != NULL)
|
||||
{
|
||||
static AUChannelInfo info;
|
||||
info.inChannels = 2;
|
||||
info.outChannels = 2;
|
||||
*outInfo = &info;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Pop3::GetProperty
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Pop3::GetProperty( AudioUnitPropertyID inID,
|
||||
AudioUnitScope inScope,
|
||||
AudioUnitElement inElement,
|
||||
void * outData )
|
||||
{
|
||||
return AUEffectBase::GetProperty (inID, inScope, inElement, outData);
|
||||
}
|
||||
|
||||
// Pop3::Initialize
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Pop3::Initialize()
|
||||
{
|
||||
ComponentResult result = AUEffectBase::Initialize();
|
||||
if (result == noErr)
|
||||
Reset(kAudioUnitScope_Global, 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
#pragma mark ____Pop3EffectKernel
|
||||
|
||||
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Pop3::Pop3Kernel::Reset()
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ComponentResult Pop3::Reset(AudioUnitScope inScope, AudioUnitElement inElement)
|
||||
{
|
||||
popCompL = 1.0;
|
||||
popCompR = 1.0;
|
||||
popGate = 1.0;
|
||||
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
return noErr;
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Pop3::ProcessBufferLists
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
OSStatus Pop3::ProcessBufferLists(AudioUnitRenderActionFlags & ioActionFlags,
|
||||
const AudioBufferList & inBuffer,
|
||||
AudioBufferList & outBuffer,
|
||||
UInt32 inFramesToProcess)
|
||||
{
|
||||
Float32 * inputL = (Float32*)(inBuffer.mBuffers[0].mData);
|
||||
Float32 * inputR = (Float32*)(inBuffer.mBuffers[1].mData);
|
||||
Float32 * outputL = (Float32*)(outBuffer.mBuffers[0].mData);
|
||||
Float32 * outputR = (Float32*)(outBuffer.mBuffers[1].mData);
|
||||
UInt32 nSampleFrames = inFramesToProcess;
|
||||
double overallscale = 1.0;
|
||||
overallscale /= 44100.0;
|
||||
overallscale *= GetSampleRate();
|
||||
|
||||
double compThresh = pow(GetParameter( kParam_A ),4);
|
||||
double compRatio = 1.0-pow(1.0-GetParameter( kParam_B ),2);
|
||||
double compAttack = 1.0/(((pow(GetParameter( kParam_C ),3)*5000.0)+500.0)*overallscale);
|
||||
double compRelease = 1.0/(((pow(GetParameter( kParam_D ),5)*50000.0)+500.0)*overallscale);
|
||||
|
||||
double gateThresh = pow(GetParameter( kParam_E ),4);
|
||||
double gateRatio = 1.0-pow(1.0-GetParameter( kParam_F ),2);
|
||||
double gateSustain = M_PI_2 * pow(GetParameter( kParam_G )+1.0,4.0);
|
||||
double gateRelease = 1.0/(((pow(GetParameter( kParam_H ),5)*500000.0)+500.0)*overallscale);
|
||||
|
||||
while (nSampleFrames-- > 0) {
|
||||
double inputSampleL = *inputL;
|
||||
double inputSampleR = *inputR;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (fabs(inputSampleL) > compThresh) { //compression L
|
||||
popCompL -= (popCompL * compAttack);
|
||||
popCompL += ((compThresh / fabs(inputSampleL))*compAttack);
|
||||
} else popCompL = (popCompL*(1.0-compRelease))+compRelease;
|
||||
if (popCompL < 0.0) popCompL = 0.0;
|
||||
if (fabs(inputSampleR) > compThresh) { //compression R
|
||||
popCompR -= (popCompR * compAttack);
|
||||
popCompR += ((compThresh / fabs(inputSampleR))*compAttack);
|
||||
} else popCompR = (popCompR*(1.0-compRelease))+compRelease;
|
||||
if (popCompR < 0.0) popCompR = 0.0;
|
||||
if (popCompL > popCompR) popCompL -= (popCompL * compAttack);
|
||||
if (popCompR > popCompL) popCompR -= (popCompR * compAttack);
|
||||
if (fabs(inputSampleL) > gateThresh) popGate = gateSustain;
|
||||
else if (fabs(inputSampleR) > gateThresh) popGate = gateSustain;
|
||||
else popGate *= (1.0-gateRelease);
|
||||
if (popGate < 0.0) popGate = 0.0;
|
||||
if (popCompL < 1.0) inputSampleL *= ((1.0-compRatio)+(popCompL*compRatio));
|
||||
if (popCompR < 1.0) inputSampleR *= ((1.0-compRatio)+(popCompR*compRatio));
|
||||
if (popGate < M_PI_2) {
|
||||
inputSampleL *= ((1.0-gateRatio)+(sin(popGate)*gateRatio));
|
||||
inputSampleR *= ((1.0-gateRatio)+(sin(popGate)*gateRatio));
|
||||
}
|
||||
|
||||
//begin 32 bit stereo floating point dither
|
||||
int expon; frexpf((float)inputSampleL, &expon);
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
inputSampleL += ((double(fpdL)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
frexpf((float)inputSampleR, &expon);
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
inputSampleR += ((double(fpdR)-uint32_t(0x7fffffff)) * 5.5e-36l * pow(2,expon+62));
|
||||
//end 32 bit stereo floating point dither
|
||||
|
||||
*outputL = inputSampleL;
|
||||
*outputR = inputSampleR;
|
||||
//direct stereo out
|
||||
|
||||
inputL += 1;
|
||||
inputR += 1;
|
||||
outputL += 1;
|
||||
outputR += 1;
|
||||
}
|
||||
return noErr;
|
||||
}
|
||||
|
||||
1
plugins/MacAU/Pop3/Pop3.exp
Executable file
1
plugins/MacAU/Pop3/Pop3.exp
Executable file
|
|
@ -0,0 +1 @@
|
|||
_Pop3Entry
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* File: ConsoleXSubIn.h
|
||||
* File: Pop3.h
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 3/8/24
|
||||
* Created: 4/19/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
|
|
@ -40,34 +40,58 @@
|
|||
*
|
||||
*/
|
||||
#include "AUEffectBase.h"
|
||||
#include "ConsoleXSubInVersion.h"
|
||||
#include "Pop3Version.h"
|
||||
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
#include "AUDebugDispatcher.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef __ConsoleXSubIn_h__
|
||||
#define __ConsoleXSubIn_h__
|
||||
#ifndef __Pop3_h__
|
||||
#define __Pop3_h__
|
||||
|
||||
|
||||
#pragma mark ____ConsoleXSubIn Parameters
|
||||
#pragma mark ____Pop3 Parameters
|
||||
|
||||
// parameters
|
||||
//Alter the name if desired, but using the plugin name is a start
|
||||
static const float kDefaultValue_ParamA = 1.0;
|
||||
static const float kDefaultValue_ParamB = 0.5;
|
||||
static const float kDefaultValue_ParamC = 0.5;
|
||||
static const float kDefaultValue_ParamD = 0.5;
|
||||
static const float kDefaultValue_ParamE = 0.0;
|
||||
static const float kDefaultValue_ParamF = 0.5;
|
||||
static const float kDefaultValue_ParamG = 0.5;
|
||||
static const float kDefaultValue_ParamH = 0.5;
|
||||
|
||||
static CFStringRef kParameterAName = CFSTR("Thresld");
|
||||
static CFStringRef kParameterBName = CFSTR("C Ratio");
|
||||
static CFStringRef kParameterCName = CFSTR("C Atk");
|
||||
static CFStringRef kParameterDName = CFSTR("C Rls");
|
||||
static CFStringRef kParameterEName = CFSTR("Thresld");
|
||||
static CFStringRef kParameterFName = CFSTR("G Ratio");
|
||||
static CFStringRef kParameterGName = CFSTR("G Sust");
|
||||
static CFStringRef kParameterHName = CFSTR("G Rls");
|
||||
|
||||
enum {
|
||||
kParam_A =0,
|
||||
kParam_B =1,
|
||||
kParam_C =2,
|
||||
kParam_D =3,
|
||||
kParam_E =4,
|
||||
kParam_F =5,
|
||||
kParam_G =6,
|
||||
kParam_H =7,
|
||||
//Add your parameters here...
|
||||
kNumberOfParameters=0
|
||||
kNumberOfParameters=8
|
||||
};
|
||||
|
||||
#pragma mark ____ConsoleXSubIn
|
||||
class ConsoleXSubIn : public AUEffectBase
|
||||
#pragma mark ____Pop3
|
||||
class Pop3 : public AUEffectBase
|
||||
{
|
||||
public:
|
||||
ConsoleXSubIn(AudioUnit component);
|
||||
Pop3(AudioUnit component);
|
||||
#if AU_DEBUG_DISPATCHER
|
||||
virtual ~ConsoleXSubIn () { delete mDebugDispatcher; }
|
||||
virtual ~Pop3 () { delete mDebugDispatcher; }
|
||||
#endif
|
||||
|
||||
virtual ComponentResult Reset(AudioUnitScope inScope, AudioUnitElement inElement);
|
||||
|
|
@ -102,24 +126,13 @@ public:
|
|||
virtual Float64 GetLatency() {return (1.0/GetSampleRate())*0.0;} // in SECONDS! gsr * a number = in samples
|
||||
|
||||
/*! @method Version */
|
||||
virtual ComponentResult Version() { return kConsoleXSubInVersion; }
|
||||
virtual ComponentResult Version() { return kPop3Version; }
|
||||
|
||||
private:
|
||||
double popCompL;
|
||||
double popCompR;
|
||||
double popGate;
|
||||
|
||||
private:
|
||||
enum {
|
||||
biq_freq,
|
||||
biq_reso,
|
||||
biq_a0,
|
||||
biq_a1,
|
||||
biq_a2,
|
||||
biq_b1,
|
||||
biq_b2,
|
||||
biq_sL1,
|
||||
biq_sL2,
|
||||
biq_sR1,
|
||||
biq_sR2,
|
||||
biq_total
|
||||
};
|
||||
double biquad[biq_total];
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
};
|
||||
61
plugins/MacAU/Pop3/Pop3.r
Executable file
61
plugins/MacAU/Pop3/Pop3.r
Executable file
|
|
@ -0,0 +1,61 @@
|
|||
/*
|
||||
* File: Pop3.r
|
||||
*
|
||||
* Version: 1.0
|
||||
*
|
||||
* Created: 4/19/24
|
||||
*
|
||||
* Copyright: Copyright © 2024 Airwindows, Airwindows uses the MIT license
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
* or redistribution of this Apple software constitutes acceptance of these terms. If you do
|
||||
* not agree with these terms, please do not use, install, modify or redistribute this Apple
|
||||
* software.
|
||||
*
|
||||
* In consideration of your agreement to abide by the following terms, and subject to these terms,
|
||||
* Apple grants you a personal, non-exclusive license, under Apple's copyrights in this
|
||||
* original Apple software (the "Apple Software"), to use, reproduce, modify and redistribute the
|
||||
* Apple Software, with or without modifications, in source and/or binary forms; provided that if you
|
||||
* redistribute the Apple Software in its entirety and without modifications, you must retain this
|
||||
* notice and the following text and disclaimers in all such redistributions of the Apple Software.
|
||||
* Neither the name, trademarks, service marks or logos of Apple Computer, Inc. may be used to
|
||||
* endorse or promote products derived from the Apple Software without specific prior written
|
||||
* permission from Apple. Except as expressly stated in this notice, no other rights or
|
||||
* licenses, express or implied, are granted by Apple herein, including but not limited to any
|
||||
* patent rights that may be infringed by your derivative works or by other works in which the
|
||||
* Apple Software may be incorporated.
|
||||
*
|
||||
* The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
||||
* IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
|
||||
* AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE
|
||||
* OR IN COMBINATION WITH YOUR PRODUCTS.
|
||||
*
|
||||
* IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
|
||||
* REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER
|
||||
* UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN
|
||||
* IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
#include <AudioUnit/AudioUnit.r>
|
||||
|
||||
#include "Pop3Version.h"
|
||||
|
||||
// Note that resource IDs must be spaced 2 apart for the 'STR ' name and description
|
||||
#define kAudioUnitResID_Pop3 1000
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pop3~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
#define RES_ID kAudioUnitResID_Pop3
|
||||
#define COMP_TYPE kAudioUnitType_Effect
|
||||
#define COMP_SUBTYPE Pop3_COMP_SUBTYPE
|
||||
#define COMP_MANUF Pop3_COMP_MANF
|
||||
|
||||
#define VERSION kPop3Version
|
||||
#define NAME "Airwindows: Pop3"
|
||||
#define DESCRIPTION "Pop3 AU"
|
||||
#define ENTRY_POINT "Pop3Entry"
|
||||
|
||||
#include "AUResources.r"
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
089C1669FE841209C02AAC07 /* Project object */ = {
|
||||
activeBuildConfigurationName = Release;
|
||||
activeTarget = 8D01CCC60486CAD60068D4B7 /* ConsoleXSubIn */;
|
||||
activeTarget = 8D01CCC60486CAD60068D4B7 /* Pop3 */;
|
||||
codeSenseManager = 8BD3CCB9148830B20062E48C /* Code sense */;
|
||||
perUserDictionary = {
|
||||
PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = {
|
||||
|
|
@ -49,32 +49,42 @@
|
|||
PBXFileDataSource_Warnings_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXPerProjectTemplateStateSaveDate = 733431741;
|
||||
PBXWorkspaceStateSaveDate = 733431741;
|
||||
PBXPerProjectTemplateStateSaveDate = 736203106;
|
||||
PBXWorkspaceStateSaveDate = 736203106;
|
||||
};
|
||||
perUserProjectItems = {
|
||||
8BC5F3852BA9EE2000DF10D8 /* PBXTextBookmark */ = 8BC5F3852BA9EE2000DF10D8 /* PBXTextBookmark */;
|
||||
8BFF258A2BB74C2000B6740F /* PBXTextBookmark */ = 8BFF258A2BB74C2000B6740F /* PBXTextBookmark */;
|
||||
8BFF258B2BB74C2000B6740F /* PBXTextBookmark */ = 8BFF258B2BB74C2000B6740F /* PBXTextBookmark */;
|
||||
8B822C9D2BD99CD400D81A37 /* PBXTextBookmark */ = 8B822C9D2BD99CD400D81A37 /* PBXTextBookmark */;
|
||||
8BCB2AB62BE19361001B6E66 /* PBXTextBookmark */ = 8BCB2AB62BE19361001B6E66 /* PBXTextBookmark */;
|
||||
8BFC7C772BD30BBA0022A792 /* PBXTextBookmark */ = 8BFC7C772BD30BBA0022A792 /* PBXTextBookmark */;
|
||||
};
|
||||
sourceControlManager = 8BD3CCB8148830B20062E48C /* Source Control */;
|
||||
userBuildSettings = {
|
||||
};
|
||||
};
|
||||
8BA05A660720730100365D66 /* ConsoleXSubIn.cpp */ = {
|
||||
8B822C9D2BD99CD400D81A37 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A660720730100365D66 /* Pop3.cpp */;
|
||||
name = "Pop3.cpp: 236";
|
||||
rLen = 0;
|
||||
rLoc = 10072;
|
||||
rType = 0;
|
||||
vrLen = 49;
|
||||
vrLoc = 13488;
|
||||
};
|
||||
8BA05A660720730100365D66 /* Pop3.cpp */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1127, 4878}}";
|
||||
sepNavSelRange = "{9038, 1677}";
|
||||
sepNavVisRange = "{9557, 1778}";
|
||||
sepNavWindowFrame = "{{483, 59}, {1174, 819}}";
|
||||
sepNavIntBoundsRect = "{{0, 0}, {570, 5796}}";
|
||||
sepNavSelRange = "{10072, 0}";
|
||||
sepNavVisRange = "{0, 0}";
|
||||
sepNavWindowFrame = "{{480, 38}, {961, 840}}";
|
||||
};
|
||||
};
|
||||
8BA05A690720730100365D66 /* ConsoleXSubInVersion.h */ = {
|
||||
8BA05A690720730100365D66 /* Pop3Version.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1127, 1062}}";
|
||||
sepNavSelRange = "{2933, 0}";
|
||||
sepNavVisRange = "{865, 2131}";
|
||||
sepNavWindowFrame = "{{15, 54}, {1174, 819}}";
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1056, 1062}}";
|
||||
sepNavSelRange = "{2871, 0}";
|
||||
sepNavVisRange = "{756, 2178}";
|
||||
sepNavWindowFrame = "{{701, 38}, {823, 840}}";
|
||||
};
|
||||
};
|
||||
8BA05A7F072073D200365D66 /* AUBase.cpp */ = {
|
||||
|
|
@ -84,24 +94,24 @@
|
|||
sepNavVisRange = "{0, 1336}";
|
||||
};
|
||||
};
|
||||
8BC5F3852BA9EE2000DF10D8 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A660720730100365D66 /* ConsoleXSubIn.cpp */;
|
||||
name = "ConsoleXSubIn.cpp: 191";
|
||||
rLen = 0;
|
||||
rLoc = 8375;
|
||||
rType = 0;
|
||||
vrLen = 222;
|
||||
vrLoc = 8315;
|
||||
};
|
||||
8BC6025B073B072D006C4272 /* ConsoleXSubIn.h */ = {
|
||||
8BC6025B073B072D006C4272 /* Pop3.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {554, 2358}}";
|
||||
sepNavSelRange = "{4903, 0}";
|
||||
sepNavVisRange = "{0, 0}";
|
||||
sepNavWindowFrame = "{{561, 59}, {1174, 819}}";
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1146, 2574}}";
|
||||
sepNavSelRange = "{5482, 0}";
|
||||
sepNavVisRange = "{4307, 1368}";
|
||||
sepNavWindowFrame = "{{758, 36}, {823, 840}}";
|
||||
};
|
||||
};
|
||||
8BCB2AB62BE19361001B6E66 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BA05A660720730100365D66 /* Pop3.cpp */;
|
||||
name = "Pop3.cpp: 236";
|
||||
rLen = 0;
|
||||
rLoc = 10072;
|
||||
rType = 0;
|
||||
vrLen = 0;
|
||||
vrLoc = 0;
|
||||
};
|
||||
8BD3CCB8148830B20062E48C /* Source Control */ = {
|
||||
isa = PBXSourceControlManager;
|
||||
fallbackIsa = XCSourceControlManager;
|
||||
|
|
@ -116,27 +126,17 @@
|
|||
isa = PBXCodeSenseManager;
|
||||
indexTemplatePath = "";
|
||||
};
|
||||
8BFF258A2BB74C2000B6740F /* PBXTextBookmark */ = {
|
||||
8BFC7C772BD30BBA0022A792 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* ConsoleXSubIn.h */;
|
||||
name = "ConsoleXSubIn.h: 124";
|
||||
fRef = 8BA05A690720730100365D66 /* Pop3Version.h */;
|
||||
name = "Pop3Version.h: 54";
|
||||
rLen = 0;
|
||||
rLoc = 4903;
|
||||
rLoc = 2871;
|
||||
rType = 0;
|
||||
vrLen = 0;
|
||||
vrLoc = 0;
|
||||
vrLen = 179;
|
||||
vrLoc = 2754;
|
||||
};
|
||||
8BFF258B2BB74C2000B6740F /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = 8BC6025B073B072D006C4272 /* ConsoleXSubIn.h */;
|
||||
name = "ConsoleXSubIn.h: 124";
|
||||
rLen = 0;
|
||||
rLoc = 4903;
|
||||
rType = 0;
|
||||
vrLen = 0;
|
||||
vrLoc = 0;
|
||||
};
|
||||
8D01CCC60486CAD60068D4B7 /* ConsoleXSubIn */ = {
|
||||
8D01CCC60486CAD60068D4B7 /* Pop3 */ = {
|
||||
activeExec = 0;
|
||||
};
|
||||
}
|
||||
|
|
@ -178,7 +178,7 @@
|
|||
<key>FavBarConfig</key>
|
||||
<dict>
|
||||
<key>PBXProjectModuleGUID</key>
|
||||
<string>8BC7CBF82B9BA0DF006D077E</string>
|
||||
<string>8BFC7BE92BD2F5780022A792</string>
|
||||
<key>XCBarModuleItemNames</key>
|
||||
<dict/>
|
||||
<key>XCBarModuleItems</key>
|
||||
|
|
@ -324,7 +324,7 @@
|
|||
<real>185</real>
|
||||
</array>
|
||||
<key>RubberWindowFrame</key>
|
||||
<string>654 310 810 487 0 0 1440 878 </string>
|
||||
<string>606 178 810 487 0 0 1440 878 </string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>PBXSmartGroupTreeModule</string>
|
||||
|
|
@ -338,25 +338,25 @@
|
|||
<key>ContentConfiguration</key>
|
||||
<dict>
|
||||
<key>PBXProjectModuleGUID</key>
|
||||
<string>8BC7CBF32B9BA0DF006D077E</string>
|
||||
<string>8BFC7BE42BD2F5780022A792</string>
|
||||
<key>PBXProjectModuleLabel</key>
|
||||
<string>ConsoleXSubOut.h</string>
|
||||
<string>Pop3.cpp</string>
|
||||
<key>PBXSplitModuleInNavigatorKey</key>
|
||||
<dict>
|
||||
<key>Split0</key>
|
||||
<dict>
|
||||
<key>PBXProjectModuleGUID</key>
|
||||
<string>8BC7CBF42B9BA0DF006D077E</string>
|
||||
<string>8BFC7BE52BD2F5780022A792</string>
|
||||
<key>PBXProjectModuleLabel</key>
|
||||
<string>ConsoleXSubOut.h</string>
|
||||
<string>Pop3.cpp</string>
|
||||
<key>_historyCapacity</key>
|
||||
<integer>0</integer>
|
||||
<key>bookmark</key>
|
||||
<string>8BFF26452BB75A9A00B6740F</string>
|
||||
<string>8BCB2AB62BE19361001B6E66</string>
|
||||
<key>history</key>
|
||||
<array>
|
||||
<string>8BFF26432BB75A9A00B6740F</string>
|
||||
<string>8BFF26442BB75A9A00B6740F</string>
|
||||
<string>8BFC7C772BD30BBA0022A792</string>
|
||||
<string>8B822C9D2BD99CD400D81A37</string>
|
||||
</array>
|
||||
</dict>
|
||||
<key>SplitCount</key>
|
||||
|
|
@ -370,18 +370,18 @@
|
|||
<key>GeometryConfiguration</key>
|
||||
<dict>
|
||||
<key>Frame</key>
|
||||
<string>{{0, 0}, {603, 132}}</string>
|
||||
<string>{{0, 0}, {603, 32}}</string>
|
||||
<key>RubberWindowFrame</key>
|
||||
<string>654 310 810 487 0 0 1440 878 </string>
|
||||
<string>606 178 810 487 0 0 1440 878 </string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>PBXNavigatorGroup</string>
|
||||
<key>Proportion</key>
|
||||
<string>132pt</string>
|
||||
<string>32pt</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Proportion</key>
|
||||
<string>309pt</string>
|
||||
<string>409pt</string>
|
||||
<key>Tabs</key>
|
||||
<array>
|
||||
<dict>
|
||||
|
|
@ -395,9 +395,9 @@
|
|||
<key>GeometryConfiguration</key>
|
||||
<dict>
|
||||
<key>Frame</key>
|
||||
<string>{{10, 27}, {603, 282}}</string>
|
||||
<string>{{10, 27}, {603, 382}}</string>
|
||||
<key>RubberWindowFrame</key>
|
||||
<string>654 310 810 487 0 0 1440 878 </string>
|
||||
<string>606 178 810 487 0 0 1440 878 </string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>XCDetailModule</string>
|
||||
|
|
@ -451,7 +451,7 @@
|
|||
<key>GeometryConfiguration</key>
|
||||
<dict>
|
||||
<key>Frame</key>
|
||||
<string>{{10, 27}, {603, 414}}</string>
|
||||
<string>{{10, 27}, {603, 282}}</string>
|
||||
</dict>
|
||||
<key>Module</key>
|
||||
<string>PBXBuildResultsModule</string>
|
||||
|
|
@ -479,11 +479,11 @@
|
|||
</array>
|
||||
<key>TableOfContents</key>
|
||||
<array>
|
||||
<string>8BFF26462BB75A9A00B6740F</string>
|
||||
<string>8BCB2AB72BE19361001B6E66</string>
|
||||
<string>1CA23ED40692098700951B8B</string>
|
||||
<string>8BFF26472BB75A9A00B6740F</string>
|
||||
<string>8BC7CBF32B9BA0DF006D077E</string>
|
||||
<string>8BFF26482BB75A9A00B6740F</string>
|
||||
<string>8BCB2AB82BE19361001B6E66</string>
|
||||
<string>8BFC7BE42BD2F5780022A792</string>
|
||||
<string>8BCB2AB92BE19361001B6E66</string>
|
||||
<string>1CA23EDF0692099D00951B8B</string>
|
||||
<string>1CA23EE00692099D00951B8B</string>
|
||||
<string>1CA23EE10692099D00951B8B</string>
|
||||
|
|
@ -636,7 +636,7 @@
|
|||
<key>StatusbarIsVisible</key>
|
||||
<true/>
|
||||
<key>TimeStamp</key>
|
||||
<real>733436570.61748195</real>
|
||||
<real>736203617.89043903</real>
|
||||
<key>ToolbarConfigUserDefaultsMinorVersion</key>
|
||||
<string>2</string>
|
||||
<key>ToolbarDisplayMode</key>
|
||||
|
|
@ -653,10 +653,10 @@
|
|||
<integer>5</integer>
|
||||
<key>WindowOrderList</key>
|
||||
<array>
|
||||
<string>/Users/christopherjohnson/Desktop/airwindows/plugins/MacAU/ConsoleXSubOut/ConsoleXSubOut.xcodeproj</string>
|
||||
<string>/Users/christopherjohnson/Desktop/airwindows/plugins/MacAU/Pop3/Pop3.xcodeproj</string>
|
||||
</array>
|
||||
<key>WindowString</key>
|
||||
<string>654 310 810 487 0 0 1440 878 </string>
|
||||
<string>606 178 810 487 0 0 1440 878 </string>
|
||||
<key>WindowToolsV3</key>
|
||||
<array>
|
||||
<dict>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue