mirror of
https://github.com/airwindows/airwindows.git
synced 2026-05-21 06:46:21 -06:00
CloudCoat
This commit is contained in:
parent
46b61cb33b
commit
6e9aeb129a
165 changed files with 52580 additions and 1 deletions
BIN
plugins/WinVST/CloudCoat/.vs/Console4Channel64/v14/.suo
Executable file
BIN
plugins/WinVST/CloudCoat/.vs/Console4Channel64/v14/.suo
Executable file
Binary file not shown.
BIN
plugins/WinVST/CloudCoat/.vs/VSTProject/v14/.suo
Executable file
BIN
plugins/WinVST/CloudCoat/.vs/VSTProject/v14/.suo
Executable file
Binary file not shown.
247
plugins/WinVST/CloudCoat/CloudCoat.cpp
Executable file
247
plugins/WinVST/CloudCoat/CloudCoat.cpp
Executable file
|
|
@ -0,0 +1,247 @@
|
|||
/* ========================================
|
||||
* CloudCoat - CloudCoat.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __CloudCoat_H
|
||||
#include "CloudCoat.h"
|
||||
#endif
|
||||
|
||||
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new CloudCoat(audioMaster);}
|
||||
|
||||
CloudCoat::CloudCoat(audioMasterCallback audioMaster) :
|
||||
AudioEffectX(audioMaster, kNumPrograms, kNumParameters)
|
||||
{
|
||||
A = 0.5;
|
||||
B = 0.5;
|
||||
C = 1.0;
|
||||
|
||||
for(int count = 0; count < kshortA+2; count++) {aAL[count] = 0.0; aAR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortB+2; count++) {aBL[count] = 0.0; aBR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortC+2; count++) {aCL[count] = 0.0; aCR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortD+2; count++) {aDL[count] = 0.0; aDR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortE+2; count++) {aEL[count] = 0.0; aER[count] = 0.0;}
|
||||
for(int count = 0; count < kshortF+2; count++) {aFL[count] = 0.0; aFR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortG+2; count++) {aGL[count] = 0.0; aGR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortH+2; count++) {aHL[count] = 0.0; aHR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortI+2; count++) {aIL[count] = 0.0; aIR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortJ+2; count++) {aJL[count] = 0.0; aJR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortK+2; count++) {aKL[count] = 0.0; aKR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortL+2; count++) {aLL[count] = 0.0; aLR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortM+2; count++) {aML[count] = 0.0; aMR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortN+2; count++) {aNL[count] = 0.0; aNR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortO+2; count++) {aOL[count] = 0.0; aOR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortP+2; count++) {aPL[count] = 0.0; aPR[count] = 0.0;}
|
||||
|
||||
feedbackAL = 0.0;
|
||||
feedbackBL = 0.0;
|
||||
feedbackCL = 0.0;
|
||||
feedbackDL = 0.0;
|
||||
|
||||
previousAL = 0.0;
|
||||
previousBL = 0.0;
|
||||
previousCL = 0.0;
|
||||
previousDL = 0.0;
|
||||
previousEL = 0.0;
|
||||
|
||||
feedbackDR = 0.0;
|
||||
feedbackHR = 0.0;
|
||||
feedbackLR = 0.0;
|
||||
feedbackPR = 0.0;
|
||||
|
||||
avgAL = 0.0;
|
||||
avgBL = 0.0;
|
||||
avgCL = 0.0;
|
||||
avgDL = 0.0;
|
||||
|
||||
avgDR = 0.0;
|
||||
avgHR = 0.0;
|
||||
avgLR = 0.0;
|
||||
avgPR = 0.0;
|
||||
|
||||
previousAR = 0.0;
|
||||
previousBR = 0.0;
|
||||
previousCR = 0.0;
|
||||
previousDR = 0.0;
|
||||
previousER = 0.0;
|
||||
|
||||
prevMulchAL = 0.0;
|
||||
prevMulchAR = 0.0;
|
||||
|
||||
tailL = 0.0;
|
||||
tailR = 0.0;
|
||||
|
||||
for(int count = 0; count < 6; count++) {lastRefL[count] = 0.0; lastRefR[count] = 0.0;}
|
||||
|
||||
countAL = 1;
|
||||
countBL = 1;
|
||||
countCL = 1;
|
||||
countDL = 1;
|
||||
countEL = 1;
|
||||
countFL = 1;
|
||||
countGL = 1;
|
||||
countHL = 1;
|
||||
countIL = 1;
|
||||
countJL = 1;
|
||||
countKL = 1;
|
||||
countLL = 1;
|
||||
countML = 1;
|
||||
countNL = 1;
|
||||
countOL = 1;
|
||||
countPL = 1;
|
||||
|
||||
countAR = 1;
|
||||
countBR = 1;
|
||||
countCR = 1;
|
||||
countDR = 1;
|
||||
countER = 1;
|
||||
countFR = 1;
|
||||
countGR = 1;
|
||||
countHR = 1;
|
||||
countIR = 1;
|
||||
countJR = 1;
|
||||
countKR = 1;
|
||||
countLR = 1;
|
||||
countMR = 1;
|
||||
countNR = 1;
|
||||
countOR = 1;
|
||||
countPR = 1;
|
||||
|
||||
cycle = 0;
|
||||
|
||||
shortA = 336;
|
||||
shortB = 1660;
|
||||
shortC = 386;
|
||||
shortD = 623;
|
||||
shortE = 693;
|
||||
shortF = 1079;
|
||||
shortG = 891;
|
||||
shortH = 1574;
|
||||
shortI = 24;
|
||||
shortJ = 2641;
|
||||
shortK = 1239;
|
||||
shortL = 775;
|
||||
shortM = 11;
|
||||
shortN = 3104;
|
||||
shortO = 55;
|
||||
shortP = 2366;
|
||||
prevcloudcoat = -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
|
||||
}
|
||||
|
||||
CloudCoat::~CloudCoat() {}
|
||||
VstInt32 CloudCoat::getVendorVersion () {return 1000;}
|
||||
void CloudCoat::setProgramName(char *name) {vst_strncpy (_programName, name, kVstMaxProgNameLen);}
|
||||
void CloudCoat::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 CloudCoat::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 CloudCoat::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 CloudCoat::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 CloudCoat::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 CloudCoat::getParameterName(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "Select", kVstMaxParamStrLen); break;
|
||||
case kParamB: vst_strncpy (text, "Sustain", 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 CloudCoat::getParameterDisplay(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: int2string ((VstInt32)( A * 16.999 ), 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 CloudCoat::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 CloudCoat::canDo(char *text)
|
||||
{ return (_canDo.find(text) == _canDo.end()) ? -1: 1; } // 1 = yes, -1 = no, 0 = don't know
|
||||
|
||||
bool CloudCoat::getEffectName(char* name) {
|
||||
vst_strncpy(name, "CloudCoat", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
VstPlugCategory CloudCoat::getPlugCategory() {return kPlugCategEffect;}
|
||||
|
||||
bool CloudCoat::getProductString(char* text) {
|
||||
vst_strncpy (text, "airwindows CloudCoat", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
bool CloudCoat::getVendorString(char* text) {
|
||||
vst_strncpy (text, "airwindows", kVstMaxVendorStrLen); return true;
|
||||
}
|
||||
214
plugins/WinVST/CloudCoat/CloudCoat.h
Executable file
214
plugins/WinVST/CloudCoat/CloudCoat.h
Executable file
|
|
@ -0,0 +1,214 @@
|
|||
/* ========================================
|
||||
* CloudCoat - CloudCoat.h
|
||||
* Created 8/12/11 by SPIAdmin
|
||||
* Copyright (c) Airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __CloudCoat_H
|
||||
#define __CloudCoat_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 kshortA = 350;
|
||||
const int kshortB = 1710;
|
||||
const int kshortC = 1610;
|
||||
const int kshortD = 835;
|
||||
const int kshortE = 700;
|
||||
const int kshortF = 1260;
|
||||
const int kshortG = 1110;
|
||||
const int kshortH = 1768;
|
||||
const int kshortI = 280;
|
||||
const int kshortJ = 2645;
|
||||
const int kshortK = 1410;
|
||||
const int kshortL = 1175;
|
||||
const int kshortM = 12;
|
||||
const int kshortN = 3110;
|
||||
const int kshortO = 120;
|
||||
const int kshortP = 2370;
|
||||
|
||||
const int kNumPrograms = 0;
|
||||
const int kNumInputs = 2;
|
||||
const int kNumOutputs = 2;
|
||||
const unsigned long kUniqueId = 'cloc'; //Change this to what the AU identity is!
|
||||
|
||||
class CloudCoat :
|
||||
public AudioEffectX
|
||||
{
|
||||
public:
|
||||
CloudCoat(audioMasterCallback audioMaster);
|
||||
~CloudCoat();
|
||||
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
|
||||
|
||||
double aAL[kshortA+5];
|
||||
double aBL[kshortB+5];
|
||||
double aCL[kshortC+5];
|
||||
double aDL[kshortD+5];
|
||||
double aEL[kshortE+5];
|
||||
double aFL[kshortF+5];
|
||||
double aGL[kshortG+5];
|
||||
double aHL[kshortH+5];
|
||||
double aIL[kshortI+5];
|
||||
double aJL[kshortJ+5];
|
||||
double aKL[kshortK+5];
|
||||
double aLL[kshortL+5];
|
||||
double aML[kshortM+5];
|
||||
double aNL[kshortN+5];
|
||||
double aOL[kshortO+5];
|
||||
double aPL[kshortP+5];
|
||||
|
||||
double aAR[kshortA+5];
|
||||
double aBR[kshortB+5];
|
||||
double aCR[kshortC+5];
|
||||
double aDR[kshortD+5];
|
||||
double aER[kshortE+5];
|
||||
double aFR[kshortF+5];
|
||||
double aGR[kshortG+5];
|
||||
double aHR[kshortH+5];
|
||||
double aIR[kshortI+5];
|
||||
double aJR[kshortJ+5];
|
||||
double aKR[kshortK+5];
|
||||
double aLR[kshortL+5];
|
||||
double aMR[kshortM+5];
|
||||
double aNR[kshortN+5];
|
||||
double aOR[kshortO+5];
|
||||
double aPR[kshortP+5];
|
||||
|
||||
double feedbackAL;
|
||||
double feedbackBL;
|
||||
double feedbackCL;
|
||||
double feedbackDL;
|
||||
|
||||
double feedbackDR;
|
||||
double feedbackHR;
|
||||
double feedbackLR;
|
||||
double feedbackPR;
|
||||
|
||||
double avgAL;
|
||||
double avgBL;
|
||||
double avgCL;
|
||||
double avgDL;
|
||||
|
||||
double avgDR;
|
||||
double avgHR;
|
||||
double avgLR;
|
||||
double avgPR;
|
||||
|
||||
double previousAL;
|
||||
double previousBL;
|
||||
double previousCL;
|
||||
double previousDL;
|
||||
double previousEL;
|
||||
|
||||
double lastRefL[7];
|
||||
|
||||
double previousAR;
|
||||
double previousBR;
|
||||
double previousCR;
|
||||
double previousDR;
|
||||
double previousER;
|
||||
|
||||
double lastRefR[7];
|
||||
|
||||
int countAL;
|
||||
int countBL;
|
||||
int countCL;
|
||||
int countDL;
|
||||
int countEL;
|
||||
int countFL;
|
||||
int countGL;
|
||||
int countHL;
|
||||
int countIL;
|
||||
int countJL;
|
||||
int countKL;
|
||||
int countLL;
|
||||
int countML;
|
||||
int countNL;
|
||||
int countOL;
|
||||
int countPL;
|
||||
|
||||
int countAR;
|
||||
int countBR;
|
||||
int countCR;
|
||||
int countDR;
|
||||
int countER;
|
||||
int countFR;
|
||||
int countGR;
|
||||
int countHR;
|
||||
int countIR;
|
||||
int countJR;
|
||||
int countKR;
|
||||
int countLR;
|
||||
int countMR;
|
||||
int countNR;
|
||||
int countOR;
|
||||
int countPR;
|
||||
|
||||
int cycle;
|
||||
|
||||
double prevMulchAL;
|
||||
double prevMulchAR;
|
||||
|
||||
double tailL;
|
||||
double tailR;
|
||||
|
||||
int shortA;
|
||||
int shortB;
|
||||
int shortC;
|
||||
int shortD;
|
||||
int shortE;
|
||||
int shortF;
|
||||
int shortG;
|
||||
int shortH;
|
||||
int shortI;
|
||||
int shortJ;
|
||||
int shortK;
|
||||
int shortL;
|
||||
int shortM;
|
||||
int shortN;
|
||||
int shortO;
|
||||
int shortP;
|
||||
|
||||
int prevcloudcoat;
|
||||
|
||||
float A;
|
||||
float B;
|
||||
float C;
|
||||
};
|
||||
|
||||
#endif
|
||||
846
plugins/WinVST/CloudCoat/CloudCoatProc.cpp
Executable file
846
plugins/WinVST/CloudCoat/CloudCoatProc.cpp
Executable file
|
|
@ -0,0 +1,846 @@
|
|||
/* ========================================
|
||||
* CloudCoat - CloudCoat.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __CloudCoat_H
|
||||
#include "CloudCoat.h"
|
||||
#endif
|
||||
|
||||
void CloudCoat::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();
|
||||
int cycleEnd = floor(overallscale);
|
||||
if (cycleEnd < 1) cycleEnd = 1;
|
||||
if (cycleEnd > 4) cycleEnd = 4;
|
||||
//this is going to be 2 for 88.1 or 96k, 3 for silly people, 4 for 176 or 192k
|
||||
if (cycle > cycleEnd-1) cycle = cycleEnd-1; //sanity check
|
||||
|
||||
int cloudcoat = (int)(A*16.999);
|
||||
|
||||
if (cloudcoat != prevcloudcoat) {
|
||||
for(int count = 0; count < kshortA+2; count++) {aAL[count] = 0.0; aAR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortB+2; count++) {aBL[count] = 0.0; aBR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortC+2; count++) {aCL[count] = 0.0; aCR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortD+2; count++) {aDL[count] = 0.0; aDR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortE+2; count++) {aEL[count] = 0.0; aER[count] = 0.0;}
|
||||
for(int count = 0; count < kshortF+2; count++) {aFL[count] = 0.0; aFR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortG+2; count++) {aGL[count] = 0.0; aGR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortH+2; count++) {aHL[count] = 0.0; aHR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortI+2; count++) {aIL[count] = 0.0; aIR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortJ+2; count++) {aJL[count] = 0.0; aJR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortK+2; count++) {aKL[count] = 0.0; aKR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortL+2; count++) {aLL[count] = 0.0; aLR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortM+2; count++) {aML[count] = 0.0; aMR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortN+2; count++) {aNL[count] = 0.0; aNR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortO+2; count++) {aOL[count] = 0.0; aOR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortP+2; count++) {aPL[count] = 0.0; aPR[count] = 0.0;}
|
||||
countAL = 1;
|
||||
countBL = 1;
|
||||
countCL = 1;
|
||||
countDL = 1;
|
||||
countEL = 1;
|
||||
countFL = 1;
|
||||
countGL = 1;
|
||||
countHL = 1;
|
||||
countIL = 1;
|
||||
countJL = 1;
|
||||
countKL = 1;
|
||||
countLL = 1;
|
||||
countML = 1;
|
||||
countNL = 1;
|
||||
countOL = 1;
|
||||
countPL = 1;
|
||||
|
||||
countAR = 1;
|
||||
countBR = 1;
|
||||
countCR = 1;
|
||||
countDR = 1;
|
||||
countER = 1;
|
||||
countFR = 1;
|
||||
countGR = 1;
|
||||
countHR = 1;
|
||||
countIR = 1;
|
||||
countJR = 1;
|
||||
countKR = 1;
|
||||
countLR = 1;
|
||||
countMR = 1;
|
||||
countNR = 1;
|
||||
countOR = 1;
|
||||
countPR = 1;
|
||||
switch (cloudcoat)
|
||||
{
|
||||
case 0:
|
||||
shortA = 65; shortB = 124; shortC = 83; shortD = 180; shortE = 200; shortF = 291; shortG = 108; shortH = 189; shortI = 73; shortJ = 410; shortK = 479; shortL = 310; shortM = 11; shortN = 928; shortO = 23; shortP = 654; break; //5 to 51 ms, 96 seat room. Scarcity, 1 in 125324
|
||||
//Short96
|
||||
case 1:
|
||||
shortA = 114; shortB = 205; shortC = 498; shortD = 195; shortE = 205; shortF = 318; shortG = 143; shortH = 254; shortI = 64; shortJ = 721; shortK = 512; shortL = 324; shortM = 11; shortN = 782; shortO = 26; shortP = 394; break; //7 to 52 ms, 107 seat club. Scarcity, 1 in 65537
|
||||
//Short107
|
||||
case 2:
|
||||
shortA = 118; shortB = 272; shortC = 292; shortD = 145; shortE = 200; shortF = 241; shortG = 204; shortH = 504; shortI = 50; shortJ = 678; shortK = 424; shortL = 412; shortM = 11; shortN = 1124; shortO = 47; shortP = 766; break; //8 to 58 ms, 135 seat club. Scarcity, 1 in 196272
|
||||
//Short135
|
||||
case 3:
|
||||
shortA = 19; shortB = 474; shortC = 301; shortD = 275; shortE = 260; shortF = 321; shortG = 371; shortH = 571; shortI = 50; shortJ = 410; shortK = 697; shortL = 414; shortM = 11; shortN = 986; shortO = 47; shortP = 522; break; //7 to 61 ms, 143 seat club. Scarcity, 1 in 165738
|
||||
//Short143
|
||||
case 4:
|
||||
shortA = 112; shortB = 387; shortC = 452; shortD = 289; shortE = 173; shortF = 476; shortG = 321; shortH = 593; shortI = 73; shortJ = 343; shortK = 829; shortL = 91; shortM = 11; shortN = 1055; shortO = 43; shortP = 862; break; //8 to 66 ms, 166 seat club. Scarcity, 1 in 158437
|
||||
//Short166
|
||||
case 5:
|
||||
shortA = 60; shortB = 368; shortC = 295; shortD = 272; shortE = 210; shortF = 284; shortG = 326; shortH = 830; shortI = 125; shortJ = 236; shortK = 737; shortL = 486; shortM = 11; shortN = 1178; shortO = 75; shortP = 902; break; //9 to 70 ms, 189 seat club. Scarcity, 1 in 94790
|
||||
//Short189
|
||||
case 6:
|
||||
shortA = 73; shortB = 311; shortC = 472; shortD = 251; shortE = 134; shortF = 509; shortG = 393; shortH = 591; shortI = 124; shortJ = 1070; shortK = 340; shortL = 525; shortM = 11; shortN = 1367; shortO = 75; shortP = 816; break; //7 to 79 ms, 225 seat club. Scarcity, 1 in 257803
|
||||
//Short225
|
||||
case 7:
|
||||
shortA = 159; shortB = 518; shortC = 514; shortD = 165; shortE = 275; shortF = 494; shortG = 296; shortH = 667; shortI = 75; shortJ = 1101; shortK = 116; shortL = 414; shortM = 11; shortN = 1261; shortO = 79; shortP = 998; break; //11 to 80 ms, 252 seat club. Scarcity, 1 in 175192
|
||||
//Short252
|
||||
case 8:
|
||||
shortA = 41; shortB = 741; shortC = 274; shortD = 59; shortE = 306; shortF = 332; shortG = 291; shortH = 767; shortI = 42; shortJ = 881; shortK = 959; shortL = 422; shortM = 11; shortN = 1237; shortO = 45; shortP = 958; break; //8 to 83 ms, 255 seat club. Scarcity, 1 in 185708
|
||||
//Short255
|
||||
case 9:
|
||||
shortA = 251; shortB = 437; shortC = 783; shortD = 189; shortE = 130; shortF = 272; shortG = 244; shortH = 761; shortI = 128; shortJ = 1190; shortK = 320; shortL = 491; shortM = 11; shortN = 1409; shortO = 58; shortP = 455; break; //10 to 93 ms, 323 seat club. Scarcity, 1 in 334044
|
||||
//Short323
|
||||
case 10:
|
||||
shortA = 316; shortB = 510; shortC = 1087; shortD = 349; shortE = 359; shortF = 74; shortG = 79; shortH = 1269; shortI = 34; shortJ = 693; shortK = 749; shortL = 511; shortM = 11; shortN = 1751; shortO = 93; shortP = 403; break; //9 to 110 ms, 427 seat theater. Scarcity, 1 in 200715
|
||||
//Short427
|
||||
case 11:
|
||||
shortA = 254; shortB = 651; shortC = 845; shortD = 316; shortE = 373; shortF = 267; shortG = 182; shortH = 857; shortI = 215; shortJ = 1535; shortK = 1127; shortL = 315; shortM = 11; shortN = 1649; shortO = 97; shortP = 829; break; //15 to 110 ms, 470 seat theater. Scarcity, 1 in 362673
|
||||
//Short470
|
||||
case 12:
|
||||
shortA = 113; shortB = 101; shortC = 673; shortD = 357; shortE = 340; shortF = 229; shortG = 278; shortH = 1008; shortI = 265; shortJ = 1890; shortK = 155; shortL = 267; shortM = 11; shortN = 2233; shortO = 116; shortP = 600; break; //11 to 131 ms, 606 seat theater. Scarcity, 1 in 238058
|
||||
//Short606
|
||||
case 13:
|
||||
shortA = 218; shortB = 1058; shortC = 862; shortD = 505; shortE = 297; shortF = 580; shortG = 532; shortH = 1387; shortI = 120; shortJ = 576; shortK = 1409; shortL = 473; shortM = 11; shortN = 1991; shortO = 76; shortP = 685; break; //14 to 132 ms, 643 seat theater. Scarcity, 1 in 193432
|
||||
//Short643
|
||||
case 14:
|
||||
shortA = 78; shortB = 760; shortC = 982; shortD = 528; shortE = 445; shortF = 1128; shortG = 130; shortH = 708; shortI = 22; shortJ = 2144; shortK = 354; shortL = 1169; shortM = 11; shortN = 2782; shortO = 58; shortP = 1515; break; //5 to 159 ms, 809 seat hall. Scarcity, 1 in 212274
|
||||
//Short809
|
||||
case 15:
|
||||
shortA = 330; shortB = 107; shortC = 1110; shortD = 371; shortE = 620; shortF = 143; shortG = 1014; shortH = 1763; shortI = 184; shortJ = 2068; shortK = 1406; shortL = 595; shortM = 11; shortN = 2639; shortO = 33; shortP = 1594; break; //10 to 171 ms, 984 seat hall. Scarcity, 1 in 226499
|
||||
//Short984
|
||||
case 16:
|
||||
default:
|
||||
shortA = 336; shortB = 1660; shortC = 386; shortD = 623; shortE = 693; shortF = 1079; shortG = 891; shortH = 1574; shortI = 24; shortJ = 2641; shortK = 1239; shortL = 775; shortM = 11; shortN = 3104; shortO = 55; shortP = 2366; break; //24 to 203 ms, 1541 seat hall. Scarcity, 1 in 275025
|
||||
//Short1541
|
||||
}
|
||||
prevcloudcoat = cloudcoat;
|
||||
}
|
||||
|
||||
double gaintrim = 1.0-pow(1.0-B,2);
|
||||
double sustain = gaintrim*0.086;
|
||||
gaintrim = 1.1-gaintrim;
|
||||
double wet = C*2.0;
|
||||
double dry = 2.0 - wet;
|
||||
if (wet > 1.0) wet = 1.0;
|
||||
if (wet < 0.0) wet = 0.0;
|
||||
if (dry > 1.0) dry = 1.0;
|
||||
if (dry < 0.0) dry = 0.0;
|
||||
//this reverb makes 50% full dry AND full wet, not crossfaded.
|
||||
//that's so it can be on submixes without cutting back dry channel when adjusted:
|
||||
//unless you go super heavy, you are only adjusting the added verb loudness.
|
||||
|
||||
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 /= gaintrim;
|
||||
inputSampleR /= gaintrim;
|
||||
|
||||
cycle++;
|
||||
if (cycle == cycleEnd) { //hit the end point and we do a reverb sample
|
||||
double outAL = inputSampleL - (aAL[(countAL+1)-((countAL+1 > shortA)?shortA+1:0)]*0.618033988749894848204586);
|
||||
double outBL = inputSampleL - (aBL[(countBL+1)-((countBL+1 > shortB)?shortB+1:0)]*0.618033988749894848204586);
|
||||
double outCL = inputSampleL - (aCL[(countCL+1)-((countCL+1 > shortC)?shortC+1:0)]*0.618033988749894848204586);
|
||||
double outDL = inputSampleL - (aDL[(countDL+1)-((countDL+1 > shortD)?shortD+1:0)]*0.618033988749894848204586);
|
||||
double outDR = inputSampleR - (aDR[(countDR+1)-((countDR+1 > shortD)?shortD+1:0)]*0.618033988749894848204586);
|
||||
double outHR = inputSampleR - (aHR[(countHR+1)-((countHR+1 > shortH)?shortH+1:0)]*0.618033988749894848204586);
|
||||
double outLR = inputSampleR - (aLR[(countLR+1)-((countLR+1 > shortL)?shortL+1:0)]*0.618033988749894848204586);
|
||||
double outPR = inputSampleR - (aPR[(countPR+1)-((countPR+1 > shortP)?shortP+1:0)]*0.618033988749894848204586);
|
||||
|
||||
outAL += (feedbackAL * (sustain*fabs(sin(feedbackBL))));
|
||||
outBL += (feedbackBL * (sustain*fabs(sin(feedbackCL))));
|
||||
outCL += (feedbackCL * (sustain*fabs(sin(feedbackDL))));
|
||||
outDL += (feedbackDL * (sustain*fabs(sin(feedbackAL))));
|
||||
|
||||
outDR += (feedbackDR * (sustain*fabs(sin(feedbackHR))));
|
||||
outHR += (feedbackHR * (sustain*fabs(sin(feedbackLR))));
|
||||
outLR += (feedbackLR * (sustain*fabs(sin(feedbackPR))));
|
||||
outPR += (feedbackPR * (sustain*fabs(sin(feedbackDR))));
|
||||
|
||||
aAL[countAL] = outAL; outAL *= 0.618033988749894848204586;
|
||||
aBL[countBL] = outBL; outBL *= 0.618033988749894848204586;
|
||||
aCL[countCL] = outCL; outCL *= 0.618033988749894848204586;
|
||||
aDL[countDL] = outDL; outDL *= 0.618033988749894848204586;
|
||||
aDR[countDR] = outDR; outDR *= 0.618033988749894848204586;
|
||||
aHR[countHR] = outHR; outHR *= 0.618033988749894848204586;
|
||||
aLR[countLR] = outLR; outLR *= 0.618033988749894848204586;
|
||||
aPR[countPR] = outPR; outPR *= 0.618033988749894848204586;
|
||||
|
||||
countAL++; if (countAL < 0 || countAL > shortA) countAL = 0;
|
||||
countBL++; if (countBL < 0 || countBL > shortB) countBL = 0;
|
||||
countCL++; if (countCL < 0 || countCL > shortC) countCL = 0;
|
||||
countDL++; if (countDL < 0 || countDL > shortD) countDL = 0;
|
||||
countDR++; if (countDR < 0 || countDR > shortD) countDR = 0;
|
||||
countHR++; if (countHR < 0 || countHR > shortH) countHR = 0;
|
||||
countLR++; if (countLR < 0 || countLR > shortL) countLR = 0;
|
||||
countPR++; if (countPR < 0 || countPR > shortP) countPR = 0;
|
||||
|
||||
outAL += aAL[countAL-((countAL > shortA)?shortA+1:0)];
|
||||
outBL += aBL[countBL-((countBL > shortB)?shortB+1:0)];
|
||||
outCL += aCL[countCL-((countCL > shortC)?shortC+1:0)];
|
||||
outDL += aDL[countDL-((countDL > shortD)?shortD+1:0)];
|
||||
outDR += aDR[countDR-((countDR > shortD)?shortD+1:0)];
|
||||
outHR += aHR[countHR-((countHR > shortH)?shortH+1:0)];
|
||||
outLR += aLR[countLR-((countLR > shortL)?shortL+1:0)];
|
||||
outPR += aPR[countPR-((countPR > shortP)?shortP+1:0)];
|
||||
|
||||
double outEL = (outAL - (outBL + outCL + outDL)) - (aEL[(countEL+1)-((countEL+1 > shortE)?shortE+1:0)]*0.618033988749894848204586);
|
||||
double outFL = (outBL - (outAL + outCL + outDL)) - (aFL[(countFL+1)-((countFL+1 > shortF)?shortF+1:0)]*0.618033988749894848204586);
|
||||
double outGL = (outCL - (outAL + outBL + outDL)) - (aGL[(countGL+1)-((countGL+1 > shortG)?shortG+1:0)]*0.618033988749894848204586);
|
||||
double outHL = (outDL - (outAL + outBL + outCL)) - (aHL[(countHL+1)-((countHL+1 > shortH)?shortH+1:0)]*0.618033988749894848204586);
|
||||
double outCR = (outDR - (outHR + outLR + outPR)) - (aCR[(countCR+1)-((countCR+1 > shortC)?shortC+1:0)]*0.618033988749894848204586);
|
||||
double outGR = (outHR - (outDR + outLR + outPR)) - (aGR[(countGR+1)-((countGR+1 > shortG)?shortG+1:0)]*0.618033988749894848204586);
|
||||
double outKR = (outLR - (outDR + outHR + outPR)) - (aKR[(countKR+1)-((countKR+1 > shortK)?shortK+1:0)]*0.618033988749894848204586);
|
||||
double outOR = (outPR - (outDR + outHR + outLR)) - (aOR[(countOR+1)-((countOR+1 > shortO)?shortO+1:0)]*0.618033988749894848204586);
|
||||
|
||||
aEL[countEL] = outEL; outEL *= 0.618033988749894848204586;
|
||||
aFL[countFL] = outFL; outFL *= 0.618033988749894848204586;
|
||||
aGL[countGL] = outGL; outGL *= 0.618033988749894848204586;
|
||||
aHL[countHL] = outHL; outHL *= 0.618033988749894848204586;
|
||||
aCR[countCR] = outCR; outCR *= 0.618033988749894848204586;
|
||||
aGR[countGR] = outGR; outGR *= 0.618033988749894848204586;
|
||||
aKR[countKR] = outKR; outKR *= 0.618033988749894848204586;
|
||||
aOR[countOR] = outOR; outOR *= 0.618033988749894848204586;
|
||||
|
||||
countEL++; if (countEL < 0 || countEL > shortE) countEL = 0;
|
||||
countFL++; if (countFL < 0 || countFL > shortF) countFL = 0;
|
||||
countGL++; if (countGL < 0 || countGL > shortG) countGL = 0;
|
||||
countHL++; if (countHL < 0 || countHL > shortH) countHL = 0;
|
||||
countCR++; if (countCR < 0 || countCR > shortC) countCR = 0;
|
||||
countGR++; if (countGR < 0 || countGR > shortG) countGR = 0;
|
||||
countKR++; if (countKR < 0 || countKR > shortK) countKR = 0;
|
||||
countOR++; if (countOR < 0 || countOR > shortO) countOR = 0;
|
||||
|
||||
outEL += aEL[countEL-((countEL > shortE)?shortE+1:0)];
|
||||
outFL += aFL[countFL-((countFL > shortF)?shortF+1:0)];
|
||||
outGL += aGL[countGL-((countGL > shortG)?shortG+1:0)];
|
||||
outHL += aHL[countHL-((countHL > shortH)?shortH+1:0)];
|
||||
outCR += aCR[countCR-((countCR > shortC)?shortC+1:0)];
|
||||
outGR += aGR[countGR-((countGR > shortG)?shortG+1:0)];
|
||||
outKR += aKR[countKR-((countKR > shortK)?shortK+1:0)];
|
||||
outOR += aOR[countOR-((countOR > shortO)?shortO+1:0)];
|
||||
|
||||
double outIL = (outEL - (outFL + outGL + outHL)) - (aIL[(countIL+1)-((countIL+1 > shortI)?shortI+1:0)]*0.618033988749894848204586);
|
||||
double outJL = (outFL - (outEL + outGL + outHL)) - (aJL[(countJL+1)-((countJL+1 > shortJ)?shortJ+1:0)]*0.618033988749894848204586);
|
||||
double outKL = (outGL - (outEL + outFL + outHL)) - (aKL[(countKL+1)-((countKL+1 > shortK)?shortK+1:0)]*0.618033988749894848204586);
|
||||
double outLL = (outHL - (outEL + outFL + outGL)) - (aLL[(countLL+1)-((countLL+1 > shortL)?shortL+1:0)]*0.618033988749894848204586);
|
||||
double outBR = (outCR - (outGR + outKR + outOR)) - (aBR[(countBR+1)-((countBR+1 > shortB)?shortB+1:0)]*0.618033988749894848204586);
|
||||
double outFR = (outGR - (outCR + outKR + outOR)) - (aFR[(countFR+1)-((countFR+1 > shortF)?shortF+1:0)]*0.618033988749894848204586);
|
||||
double outJR = (outKR - (outCR + outGR + outOR)) - (aJR[(countJR+1)-((countJR+1 > shortJ)?shortJ+1:0)]*0.618033988749894848204586);
|
||||
double outNR = (outOR - (outCR + outGR + outKR)) - (aNR[(countNR+1)-((countNR+1 > shortN)?shortN+1:0)]*0.618033988749894848204586);
|
||||
|
||||
aIL[countIL] = outIL; outIL *= 0.618033988749894848204586;
|
||||
aJL[countJL] = outJL; outJL *= 0.618033988749894848204586;
|
||||
aKL[countKL] = outKL; outKL *= 0.618033988749894848204586;
|
||||
aLL[countLL] = outLL; outLL *= 0.618033988749894848204586;
|
||||
aBR[countBR] = outBR; outBR *= 0.618033988749894848204586;
|
||||
aFR[countFR] = outFR; outFR *= 0.618033988749894848204586;
|
||||
aJR[countJR] = outJR; outJR *= 0.618033988749894848204586;
|
||||
aNR[countNR] = outNR; outNR *= 0.618033988749894848204586;
|
||||
|
||||
countIL++; if (countIL < 0 || countIL > shortI) countIL = 0;
|
||||
countJL++; if (countJL < 0 || countJL > shortJ) countJL = 0;
|
||||
countKL++; if (countKL < 0 || countKL > shortK) countKL = 0;
|
||||
countLL++; if (countLL < 0 || countLL > shortL) countLL = 0;
|
||||
countBR++; if (countBR < 0 || countBR > shortB) countBR = 0;
|
||||
countFR++; if (countFR < 0 || countFR > shortF) countFR = 0;
|
||||
countJR++; if (countJR < 0 || countJR > shortJ) countJR = 0;
|
||||
countNR++; if (countNR < 0 || countNR > shortN) countNR = 0;
|
||||
|
||||
outIL += aIL[countIL-((countIL > shortI)?shortI+1:0)];
|
||||
outJL += aJL[countJL-((countJL > shortJ)?shortJ+1:0)];
|
||||
outKL += aKL[countKL-((countKL > shortK)?shortK+1:0)];
|
||||
outLL += aLL[countLL-((countLL > shortL)?shortL+1:0)];
|
||||
outBR += aBR[countBR-((countBR > shortB)?shortB+1:0)];
|
||||
outFR += aFR[countFR-((countFR > shortF)?shortF+1:0)];
|
||||
outJR += aJR[countJR-((countJR > shortJ)?shortJ+1:0)];
|
||||
outNR += aNR[countNR-((countNR > shortN)?shortN+1:0)];
|
||||
|
||||
double outML = (outIL - (outJL + outKL + outLL)) - (aML[(countML+1)-((countML+1 > shortM)?shortM+1:0)]*0.618033988749894848204586);
|
||||
double outNL = (outJL - (outIL + outKL + outLL)) - (aNL[(countNL+1)-((countNL+1 > shortN)?shortN+1:0)]*0.618033988749894848204586);
|
||||
double outOL = (outKL - (outIL + outJL + outLL)) - (aOL[(countOL+1)-((countOL+1 > shortO)?shortO+1:0)]*0.618033988749894848204586);
|
||||
double outPL = (outLL - (outIL + outJL + outKL)) - (aPL[(countPL+1)-((countPL+1 > shortP)?shortP+1:0)]*0.618033988749894848204586);
|
||||
double outAR = (outBR - (outFR + outJR + outNR)) - (aAR[(countAR+1)-((countAR+1 > shortA)?shortA+1:0)]*0.618033988749894848204586);
|
||||
double outER = (outFR - (outBR + outJR + outNR)) - (aER[(countER+1)-((countER+1 > shortE)?shortE+1:0)]*0.618033988749894848204586);
|
||||
double outIR = (outJR - (outBR + outFR + outNR)) - (aIR[(countIR+1)-((countIR+1 > shortI)?shortI+1:0)]*0.618033988749894848204586);
|
||||
double outMR = (outNR - (outBR + outFR + outJR)) - (aMR[(countMR+1)-((countMR+1 > shortM)?shortM+1:0)]*0.618033988749894848204586);
|
||||
|
||||
aML[countML] = outML; outML *= 0.618033988749894848204586;
|
||||
aNL[countNL] = outNL; outNL *= 0.618033988749894848204586;
|
||||
aOL[countOL] = outOL; outOL *= 0.618033988749894848204586;
|
||||
aPL[countPL] = outPL; outPL *= 0.618033988749894848204586;
|
||||
aAR[countAR] = outAR; outAR *= 0.618033988749894848204586;
|
||||
aER[countER] = outER; outER *= 0.618033988749894848204586;
|
||||
aIR[countIR] = outIR; outIR *= 0.618033988749894848204586;
|
||||
aMR[countMR] = outMR; outMR *= 0.618033988749894848204586;
|
||||
|
||||
countML++; if (countML < 0 || countML > shortM) countML = 0;
|
||||
countNL++; if (countNL < 0 || countNL > shortN) countNL = 0;
|
||||
countOL++; if (countOL < 0 || countOL > shortO) countOL = 0;
|
||||
countPL++; if (countPL < 0 || countPL > shortP) countPL = 0;
|
||||
countAR++; if (countAR < 0 || countAR > shortA) countAR = 0;
|
||||
countER++; if (countER < 0 || countER > shortE) countER = 0;
|
||||
countIR++; if (countIR < 0 || countIR > shortI) countIR = 0;
|
||||
countMR++; if (countMR < 0 || countMR > shortM) countMR = 0;
|
||||
|
||||
outML += aML[countML-((countML > shortM)?shortM+1:0)];
|
||||
outNL += aNL[countNL-((countNL > shortN)?shortN+1:0)];
|
||||
outOL += aOL[countOL-((countOL > shortO)?shortO+1:0)];
|
||||
outPL += aPL[countPL-((countPL > shortP)?shortP+1:0)];
|
||||
outAR += aAR[countAR-((countAR > shortA)?shortA+1:0)];
|
||||
outER += aER[countER-((countER > shortE)?shortE+1:0)];
|
||||
outIR += aIR[countIR-((countIR > shortI)?shortI+1:0)];
|
||||
outMR += aMR[countMR-((countMR > shortM)?shortM+1:0)];
|
||||
|
||||
double outSample = (outML + outML + outML + prevMulchAL)*0.25;
|
||||
prevMulchAL = outML; outML = outSample;
|
||||
outSample = (outAR + outAR + outAR + prevMulchAR)*0.25;
|
||||
prevMulchAR = outAR; outAR = outSample;
|
||||
|
||||
feedbackAL = outML - (outNL + outOL + outPL);
|
||||
feedbackDR = outAR - (outER + outIR + outMR);
|
||||
feedbackBL = outNL - (outML + outOL + outPL);
|
||||
feedbackHR = outER - (outAR + outIR + outMR);
|
||||
feedbackCL = outOL - (outML + outNL + outPL);
|
||||
feedbackLR = outIR - (outAR + outER + outMR);
|
||||
feedbackDL = outPL - (outML + outNL + outOL);
|
||||
feedbackPR = outMR - (outAR + outER + outIR);
|
||||
//which we need to feed back into the input again, a bit
|
||||
|
||||
outSample = (feedbackAL + avgAL)*0.5; avgAL = feedbackAL; feedbackAL = outSample;
|
||||
outSample = (feedbackBL + avgBL)*0.5; avgBL = feedbackBL; feedbackBL = outSample;
|
||||
outSample = (feedbackCL + avgCL)*0.5; avgCL = feedbackCL; feedbackCL = outSample;
|
||||
outSample = (feedbackDL + avgDL)*0.5; avgDL = feedbackDL; feedbackDL = outSample;
|
||||
outSample = (feedbackDR + avgDR)*0.5; avgDR = feedbackDR; feedbackDR = outSample;
|
||||
outSample = (feedbackHR + avgHR)*0.5; avgHR = feedbackHR; feedbackHR = outSample;
|
||||
outSample = (feedbackLR + avgLR)*0.5; avgLR = feedbackLR; feedbackLR = outSample;
|
||||
outSample = (feedbackPR + avgPR)*0.5; avgPR = feedbackPR; feedbackPR = outSample;
|
||||
//average all our reverb feedbacks
|
||||
|
||||
inputSampleL = (outML + outNL + outOL + outPL)/8.0;
|
||||
inputSampleR = (outAR + outER + outIR + outMR)/8.0;
|
||||
//and take the final combined sum of outputs, corrected for Householder gain
|
||||
|
||||
if (inputSampleL > 1.0) inputSampleL = 1.0;
|
||||
if (inputSampleL < -1.0) inputSampleL = -1.0;
|
||||
if (inputSampleR > 1.0) inputSampleR = 1.0;
|
||||
if (inputSampleR < -1.0) inputSampleR = -1.0;
|
||||
|
||||
if (cycleEnd == 4) {
|
||||
lastRefL[0] = lastRefL[4]; //start from previous last
|
||||
lastRefL[2] = (lastRefL[0] + inputSampleL)/2; //half
|
||||
lastRefL[1] = (lastRefL[0] + lastRefL[2])/2; //one quarter
|
||||
lastRefL[3] = (lastRefL[2] + inputSampleL)/2; //three quarters
|
||||
lastRefL[4] = inputSampleL; //full
|
||||
lastRefR[0] = lastRefR[4]; //start from previous last
|
||||
lastRefR[2] = (lastRefR[0] + inputSampleR)/2; //half
|
||||
lastRefR[1] = (lastRefR[0] + lastRefR[2])/2; //one quarter
|
||||
lastRefR[3] = (lastRefR[2] + inputSampleR)/2; //three quarters
|
||||
lastRefR[4] = inputSampleR; //full
|
||||
}
|
||||
if (cycleEnd == 3) {
|
||||
lastRefL[0] = lastRefL[3]; //start from previous last
|
||||
lastRefL[2] = (lastRefL[0]+lastRefL[0]+inputSampleL)/3; //third
|
||||
lastRefL[1] = (lastRefL[0]+inputSampleL+inputSampleL)/3; //two thirds
|
||||
lastRefL[3] = inputSampleL; //full
|
||||
lastRefR[0] = lastRefR[3]; //start from previous last
|
||||
lastRefR[2] = (lastRefR[0]+lastRefR[0]+inputSampleR)/3; //third
|
||||
lastRefR[1] = (lastRefR[0]+inputSampleR+inputSampleR)/3; //two thirds
|
||||
lastRefR[3] = inputSampleR; //full
|
||||
}
|
||||
if (cycleEnd == 2) {
|
||||
lastRefL[0] = lastRefL[2]; //start from previous last
|
||||
lastRefL[1] = (lastRefL[0] + inputSampleL)/2; //half
|
||||
lastRefL[2] = inputSampleL; //full
|
||||
lastRefR[0] = lastRefR[2]; //start from previous last
|
||||
lastRefR[1] = (lastRefR[0] + inputSampleR)/2; //half
|
||||
lastRefR[2] = inputSampleR; //full
|
||||
}
|
||||
if (cycleEnd == 1) {
|
||||
lastRefL[0] = inputSampleL;
|
||||
lastRefR[0] = inputSampleR;
|
||||
}
|
||||
cycle = 0; //reset
|
||||
inputSampleL = lastRefL[cycle];
|
||||
inputSampleR = lastRefR[cycle];
|
||||
} else {
|
||||
inputSampleL = lastRefL[cycle];
|
||||
inputSampleR = lastRefR[cycle];
|
||||
//we are going through our references now
|
||||
}
|
||||
|
||||
if (cycleEnd > 1) {
|
||||
double outSample = (inputSampleL + tailL)*0.5;
|
||||
tailL = inputSampleL; inputSampleL = outSample;
|
||||
outSample = (inputSampleR + tailR)*0.5;
|
||||
tailR = inputSampleR; inputSampleR = outSample;
|
||||
} //let's average twice only at elevated sample rates
|
||||
|
||||
inputSampleL *= sqrt(gaintrim);
|
||||
inputSampleR *= sqrt(gaintrim);
|
||||
|
||||
if (wet < 1.0) {inputSampleL *= wet; inputSampleR *= wet;}
|
||||
if (dry < 1.0) {drySampleL *= dry; drySampleR *= dry;}
|
||||
inputSampleL += drySampleL; inputSampleR += drySampleR;
|
||||
//this is our submix verb dry/wet: 0.5 is BOTH at FULL VOLUME
|
||||
//purpose is that, if you're adding verb, you're not altering other balances
|
||||
|
||||
//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 CloudCoat::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();
|
||||
int cycleEnd = floor(overallscale);
|
||||
if (cycleEnd < 1) cycleEnd = 1;
|
||||
if (cycleEnd > 4) cycleEnd = 4;
|
||||
//this is going to be 2 for 88.1 or 96k, 3 for silly people, 4 for 176 or 192k
|
||||
if (cycle > cycleEnd-1) cycle = cycleEnd-1; //sanity check
|
||||
|
||||
int cloudcoat = (int)(A*16.999);
|
||||
|
||||
if (cloudcoat != prevcloudcoat) {
|
||||
for(int count = 0; count < kshortA+2; count++) {aAL[count] = 0.0; aAR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortB+2; count++) {aBL[count] = 0.0; aBR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortC+2; count++) {aCL[count] = 0.0; aCR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortD+2; count++) {aDL[count] = 0.0; aDR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortE+2; count++) {aEL[count] = 0.0; aER[count] = 0.0;}
|
||||
for(int count = 0; count < kshortF+2; count++) {aFL[count] = 0.0; aFR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortG+2; count++) {aGL[count] = 0.0; aGR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortH+2; count++) {aHL[count] = 0.0; aHR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortI+2; count++) {aIL[count] = 0.0; aIR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortJ+2; count++) {aJL[count] = 0.0; aJR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortK+2; count++) {aKL[count] = 0.0; aKR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortL+2; count++) {aLL[count] = 0.0; aLR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortM+2; count++) {aML[count] = 0.0; aMR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortN+2; count++) {aNL[count] = 0.0; aNR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortO+2; count++) {aOL[count] = 0.0; aOR[count] = 0.0;}
|
||||
for(int count = 0; count < kshortP+2; count++) {aPL[count] = 0.0; aPR[count] = 0.0;}
|
||||
countAL = 1;
|
||||
countBL = 1;
|
||||
countCL = 1;
|
||||
countDL = 1;
|
||||
countEL = 1;
|
||||
countFL = 1;
|
||||
countGL = 1;
|
||||
countHL = 1;
|
||||
countIL = 1;
|
||||
countJL = 1;
|
||||
countKL = 1;
|
||||
countLL = 1;
|
||||
countML = 1;
|
||||
countNL = 1;
|
||||
countOL = 1;
|
||||
countPL = 1;
|
||||
|
||||
countAR = 1;
|
||||
countBR = 1;
|
||||
countCR = 1;
|
||||
countDR = 1;
|
||||
countER = 1;
|
||||
countFR = 1;
|
||||
countGR = 1;
|
||||
countHR = 1;
|
||||
countIR = 1;
|
||||
countJR = 1;
|
||||
countKR = 1;
|
||||
countLR = 1;
|
||||
countMR = 1;
|
||||
countNR = 1;
|
||||
countOR = 1;
|
||||
countPR = 1;
|
||||
switch (cloudcoat)
|
||||
{
|
||||
case 0:
|
||||
shortA = 65; shortB = 124; shortC = 83; shortD = 180; shortE = 200; shortF = 291; shortG = 108; shortH = 189; shortI = 73; shortJ = 410; shortK = 479; shortL = 310; shortM = 11; shortN = 928; shortO = 23; shortP = 654; break; //5 to 51 ms, 96 seat room. Scarcity, 1 in 125324
|
||||
//Short96
|
||||
case 1:
|
||||
shortA = 114; shortB = 205; shortC = 498; shortD = 195; shortE = 205; shortF = 318; shortG = 143; shortH = 254; shortI = 64; shortJ = 721; shortK = 512; shortL = 324; shortM = 11; shortN = 782; shortO = 26; shortP = 394; break; //7 to 52 ms, 107 seat club. Scarcity, 1 in 65537
|
||||
//Short107
|
||||
case 2:
|
||||
shortA = 118; shortB = 272; shortC = 292; shortD = 145; shortE = 200; shortF = 241; shortG = 204; shortH = 504; shortI = 50; shortJ = 678; shortK = 424; shortL = 412; shortM = 11; shortN = 1124; shortO = 47; shortP = 766; break; //8 to 58 ms, 135 seat club. Scarcity, 1 in 196272
|
||||
//Short135
|
||||
case 3:
|
||||
shortA = 19; shortB = 474; shortC = 301; shortD = 275; shortE = 260; shortF = 321; shortG = 371; shortH = 571; shortI = 50; shortJ = 410; shortK = 697; shortL = 414; shortM = 11; shortN = 986; shortO = 47; shortP = 522; break; //7 to 61 ms, 143 seat club. Scarcity, 1 in 165738
|
||||
//Short143
|
||||
case 4:
|
||||
shortA = 112; shortB = 387; shortC = 452; shortD = 289; shortE = 173; shortF = 476; shortG = 321; shortH = 593; shortI = 73; shortJ = 343; shortK = 829; shortL = 91; shortM = 11; shortN = 1055; shortO = 43; shortP = 862; break; //8 to 66 ms, 166 seat club. Scarcity, 1 in 158437
|
||||
//Short166
|
||||
case 5:
|
||||
shortA = 60; shortB = 368; shortC = 295; shortD = 272; shortE = 210; shortF = 284; shortG = 326; shortH = 830; shortI = 125; shortJ = 236; shortK = 737; shortL = 486; shortM = 11; shortN = 1178; shortO = 75; shortP = 902; break; //9 to 70 ms, 189 seat club. Scarcity, 1 in 94790
|
||||
//Short189
|
||||
case 6:
|
||||
shortA = 73; shortB = 311; shortC = 472; shortD = 251; shortE = 134; shortF = 509; shortG = 393; shortH = 591; shortI = 124; shortJ = 1070; shortK = 340; shortL = 525; shortM = 11; shortN = 1367; shortO = 75; shortP = 816; break; //7 to 79 ms, 225 seat club. Scarcity, 1 in 257803
|
||||
//Short225
|
||||
case 7:
|
||||
shortA = 159; shortB = 518; shortC = 514; shortD = 165; shortE = 275; shortF = 494; shortG = 296; shortH = 667; shortI = 75; shortJ = 1101; shortK = 116; shortL = 414; shortM = 11; shortN = 1261; shortO = 79; shortP = 998; break; //11 to 80 ms, 252 seat club. Scarcity, 1 in 175192
|
||||
//Short252
|
||||
case 8:
|
||||
shortA = 41; shortB = 741; shortC = 274; shortD = 59; shortE = 306; shortF = 332; shortG = 291; shortH = 767; shortI = 42; shortJ = 881; shortK = 959; shortL = 422; shortM = 11; shortN = 1237; shortO = 45; shortP = 958; break; //8 to 83 ms, 255 seat club. Scarcity, 1 in 185708
|
||||
//Short255
|
||||
case 9:
|
||||
shortA = 251; shortB = 437; shortC = 783; shortD = 189; shortE = 130; shortF = 272; shortG = 244; shortH = 761; shortI = 128; shortJ = 1190; shortK = 320; shortL = 491; shortM = 11; shortN = 1409; shortO = 58; shortP = 455; break; //10 to 93 ms, 323 seat club. Scarcity, 1 in 334044
|
||||
//Short323
|
||||
case 10:
|
||||
shortA = 316; shortB = 510; shortC = 1087; shortD = 349; shortE = 359; shortF = 74; shortG = 79; shortH = 1269; shortI = 34; shortJ = 693; shortK = 749; shortL = 511; shortM = 11; shortN = 1751; shortO = 93; shortP = 403; break; //9 to 110 ms, 427 seat theater. Scarcity, 1 in 200715
|
||||
//Short427
|
||||
case 11:
|
||||
shortA = 254; shortB = 651; shortC = 845; shortD = 316; shortE = 373; shortF = 267; shortG = 182; shortH = 857; shortI = 215; shortJ = 1535; shortK = 1127; shortL = 315; shortM = 11; shortN = 1649; shortO = 97; shortP = 829; break; //15 to 110 ms, 470 seat theater. Scarcity, 1 in 362673
|
||||
//Short470
|
||||
case 12:
|
||||
shortA = 113; shortB = 101; shortC = 673; shortD = 357; shortE = 340; shortF = 229; shortG = 278; shortH = 1008; shortI = 265; shortJ = 1890; shortK = 155; shortL = 267; shortM = 11; shortN = 2233; shortO = 116; shortP = 600; break; //11 to 131 ms, 606 seat theater. Scarcity, 1 in 238058
|
||||
//Short606
|
||||
case 13:
|
||||
shortA = 218; shortB = 1058; shortC = 862; shortD = 505; shortE = 297; shortF = 580; shortG = 532; shortH = 1387; shortI = 120; shortJ = 576; shortK = 1409; shortL = 473; shortM = 11; shortN = 1991; shortO = 76; shortP = 685; break; //14 to 132 ms, 643 seat theater. Scarcity, 1 in 193432
|
||||
//Short643
|
||||
case 14:
|
||||
shortA = 78; shortB = 760; shortC = 982; shortD = 528; shortE = 445; shortF = 1128; shortG = 130; shortH = 708; shortI = 22; shortJ = 2144; shortK = 354; shortL = 1169; shortM = 11; shortN = 2782; shortO = 58; shortP = 1515; break; //5 to 159 ms, 809 seat hall. Scarcity, 1 in 212274
|
||||
//Short809
|
||||
case 15:
|
||||
shortA = 330; shortB = 107; shortC = 1110; shortD = 371; shortE = 620; shortF = 143; shortG = 1014; shortH = 1763; shortI = 184; shortJ = 2068; shortK = 1406; shortL = 595; shortM = 11; shortN = 2639; shortO = 33; shortP = 1594; break; //10 to 171 ms, 984 seat hall. Scarcity, 1 in 226499
|
||||
//Short984
|
||||
case 16:
|
||||
default:
|
||||
shortA = 336; shortB = 1660; shortC = 386; shortD = 623; shortE = 693; shortF = 1079; shortG = 891; shortH = 1574; shortI = 24; shortJ = 2641; shortK = 1239; shortL = 775; shortM = 11; shortN = 3104; shortO = 55; shortP = 2366; break; //24 to 203 ms, 1541 seat hall. Scarcity, 1 in 275025
|
||||
//Short1541
|
||||
}
|
||||
prevcloudcoat = cloudcoat;
|
||||
}
|
||||
|
||||
double gaintrim = 1.0-pow(1.0-B,2);
|
||||
double sustain = gaintrim*0.086;
|
||||
gaintrim = 1.1-gaintrim;
|
||||
double wet = C*2.0;
|
||||
double dry = 2.0 - wet;
|
||||
if (wet > 1.0) wet = 1.0;
|
||||
if (wet < 0.0) wet = 0.0;
|
||||
if (dry > 1.0) dry = 1.0;
|
||||
if (dry < 0.0) dry = 0.0;
|
||||
//this reverb makes 50% full dry AND full wet, not crossfaded.
|
||||
//that's so it can be on submixes without cutting back dry channel when adjusted:
|
||||
//unless you go super heavy, you are only adjusting the added verb loudness.
|
||||
|
||||
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 /= gaintrim;
|
||||
inputSampleR /= gaintrim;
|
||||
|
||||
cycle++;
|
||||
if (cycle == cycleEnd) { //hit the end point and we do a reverb sample
|
||||
double outAL = inputSampleL - (aAL[(countAL+1)-((countAL+1 > shortA)?shortA+1:0)]*0.618033988749894848204586);
|
||||
double outBL = inputSampleL - (aBL[(countBL+1)-((countBL+1 > shortB)?shortB+1:0)]*0.618033988749894848204586);
|
||||
double outCL = inputSampleL - (aCL[(countCL+1)-((countCL+1 > shortC)?shortC+1:0)]*0.618033988749894848204586);
|
||||
double outDL = inputSampleL - (aDL[(countDL+1)-((countDL+1 > shortD)?shortD+1:0)]*0.618033988749894848204586);
|
||||
double outDR = inputSampleR - (aDR[(countDR+1)-((countDR+1 > shortD)?shortD+1:0)]*0.618033988749894848204586);
|
||||
double outHR = inputSampleR - (aHR[(countHR+1)-((countHR+1 > shortH)?shortH+1:0)]*0.618033988749894848204586);
|
||||
double outLR = inputSampleR - (aLR[(countLR+1)-((countLR+1 > shortL)?shortL+1:0)]*0.618033988749894848204586);
|
||||
double outPR = inputSampleR - (aPR[(countPR+1)-((countPR+1 > shortP)?shortP+1:0)]*0.618033988749894848204586);
|
||||
|
||||
outAL += (feedbackAL * (sustain*fabs(sin(feedbackBL))));
|
||||
outBL += (feedbackBL * (sustain*fabs(sin(feedbackCL))));
|
||||
outCL += (feedbackCL * (sustain*fabs(sin(feedbackDL))));
|
||||
outDL += (feedbackDL * (sustain*fabs(sin(feedbackAL))));
|
||||
|
||||
outDR += (feedbackDR * (sustain*fabs(sin(feedbackHR))));
|
||||
outHR += (feedbackHR * (sustain*fabs(sin(feedbackLR))));
|
||||
outLR += (feedbackLR * (sustain*fabs(sin(feedbackPR))));
|
||||
outPR += (feedbackPR * (sustain*fabs(sin(feedbackDR))));
|
||||
|
||||
aAL[countAL] = outAL; outAL *= 0.618033988749894848204586;
|
||||
aBL[countBL] = outBL; outBL *= 0.618033988749894848204586;
|
||||
aCL[countCL] = outCL; outCL *= 0.618033988749894848204586;
|
||||
aDL[countDL] = outDL; outDL *= 0.618033988749894848204586;
|
||||
aDR[countDR] = outDR; outDR *= 0.618033988749894848204586;
|
||||
aHR[countHR] = outHR; outHR *= 0.618033988749894848204586;
|
||||
aLR[countLR] = outLR; outLR *= 0.618033988749894848204586;
|
||||
aPR[countPR] = outPR; outPR *= 0.618033988749894848204586;
|
||||
|
||||
countAL++; if (countAL < 0 || countAL > shortA) countAL = 0;
|
||||
countBL++; if (countBL < 0 || countBL > shortB) countBL = 0;
|
||||
countCL++; if (countCL < 0 || countCL > shortC) countCL = 0;
|
||||
countDL++; if (countDL < 0 || countDL > shortD) countDL = 0;
|
||||
countDR++; if (countDR < 0 || countDR > shortD) countDR = 0;
|
||||
countHR++; if (countHR < 0 || countHR > shortH) countHR = 0;
|
||||
countLR++; if (countLR < 0 || countLR > shortL) countLR = 0;
|
||||
countPR++; if (countPR < 0 || countPR > shortP) countPR = 0;
|
||||
|
||||
outAL += aAL[countAL-((countAL > shortA)?shortA+1:0)];
|
||||
outBL += aBL[countBL-((countBL > shortB)?shortB+1:0)];
|
||||
outCL += aCL[countCL-((countCL > shortC)?shortC+1:0)];
|
||||
outDL += aDL[countDL-((countDL > shortD)?shortD+1:0)];
|
||||
outDR += aDR[countDR-((countDR > shortD)?shortD+1:0)];
|
||||
outHR += aHR[countHR-((countHR > shortH)?shortH+1:0)];
|
||||
outLR += aLR[countLR-((countLR > shortL)?shortL+1:0)];
|
||||
outPR += aPR[countPR-((countPR > shortP)?shortP+1:0)];
|
||||
|
||||
double outEL = (outAL - (outBL + outCL + outDL)) - (aEL[(countEL+1)-((countEL+1 > shortE)?shortE+1:0)]*0.618033988749894848204586);
|
||||
double outFL = (outBL - (outAL + outCL + outDL)) - (aFL[(countFL+1)-((countFL+1 > shortF)?shortF+1:0)]*0.618033988749894848204586);
|
||||
double outGL = (outCL - (outAL + outBL + outDL)) - (aGL[(countGL+1)-((countGL+1 > shortG)?shortG+1:0)]*0.618033988749894848204586);
|
||||
double outHL = (outDL - (outAL + outBL + outCL)) - (aHL[(countHL+1)-((countHL+1 > shortH)?shortH+1:0)]*0.618033988749894848204586);
|
||||
double outCR = (outDR - (outHR + outLR + outPR)) - (aCR[(countCR+1)-((countCR+1 > shortC)?shortC+1:0)]*0.618033988749894848204586);
|
||||
double outGR = (outHR - (outDR + outLR + outPR)) - (aGR[(countGR+1)-((countGR+1 > shortG)?shortG+1:0)]*0.618033988749894848204586);
|
||||
double outKR = (outLR - (outDR + outHR + outPR)) - (aKR[(countKR+1)-((countKR+1 > shortK)?shortK+1:0)]*0.618033988749894848204586);
|
||||
double outOR = (outPR - (outDR + outHR + outLR)) - (aOR[(countOR+1)-((countOR+1 > shortO)?shortO+1:0)]*0.618033988749894848204586);
|
||||
|
||||
aEL[countEL] = outEL; outEL *= 0.618033988749894848204586;
|
||||
aFL[countFL] = outFL; outFL *= 0.618033988749894848204586;
|
||||
aGL[countGL] = outGL; outGL *= 0.618033988749894848204586;
|
||||
aHL[countHL] = outHL; outHL *= 0.618033988749894848204586;
|
||||
aCR[countCR] = outCR; outCR *= 0.618033988749894848204586;
|
||||
aGR[countGR] = outGR; outGR *= 0.618033988749894848204586;
|
||||
aKR[countKR] = outKR; outKR *= 0.618033988749894848204586;
|
||||
aOR[countOR] = outOR; outOR *= 0.618033988749894848204586;
|
||||
|
||||
countEL++; if (countEL < 0 || countEL > shortE) countEL = 0;
|
||||
countFL++; if (countFL < 0 || countFL > shortF) countFL = 0;
|
||||
countGL++; if (countGL < 0 || countGL > shortG) countGL = 0;
|
||||
countHL++; if (countHL < 0 || countHL > shortH) countHL = 0;
|
||||
countCR++; if (countCR < 0 || countCR > shortC) countCR = 0;
|
||||
countGR++; if (countGR < 0 || countGR > shortG) countGR = 0;
|
||||
countKR++; if (countKR < 0 || countKR > shortK) countKR = 0;
|
||||
countOR++; if (countOR < 0 || countOR > shortO) countOR = 0;
|
||||
|
||||
outEL += aEL[countEL-((countEL > shortE)?shortE+1:0)];
|
||||
outFL += aFL[countFL-((countFL > shortF)?shortF+1:0)];
|
||||
outGL += aGL[countGL-((countGL > shortG)?shortG+1:0)];
|
||||
outHL += aHL[countHL-((countHL > shortH)?shortH+1:0)];
|
||||
outCR += aCR[countCR-((countCR > shortC)?shortC+1:0)];
|
||||
outGR += aGR[countGR-((countGR > shortG)?shortG+1:0)];
|
||||
outKR += aKR[countKR-((countKR > shortK)?shortK+1:0)];
|
||||
outOR += aOR[countOR-((countOR > shortO)?shortO+1:0)];
|
||||
|
||||
double outIL = (outEL - (outFL + outGL + outHL)) - (aIL[(countIL+1)-((countIL+1 > shortI)?shortI+1:0)]*0.618033988749894848204586);
|
||||
double outJL = (outFL - (outEL + outGL + outHL)) - (aJL[(countJL+1)-((countJL+1 > shortJ)?shortJ+1:0)]*0.618033988749894848204586);
|
||||
double outKL = (outGL - (outEL + outFL + outHL)) - (aKL[(countKL+1)-((countKL+1 > shortK)?shortK+1:0)]*0.618033988749894848204586);
|
||||
double outLL = (outHL - (outEL + outFL + outGL)) - (aLL[(countLL+1)-((countLL+1 > shortL)?shortL+1:0)]*0.618033988749894848204586);
|
||||
double outBR = (outCR - (outGR + outKR + outOR)) - (aBR[(countBR+1)-((countBR+1 > shortB)?shortB+1:0)]*0.618033988749894848204586);
|
||||
double outFR = (outGR - (outCR + outKR + outOR)) - (aFR[(countFR+1)-((countFR+1 > shortF)?shortF+1:0)]*0.618033988749894848204586);
|
||||
double outJR = (outKR - (outCR + outGR + outOR)) - (aJR[(countJR+1)-((countJR+1 > shortJ)?shortJ+1:0)]*0.618033988749894848204586);
|
||||
double outNR = (outOR - (outCR + outGR + outKR)) - (aNR[(countNR+1)-((countNR+1 > shortN)?shortN+1:0)]*0.618033988749894848204586);
|
||||
|
||||
aIL[countIL] = outIL; outIL *= 0.618033988749894848204586;
|
||||
aJL[countJL] = outJL; outJL *= 0.618033988749894848204586;
|
||||
aKL[countKL] = outKL; outKL *= 0.618033988749894848204586;
|
||||
aLL[countLL] = outLL; outLL *= 0.618033988749894848204586;
|
||||
aBR[countBR] = outBR; outBR *= 0.618033988749894848204586;
|
||||
aFR[countFR] = outFR; outFR *= 0.618033988749894848204586;
|
||||
aJR[countJR] = outJR; outJR *= 0.618033988749894848204586;
|
||||
aNR[countNR] = outNR; outNR *= 0.618033988749894848204586;
|
||||
|
||||
countIL++; if (countIL < 0 || countIL > shortI) countIL = 0;
|
||||
countJL++; if (countJL < 0 || countJL > shortJ) countJL = 0;
|
||||
countKL++; if (countKL < 0 || countKL > shortK) countKL = 0;
|
||||
countLL++; if (countLL < 0 || countLL > shortL) countLL = 0;
|
||||
countBR++; if (countBR < 0 || countBR > shortB) countBR = 0;
|
||||
countFR++; if (countFR < 0 || countFR > shortF) countFR = 0;
|
||||
countJR++; if (countJR < 0 || countJR > shortJ) countJR = 0;
|
||||
countNR++; if (countNR < 0 || countNR > shortN) countNR = 0;
|
||||
|
||||
outIL += aIL[countIL-((countIL > shortI)?shortI+1:0)];
|
||||
outJL += aJL[countJL-((countJL > shortJ)?shortJ+1:0)];
|
||||
outKL += aKL[countKL-((countKL > shortK)?shortK+1:0)];
|
||||
outLL += aLL[countLL-((countLL > shortL)?shortL+1:0)];
|
||||
outBR += aBR[countBR-((countBR > shortB)?shortB+1:0)];
|
||||
outFR += aFR[countFR-((countFR > shortF)?shortF+1:0)];
|
||||
outJR += aJR[countJR-((countJR > shortJ)?shortJ+1:0)];
|
||||
outNR += aNR[countNR-((countNR > shortN)?shortN+1:0)];
|
||||
|
||||
double outML = (outIL - (outJL + outKL + outLL)) - (aML[(countML+1)-((countML+1 > shortM)?shortM+1:0)]*0.618033988749894848204586);
|
||||
double outNL = (outJL - (outIL + outKL + outLL)) - (aNL[(countNL+1)-((countNL+1 > shortN)?shortN+1:0)]*0.618033988749894848204586);
|
||||
double outOL = (outKL - (outIL + outJL + outLL)) - (aOL[(countOL+1)-((countOL+1 > shortO)?shortO+1:0)]*0.618033988749894848204586);
|
||||
double outPL = (outLL - (outIL + outJL + outKL)) - (aPL[(countPL+1)-((countPL+1 > shortP)?shortP+1:0)]*0.618033988749894848204586);
|
||||
double outAR = (outBR - (outFR + outJR + outNR)) - (aAR[(countAR+1)-((countAR+1 > shortA)?shortA+1:0)]*0.618033988749894848204586);
|
||||
double outER = (outFR - (outBR + outJR + outNR)) - (aER[(countER+1)-((countER+1 > shortE)?shortE+1:0)]*0.618033988749894848204586);
|
||||
double outIR = (outJR - (outBR + outFR + outNR)) - (aIR[(countIR+1)-((countIR+1 > shortI)?shortI+1:0)]*0.618033988749894848204586);
|
||||
double outMR = (outNR - (outBR + outFR + outJR)) - (aMR[(countMR+1)-((countMR+1 > shortM)?shortM+1:0)]*0.618033988749894848204586);
|
||||
|
||||
aML[countML] = outML; outML *= 0.618033988749894848204586;
|
||||
aNL[countNL] = outNL; outNL *= 0.618033988749894848204586;
|
||||
aOL[countOL] = outOL; outOL *= 0.618033988749894848204586;
|
||||
aPL[countPL] = outPL; outPL *= 0.618033988749894848204586;
|
||||
aAR[countAR] = outAR; outAR *= 0.618033988749894848204586;
|
||||
aER[countER] = outER; outER *= 0.618033988749894848204586;
|
||||
aIR[countIR] = outIR; outIR *= 0.618033988749894848204586;
|
||||
aMR[countMR] = outMR; outMR *= 0.618033988749894848204586;
|
||||
|
||||
countML++; if (countML < 0 || countML > shortM) countML = 0;
|
||||
countNL++; if (countNL < 0 || countNL > shortN) countNL = 0;
|
||||
countOL++; if (countOL < 0 || countOL > shortO) countOL = 0;
|
||||
countPL++; if (countPL < 0 || countPL > shortP) countPL = 0;
|
||||
countAR++; if (countAR < 0 || countAR > shortA) countAR = 0;
|
||||
countER++; if (countER < 0 || countER > shortE) countER = 0;
|
||||
countIR++; if (countIR < 0 || countIR > shortI) countIR = 0;
|
||||
countMR++; if (countMR < 0 || countMR > shortM) countMR = 0;
|
||||
|
||||
outML += aML[countML-((countML > shortM)?shortM+1:0)];
|
||||
outNL += aNL[countNL-((countNL > shortN)?shortN+1:0)];
|
||||
outOL += aOL[countOL-((countOL > shortO)?shortO+1:0)];
|
||||
outPL += aPL[countPL-((countPL > shortP)?shortP+1:0)];
|
||||
outAR += aAR[countAR-((countAR > shortA)?shortA+1:0)];
|
||||
outER += aER[countER-((countER > shortE)?shortE+1:0)];
|
||||
outIR += aIR[countIR-((countIR > shortI)?shortI+1:0)];
|
||||
outMR += aMR[countMR-((countMR > shortM)?shortM+1:0)];
|
||||
|
||||
double outSample = (outML + outML + outML + prevMulchAL)*0.25;
|
||||
prevMulchAL = outML; outML = outSample;
|
||||
outSample = (outAR + outAR + outAR + prevMulchAR)*0.25;
|
||||
prevMulchAR = outAR; outAR = outSample;
|
||||
|
||||
feedbackAL = outML - (outNL + outOL + outPL);
|
||||
feedbackDR = outAR - (outER + outIR + outMR);
|
||||
feedbackBL = outNL - (outML + outOL + outPL);
|
||||
feedbackHR = outER - (outAR + outIR + outMR);
|
||||
feedbackCL = outOL - (outML + outNL + outPL);
|
||||
feedbackLR = outIR - (outAR + outER + outMR);
|
||||
feedbackDL = outPL - (outML + outNL + outOL);
|
||||
feedbackPR = outMR - (outAR + outER + outIR);
|
||||
//which we need to feed back into the input again, a bit
|
||||
|
||||
outSample = (feedbackAL + avgAL)*0.5; avgAL = feedbackAL; feedbackAL = outSample;
|
||||
outSample = (feedbackBL + avgBL)*0.5; avgBL = feedbackBL; feedbackBL = outSample;
|
||||
outSample = (feedbackCL + avgCL)*0.5; avgCL = feedbackCL; feedbackCL = outSample;
|
||||
outSample = (feedbackDL + avgDL)*0.5; avgDL = feedbackDL; feedbackDL = outSample;
|
||||
outSample = (feedbackDR + avgDR)*0.5; avgDR = feedbackDR; feedbackDR = outSample;
|
||||
outSample = (feedbackHR + avgHR)*0.5; avgHR = feedbackHR; feedbackHR = outSample;
|
||||
outSample = (feedbackLR + avgLR)*0.5; avgLR = feedbackLR; feedbackLR = outSample;
|
||||
outSample = (feedbackPR + avgPR)*0.5; avgPR = feedbackPR; feedbackPR = outSample;
|
||||
//average all our reverb feedbacks
|
||||
|
||||
inputSampleL = (outML + outNL + outOL + outPL)/8.0;
|
||||
inputSampleR = (outAR + outER + outIR + outMR)/8.0;
|
||||
//and take the final combined sum of outputs, corrected for Householder gain
|
||||
|
||||
if (inputSampleL > 1.0) inputSampleL = 1.0;
|
||||
if (inputSampleL < -1.0) inputSampleL = -1.0;
|
||||
if (inputSampleR > 1.0) inputSampleR = 1.0;
|
||||
if (inputSampleR < -1.0) inputSampleR = -1.0;
|
||||
|
||||
if (cycleEnd == 4) {
|
||||
lastRefL[0] = lastRefL[4]; //start from previous last
|
||||
lastRefL[2] = (lastRefL[0] + inputSampleL)/2; //half
|
||||
lastRefL[1] = (lastRefL[0] + lastRefL[2])/2; //one quarter
|
||||
lastRefL[3] = (lastRefL[2] + inputSampleL)/2; //three quarters
|
||||
lastRefL[4] = inputSampleL; //full
|
||||
lastRefR[0] = lastRefR[4]; //start from previous last
|
||||
lastRefR[2] = (lastRefR[0] + inputSampleR)/2; //half
|
||||
lastRefR[1] = (lastRefR[0] + lastRefR[2])/2; //one quarter
|
||||
lastRefR[3] = (lastRefR[2] + inputSampleR)/2; //three quarters
|
||||
lastRefR[4] = inputSampleR; //full
|
||||
}
|
||||
if (cycleEnd == 3) {
|
||||
lastRefL[0] = lastRefL[3]; //start from previous last
|
||||
lastRefL[2] = (lastRefL[0]+lastRefL[0]+inputSampleL)/3; //third
|
||||
lastRefL[1] = (lastRefL[0]+inputSampleL+inputSampleL)/3; //two thirds
|
||||
lastRefL[3] = inputSampleL; //full
|
||||
lastRefR[0] = lastRefR[3]; //start from previous last
|
||||
lastRefR[2] = (lastRefR[0]+lastRefR[0]+inputSampleR)/3; //third
|
||||
lastRefR[1] = (lastRefR[0]+inputSampleR+inputSampleR)/3; //two thirds
|
||||
lastRefR[3] = inputSampleR; //full
|
||||
}
|
||||
if (cycleEnd == 2) {
|
||||
lastRefL[0] = lastRefL[2]; //start from previous last
|
||||
lastRefL[1] = (lastRefL[0] + inputSampleL)/2; //half
|
||||
lastRefL[2] = inputSampleL; //full
|
||||
lastRefR[0] = lastRefR[2]; //start from previous last
|
||||
lastRefR[1] = (lastRefR[0] + inputSampleR)/2; //half
|
||||
lastRefR[2] = inputSampleR; //full
|
||||
}
|
||||
if (cycleEnd == 1) {
|
||||
lastRefL[0] = inputSampleL;
|
||||
lastRefR[0] = inputSampleR;
|
||||
}
|
||||
cycle = 0; //reset
|
||||
inputSampleL = lastRefL[cycle];
|
||||
inputSampleR = lastRefR[cycle];
|
||||
} else {
|
||||
inputSampleL = lastRefL[cycle];
|
||||
inputSampleR = lastRefR[cycle];
|
||||
//we are going through our references now
|
||||
}
|
||||
|
||||
if (cycleEnd > 1) {
|
||||
double outSample = (inputSampleL + tailL)*0.5;
|
||||
tailL = inputSampleL; inputSampleL = outSample;
|
||||
outSample = (inputSampleR + tailR)*0.5;
|
||||
tailR = inputSampleR; inputSampleR = outSample;
|
||||
} //let's average twice only at elevated sample rates
|
||||
|
||||
inputSampleL *= sqrt(gaintrim);
|
||||
inputSampleR *= sqrt(gaintrim);
|
||||
|
||||
if (wet < 1.0) {inputSampleL *= wet; inputSampleR *= wet;}
|
||||
if (dry < 1.0) {drySampleL *= dry; drySampleR *= dry;}
|
||||
inputSampleL += drySampleL; inputSampleR += drySampleR;
|
||||
//this is our submix verb dry/wet: 0.5 is BOTH at FULL VOLUME
|
||||
//purpose is that, if you're adding verb, you're not altering other balances
|
||||
|
||||
//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++;
|
||||
}
|
||||
}
|
||||
28
plugins/WinVST/CloudCoat/VSTProject.sln
Executable file
28
plugins/WinVST/CloudCoat/VSTProject.sln
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VSTProject", "VSTProject.vcxproj", "{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Debug|x64.Build.0 = Debug|x64
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Debug|x86.Build.0 = Debug|Win32
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Release|x64.ActiveCfg = Release|x64
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Release|x64.Build.0 = Release|x64
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Release|x86.ActiveCfg = Release|Win32
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
183
plugins/WinVST/CloudCoat/VSTProject.vcxproj
Executable file
183
plugins/WinVST/CloudCoat/VSTProject.vcxproj
Executable file
|
|
@ -0,0 +1,183 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffect.cpp" />
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffectx.cpp" />
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\vstplugmain.cpp" />
|
||||
<ClCompile Include="CloudCoat.cpp" />
|
||||
<ClCompile Include="CloudCoatProc.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\aeffeditor.h" />
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffect.h" />
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffectx.h" />
|
||||
<ClInclude Include="CloudCoat.h" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}</ProjectGuid>
|
||||
<RootNamespace>VSTProject</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||
<ProjectName>CloudCoat64</ProjectName>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<TargetExt>.dll</TargetExt>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
|
||||
<IntDir>$(Configuration)\</IntDir>
|
||||
<ExecutablePath>$(VC_ExecutablePath_x64);$(WindowsSDK_ExecutablePath);$(VS_ExecutablePath);$(MSBuild_ExecutablePath);$(SystemRoot)\SysWow64;$(FxCopDir);$(PATH)</ExecutablePath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
|
||||
<IntDir>$(Configuration)\</IntDir>
|
||||
<ExecutablePath>$(VC_ExecutablePath_x64);$(WindowsSDK_ExecutablePath);$(VS_ExecutablePath);$(MSBuild_ExecutablePath);$(SystemRoot)\SysWow64;$(FxCopDir);$(PATH)</ExecutablePath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<AdditionalIncludeDirectories>C:\Users\christopherjohnson\Documents\Visual Studio 2015\Projects\VSTProject\vst2.x;C:\Users\christopherjohnson\Documents\vstsdk2.4;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WINDOWS;_WINDOWS;WIN32;_USRDLL;_USE_MATH_DEFINES;_CRT_SECURE_NO_DEPRECATE;VST_FORCE_DEPRECATED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<ModuleDefinitionFile>vstplug.def</ModuleDefinitionFile>
|
||||
<IgnoreSpecificDefaultLibraries>libcmt.dll;libcmtd.dll;msvcrt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<AdditionalIncludeDirectories>C:\Users\christopherjohnson\Documents\Visual Studio 2015\Projects\VSTProject\vst2.x;C:\Users\christopherjohnson\Documents\vstsdk2.4;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<PreprocessorDefinitions>WINDOWS;_WINDOWS;WIN32;_USRDLL;_USE_MATH_DEFINES;_CRT_SECURE_NO_DEPRECATE;VST_FORCE_DEPRECATED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<IgnoreSpecificDefaultLibraries>libcmt.dll;libcmtd.dll;msvcrt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<ModuleDefinitionFile>vstplug.def</ModuleDefinitionFile>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>false</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<AdditionalIncludeDirectories>C:\Users\christopherjohnson\Documents\Visual Studio 2015\Projects\VSTProject\vst2.x;C:\Users\christopherjohnson\Documents\vstsdk2.4;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<PreprocessorDefinitions>WINDOWS;_WINDOWS;WIN32;_USRDLL;_USE_MATH_DEFINES;_CRT_SECURE_NO_DEPRECATE;VST_FORCE_DEPRECATED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<IgnoreSpecificDefaultLibraries>libcmt.dll;libcmtd.dll;msvcrt.lib;libc.lib;libcd.lib;libcmt.lib;msvcrtd.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<AdditionalDependencies>libcmt.lib;uuid.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<ModuleDefinitionFile>vstplug.def</ModuleDefinitionFile>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>false</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<AdditionalIncludeDirectories>C:\Users\christopherjohnson\Documents\Visual Studio 2015\Projects\VSTProject\vst2.x;C:\Users\christopherjohnson\Documents\vstsdk2.4;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<PreprocessorDefinitions>WINDOWS;_WINDOWS;WIN32;_USRDLL;_USE_MATH_DEFINES;_CRT_SECURE_NO_DEPRECATE;VST_FORCE_DEPRECATED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<IgnoreSpecificDefaultLibraries>libcmt.dll;libcmtd.dll;msvcrt.lib;libc.lib;libcd.lib;libcmt.lib;msvcrtd.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<AdditionalDependencies>libcmt.lib;uuid.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<ModuleDefinitionFile>vstplug.def</ModuleDefinitionFile>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
48
plugins/WinVST/CloudCoat/VSTProject.vcxproj.filters
Executable file
48
plugins/WinVST/CloudCoat/VSTProject.vcxproj.filters
Executable file
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffect.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffectx.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\vstplugmain.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="CloudCoat.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="CloudCoatProc.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\aeffeditor.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffect.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffectx.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="CloudCoat.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
19
plugins/WinVST/CloudCoat/VSTProject.vcxproj.user
Executable file
19
plugins/WinVST/CloudCoat/VSTProject.vcxproj.user
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LocalDebuggerAmpDefaultAccelerator>{ADEFF70D-84BF-47A1-91C3-FF6B0FC71218}</LocalDebuggerAmpDefaultAccelerator>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LocalDebuggerAmpDefaultAccelerator>{ADEFF70D-84BF-47A1-91C3-FF6B0FC71218}</LocalDebuggerAmpDefaultAccelerator>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LocalDebuggerAmpDefaultAccelerator>{ADEFF70D-84BF-47A1-91C3-FF6B0FC71218}</LocalDebuggerAmpDefaultAccelerator>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LocalDebuggerAmpDefaultAccelerator>{ADEFF70D-84BF-47A1-91C3-FF6B0FC71218}</LocalDebuggerAmpDefaultAccelerator>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
3
plugins/WinVST/CloudCoat/vstplug.def
Executable file
3
plugins/WinVST/CloudCoat/vstplug.def
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
EXPORTS
|
||||
VSTPluginMain
|
||||
main=VSTPluginMain
|
||||
BIN
plugins/WinVST/kCathedral2/.vs/Console4Channel64/v14/.suo
Executable file
BIN
plugins/WinVST/kCathedral2/.vs/Console4Channel64/v14/.suo
Executable file
Binary file not shown.
BIN
plugins/WinVST/kCathedral2/.vs/VSTProject/v14/.suo
Executable file
BIN
plugins/WinVST/kCathedral2/.vs/VSTProject/v14/.suo
Executable file
Binary file not shown.
28
plugins/WinVST/kCathedral2/VSTProject.sln
Executable file
28
plugins/WinVST/kCathedral2/VSTProject.sln
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VSTProject", "VSTProject.vcxproj", "{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Debug|x64.Build.0 = Debug|x64
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Debug|x86.Build.0 = Debug|Win32
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Release|x64.ActiveCfg = Release|x64
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Release|x64.Build.0 = Release|x64
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Release|x86.ActiveCfg = Release|Win32
|
||||
{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
183
plugins/WinVST/kCathedral2/VSTProject.vcxproj
Executable file
183
plugins/WinVST/kCathedral2/VSTProject.vcxproj
Executable file
|
|
@ -0,0 +1,183 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffect.cpp" />
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffectx.cpp" />
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\vstplugmain.cpp" />
|
||||
<ClCompile Include="kCathedral2.cpp" />
|
||||
<ClCompile Include="kCathedral2Proc.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\aeffeditor.h" />
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffect.h" />
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffectx.h" />
|
||||
<ClInclude Include="kCathedral2.h" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{16F7AB3C-1AE0-4574-B60C-7B4DED82938C}</ProjectGuid>
|
||||
<RootNamespace>VSTProject</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||
<ProjectName>kCathedral264</ProjectName>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<TargetExt>.dll</TargetExt>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
|
||||
<IntDir>$(Configuration)\</IntDir>
|
||||
<ExecutablePath>$(VC_ExecutablePath_x64);$(WindowsSDK_ExecutablePath);$(VS_ExecutablePath);$(MSBuild_ExecutablePath);$(SystemRoot)\SysWow64;$(FxCopDir);$(PATH)</ExecutablePath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
|
||||
<IntDir>$(Configuration)\</IntDir>
|
||||
<ExecutablePath>$(VC_ExecutablePath_x64);$(WindowsSDK_ExecutablePath);$(VS_ExecutablePath);$(MSBuild_ExecutablePath);$(SystemRoot)\SysWow64;$(FxCopDir);$(PATH)</ExecutablePath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<AdditionalIncludeDirectories>C:\Users\christopherjohnson\Documents\Visual Studio 2015\Projects\VSTProject\vst2.x;C:\Users\christopherjohnson\Documents\vstsdk2.4;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WINDOWS;_WINDOWS;WIN32;_USRDLL;_USE_MATH_DEFINES;_CRT_SECURE_NO_DEPRECATE;VST_FORCE_DEPRECATED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<ModuleDefinitionFile>vstplug.def</ModuleDefinitionFile>
|
||||
<IgnoreSpecificDefaultLibraries>libcmt.dll;libcmtd.dll;msvcrt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<AdditionalIncludeDirectories>C:\Users\christopherjohnson\Documents\Visual Studio 2015\Projects\VSTProject\vst2.x;C:\Users\christopherjohnson\Documents\vstsdk2.4;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<PreprocessorDefinitions>WINDOWS;_WINDOWS;WIN32;_USRDLL;_USE_MATH_DEFINES;_CRT_SECURE_NO_DEPRECATE;VST_FORCE_DEPRECATED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>false</MinimalRebuild>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<IgnoreSpecificDefaultLibraries>libcmt.dll;libcmtd.dll;msvcrt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<ModuleDefinitionFile>vstplug.def</ModuleDefinitionFile>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>false</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<AdditionalIncludeDirectories>C:\Users\christopherjohnson\Documents\Visual Studio 2015\Projects\VSTProject\vst2.x;C:\Users\christopherjohnson\Documents\vstsdk2.4;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<PreprocessorDefinitions>WINDOWS;_WINDOWS;WIN32;_USRDLL;_USE_MATH_DEFINES;_CRT_SECURE_NO_DEPRECATE;VST_FORCE_DEPRECATED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<IgnoreSpecificDefaultLibraries>libcmt.dll;libcmtd.dll;msvcrt.lib;libc.lib;libcd.lib;libcmt.lib;msvcrtd.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<AdditionalDependencies>libcmt.lib;uuid.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<ModuleDefinitionFile>vstplug.def</ModuleDefinitionFile>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>false</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>false</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<AdditionalIncludeDirectories>C:\Users\christopherjohnson\Documents\Visual Studio 2015\Projects\VSTProject\vst2.x;C:\Users\christopherjohnson\Documents\vstsdk2.4;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<PreprocessorDefinitions>WINDOWS;_WINDOWS;WIN32;_USRDLL;_USE_MATH_DEFINES;_CRT_SECURE_NO_DEPRECATE;VST_FORCE_DEPRECATED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<IgnoreSpecificDefaultLibraries>libcmt.dll;libcmtd.dll;msvcrt.lib;libc.lib;libcd.lib;libcmt.lib;msvcrtd.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<AdditionalDependencies>libcmt.lib;uuid.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<ModuleDefinitionFile>vstplug.def</ModuleDefinitionFile>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
48
plugins/WinVST/kCathedral2/VSTProject.vcxproj.filters
Executable file
48
plugins/WinVST/kCathedral2/VSTProject.vcxproj.filters
Executable file
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffect.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffectx.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\vstplugmain.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="kCathedral2.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="kCathedral2Proc.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\aeffeditor.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffect.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\vstsdk2.4\public.sdk\source\vst2.x\audioeffectx.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="kCathedral2.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
19
plugins/WinVST/kCathedral2/VSTProject.vcxproj.user
Executable file
19
plugins/WinVST/kCathedral2/VSTProject.vcxproj.user
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LocalDebuggerAmpDefaultAccelerator>{ADEFF70D-84BF-47A1-91C3-FF6B0FC71218}</LocalDebuggerAmpDefaultAccelerator>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LocalDebuggerAmpDefaultAccelerator>{ADEFF70D-84BF-47A1-91C3-FF6B0FC71218}</LocalDebuggerAmpDefaultAccelerator>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LocalDebuggerAmpDefaultAccelerator>{ADEFF70D-84BF-47A1-91C3-FF6B0FC71218}</LocalDebuggerAmpDefaultAccelerator>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LocalDebuggerAmpDefaultAccelerator>{ADEFF70D-84BF-47A1-91C3-FF6B0FC71218}</LocalDebuggerAmpDefaultAccelerator>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
281
plugins/WinVST/kCathedral2/kCathedral2.cpp
Executable file
281
plugins/WinVST/kCathedral2/kCathedral2.cpp
Executable file
|
|
@ -0,0 +1,281 @@
|
|||
/* ========================================
|
||||
* kCathedral2 - kCathedral2.h
|
||||
* Copyright (c) airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __kCathedral2_H
|
||||
#include "kCathedral2.h"
|
||||
#endif
|
||||
|
||||
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new kCathedral2(audioMaster);}
|
||||
|
||||
kCathedral2::kCathedral2(audioMasterCallback audioMaster) :
|
||||
AudioEffectX(audioMaster, kNumPrograms, kNumParameters)
|
||||
{
|
||||
A = 1.0;
|
||||
|
||||
gainOutL = gainOutR = 1.0;
|
||||
|
||||
for(int count = 0; count < shortA+2; count++) {eAL[count] = 0.0; eAR[count] = 0.0;}
|
||||
for(int count = 0; count < shortB+2; count++) {eBL[count] = 0.0; eBR[count] = 0.0;}
|
||||
for(int count = 0; count < shortC+2; count++) {eCL[count] = 0.0; eCR[count] = 0.0;}
|
||||
for(int count = 0; count < shortD+2; count++) {eDL[count] = 0.0; eDR[count] = 0.0;}
|
||||
for(int count = 0; count < shortE+2; count++) {eEL[count] = 0.0; eER[count] = 0.0;}
|
||||
for(int count = 0; count < shortF+2; count++) {eFL[count] = 0.0; eFR[count] = 0.0;}
|
||||
for(int count = 0; count < shortG+2; count++) {eGL[count] = 0.0; eGR[count] = 0.0;}
|
||||
for(int count = 0; count < shortH+2; count++) {eHL[count] = 0.0; eHR[count] = 0.0;}
|
||||
for(int count = 0; count < shortI+2; count++) {eIL[count] = 0.0; eIR[count] = 0.0;}
|
||||
for(int count = 0; count < shortJ+2; count++) {eJL[count] = 0.0; eJR[count] = 0.0;}
|
||||
for(int count = 0; count < shortK+2; count++) {eKL[count] = 0.0; eKR[count] = 0.0;}
|
||||
for(int count = 0; count < shortL+2; count++) {eLL[count] = 0.0; eLR[count] = 0.0;}
|
||||
for(int count = 0; count < shortM+2; count++) {eML[count] = 0.0; eMR[count] = 0.0;}
|
||||
for(int count = 0; count < shortN+2; count++) {eNL[count] = 0.0; eNR[count] = 0.0;}
|
||||
for(int count = 0; count < shortO+2; count++) {eOL[count] = 0.0; eOR[count] = 0.0;}
|
||||
for(int count = 0; count < shortP+2; count++) {ePL[count] = 0.0; ePR[count] = 0.0;}
|
||||
|
||||
|
||||
shortAL = 1;
|
||||
shortBL = 1;
|
||||
shortCL = 1;
|
||||
shortDL = 1;
|
||||
shortEL = 1;
|
||||
shortFL = 1;
|
||||
shortGL = 1;
|
||||
shortHL = 1;
|
||||
shortIL = 1;
|
||||
shortJL = 1;
|
||||
shortKL = 1;
|
||||
shortLL = 1;
|
||||
shortML = 1;
|
||||
shortNL = 1;
|
||||
shortOL = 1;
|
||||
shortPL = 1;
|
||||
|
||||
shortAR = 1;
|
||||
shortBR = 1;
|
||||
shortCR = 1;
|
||||
shortDR = 1;
|
||||
shortER = 1;
|
||||
shortFR = 1;
|
||||
shortGR = 1;
|
||||
shortHR = 1;
|
||||
shortIR = 1;
|
||||
shortJR = 1;
|
||||
shortKR = 1;
|
||||
shortLR = 1;
|
||||
shortMR = 1;
|
||||
shortNR = 1;
|
||||
shortOR = 1;
|
||||
shortPR = 1;
|
||||
|
||||
|
||||
for(int count = 0; count < delayA+2; count++) {aAL[count] = 0.0; aAR[count] = 0.0;}
|
||||
for(int count = 0; count < delayB+2; count++) {aBL[count] = 0.0; aBR[count] = 0.0;}
|
||||
for(int count = 0; count < delayC+2; count++) {aCL[count] = 0.0; aCR[count] = 0.0;}
|
||||
for(int count = 0; count < delayD+2; count++) {aDL[count] = 0.0; aDR[count] = 0.0;}
|
||||
for(int count = 0; count < delayE+2; count++) {aEL[count] = 0.0; aER[count] = 0.0;}
|
||||
for(int count = 0; count < delayF+2; count++) {aFL[count] = 0.0; aFR[count] = 0.0;}
|
||||
for(int count = 0; count < delayG+2; count++) {aGL[count] = 0.0; aGR[count] = 0.0;}
|
||||
for(int count = 0; count < delayH+2; count++) {aHL[count] = 0.0; aHR[count] = 0.0;}
|
||||
for(int count = 0; count < delayI+2; count++) {aIL[count] = 0.0; aIR[count] = 0.0;}
|
||||
for(int count = 0; count < delayJ+2; count++) {aJL[count] = 0.0; aJR[count] = 0.0;}
|
||||
for(int count = 0; count < delayK+2; count++) {aKL[count] = 0.0; aKR[count] = 0.0;}
|
||||
for(int count = 0; count < delayL+2; count++) {aLL[count] = 0.0; aLR[count] = 0.0;}
|
||||
for(int count = 0; count < delayM+2; count++) {aML[count] = 0.0; aMR[count] = 0.0;}
|
||||
for(int count = 0; count < delayN+2; count++) {aNL[count] = 0.0; aNR[count] = 0.0;}
|
||||
for(int count = 0; count < delayO+2; count++) {aOL[count] = 0.0; aOR[count] = 0.0;}
|
||||
for(int count = 0; count < delayP+2; count++) {aPL[count] = 0.0; aPR[count] = 0.0;}
|
||||
for(int count = 0; count < delayQ+2; count++) {aQL[count] = 0.0; aQR[count] = 0.0;}
|
||||
for(int count = 0; count < delayR+2; count++) {aRL[count] = 0.0; aRR[count] = 0.0;}
|
||||
for(int count = 0; count < delayS+2; count++) {aSL[count] = 0.0; aSR[count] = 0.0;}
|
||||
for(int count = 0; count < delayT+2; count++) {aTL[count] = 0.0; aTR[count] = 0.0;}
|
||||
for(int count = 0; count < delayU+2; count++) {aUL[count] = 0.0; aUR[count] = 0.0;}
|
||||
for(int count = 0; count < delayV+2; count++) {aVL[count] = 0.0; aVR[count] = 0.0;}
|
||||
for(int count = 0; count < delayW+2; count++) {aWL[count] = 0.0; aWR[count] = 0.0;}
|
||||
for(int count = 0; count < delayX+2; count++) {aXL[count] = 0.0; aXR[count] = 0.0;}
|
||||
for(int count = 0; count < delayY+2; count++) {aYL[count] = 0.0; aYR[count] = 0.0;}
|
||||
|
||||
for(int count = 0; count < predelay+2; count++) {aZL[count] = 0.0; aZR[count] = 0.0;}
|
||||
for(int count = 0; count < vlfpredelay+2; count++) {aVLFL[count] = 0.0; aVLFR[count] = 0.0;}
|
||||
|
||||
feedbackAL = 0.0;
|
||||
feedbackBL = 0.0;
|
||||
feedbackCL = 0.0;
|
||||
feedbackDL = 0.0;
|
||||
feedbackEL = 0.0;
|
||||
|
||||
feedbackER = 0.0;
|
||||
feedbackJR = 0.0;
|
||||
feedbackOR = 0.0;
|
||||
feedbackTR = 0.0;
|
||||
feedbackYR = 0.0;
|
||||
|
||||
for(int count = 0; count < 6; count++) {lastRefL[count] = 0.0; lastRefR[count] = 0.0;}
|
||||
|
||||
countAL = 1;
|
||||
countBL = 1;
|
||||
countCL = 1;
|
||||
countDL = 1;
|
||||
countEL = 1;
|
||||
countFL = 1;
|
||||
countGL = 1;
|
||||
countHL = 1;
|
||||
countIL = 1;
|
||||
countJL = 1;
|
||||
countKL = 1;
|
||||
countLL = 1;
|
||||
countML = 1;
|
||||
countNL = 1;
|
||||
countOL = 1;
|
||||
countPL = 1;
|
||||
countQL = 1;
|
||||
countRL = 1;
|
||||
countSL = 1;
|
||||
countTL = 1;
|
||||
countUL = 1;
|
||||
countVL = 1;
|
||||
countWL = 1;
|
||||
countXL = 1;
|
||||
countYL = 1;
|
||||
|
||||
countAR = 1;
|
||||
countBR = 1;
|
||||
countCR = 1;
|
||||
countDR = 1;
|
||||
countER = 1;
|
||||
countFR = 1;
|
||||
countGR = 1;
|
||||
countHR = 1;
|
||||
countIR = 1;
|
||||
countJR = 1;
|
||||
countKR = 1;
|
||||
countLR = 1;
|
||||
countMR = 1;
|
||||
countNR = 1;
|
||||
countOR = 1;
|
||||
countPR = 1;
|
||||
countQR = 1;
|
||||
countRR = 1;
|
||||
countSR = 1;
|
||||
countTR = 1;
|
||||
countUR = 1;
|
||||
countVR = 1;
|
||||
countWR = 1;
|
||||
countXR = 1;
|
||||
countYR = 1;
|
||||
|
||||
countZ = 1;
|
||||
|
||||
cycle = 0;
|
||||
|
||||
for (int x = 0; x < pear_total; x++) {pearA[x] = 0.0; pearB[x] = 0.0; pearC[x] = 0.0; pearD[x] = 0.0; pearE[x] = 0.0; pearF[x] = 0.0;}
|
||||
//from PearEQ
|
||||
|
||||
subAL = subAR = subBL = subBR = subCL = subCR = 0.0;
|
||||
sbAL = sbAR = sbBL = sbBR = sbCL = sbCR = 0.0;
|
||||
//from SubTight
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
kCathedral2::~kCathedral2() {}
|
||||
VstInt32 kCathedral2::getVendorVersion () {return 1000;}
|
||||
void kCathedral2::setProgramName(char *name) {vst_strncpy (_programName, name, kVstMaxProgNameLen);}
|
||||
void kCathedral2::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 kCathedral2::getChunk (void** data, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)calloc(kNumParameters, sizeof(float));
|
||||
chunkData[0] = A;
|
||||
/* 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 kCathedral2::setChunk (void* data, VstInt32 byteSize, bool isPreset)
|
||||
{
|
||||
float *chunkData = (float *)data;
|
||||
A = pinParameter(chunkData[0]);
|
||||
/* 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 kCathedral2::setParameter(VstInt32 index, float value) {
|
||||
switch (index) {
|
||||
case kParamA: A = value; break;
|
||||
default: throw; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
float kCathedral2::getParameter(VstInt32 index) {
|
||||
switch (index) {
|
||||
case kParamA: return A; 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 kCathedral2::getParameterName(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "Wetness", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this is our labels for displaying in the VST host
|
||||
}
|
||||
|
||||
void kCathedral2::getParameterDisplay(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: float2string (A, text, kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
} //this displays the values and handles 'popups' where it's discrete choices
|
||||
}
|
||||
|
||||
void kCathedral2::getParameterLabel(VstInt32 index, char *text) {
|
||||
switch (index) {
|
||||
case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break;
|
||||
default: break; // unknown parameter, shouldn't happen!
|
||||
}
|
||||
}
|
||||
|
||||
VstInt32 kCathedral2::canDo(char *text)
|
||||
{ return (_canDo.find(text) == _canDo.end()) ? -1: 1; } // 1 = yes, -1 = no, 0 = don't know
|
||||
|
||||
bool kCathedral2::getEffectName(char* name) {
|
||||
vst_strncpy(name, "kCathedral2", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
VstPlugCategory kCathedral2::getPlugCategory() {return kPlugCategEffect;}
|
||||
|
||||
bool kCathedral2::getProductString(char* text) {
|
||||
vst_strncpy (text, "airwindows kCathedral2", kVstMaxProductStrLen); return true;
|
||||
}
|
||||
|
||||
bool kCathedral2::getVendorString(char* text) {
|
||||
vst_strncpy (text, "airwindows", kVstMaxVendorStrLen); return true;
|
||||
}
|
||||
344
plugins/WinVST/kCathedral2/kCathedral2.h
Executable file
344
plugins/WinVST/kCathedral2/kCathedral2.h
Executable file
|
|
@ -0,0 +1,344 @@
|
|||
/* ========================================
|
||||
* kCathedral2 - kCathedral2.h
|
||||
* Created 8/12/11 by SPIAdmin
|
||||
* Copyright (c) Airwindows, Airwindows uses the MIT license
|
||||
* ======================================== */
|
||||
|
||||
#ifndef __kCathedral2_H
|
||||
#define __kCathedral2_H
|
||||
|
||||
#ifndef __audioeffect__
|
||||
#include "audioeffectx.h"
|
||||
#endif
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <math.h>
|
||||
|
||||
enum {
|
||||
kParamA = 0,
|
||||
kNumParameters = 1
|
||||
};
|
||||
|
||||
const int predelay = 1014; const int vlfpredelay = 11000;
|
||||
|
||||
const int shortA = 78; const int shortB = 760; const int shortC = 982; const int shortD = 528; const int shortE = 445; const int shortF = 1128; const int shortG = 130; const int shortH = 708; const int shortI = 22; const int shortJ = 2144; const int shortK = 354; const int shortL = 1169; const int shortM = 11; const int shortN = 2782; const int shortO = 58; const int shortP = 1515; //5 to 159 ms, 809 seat hall. Scarcity, 1 in 212274
|
||||
//Short809
|
||||
|
||||
const int delayA = 871; const int delayB = 1037; const int delayC = 1205; const int delayD = 297; const int delayE = 467; const int delayF = 884; const int delayG = 173; const int delayH = 1456; const int delayI = 799; const int delayJ = 361; const int delayK = 1432; const int delayL = 338; const int delayM = 186; const int delayN = 1408; const int delayO = 1014; const int delayP = 23; const int delayQ = 807; const int delayR = 501; const int delayS = 1468; const int delayT = 1102; const int delayU = 11; const int delayV = 1119; const int delayW = 1315; const int delayX = 94; const int delayY = 1270; //15 to 155 ms, 874 seat hall
|
||||
//874b-U rated incompressible if filesize larger than 25,298,231 bytes
|
||||
|
||||
const int kNumPrograms = 0;
|
||||
const int kNumInputs = 2;
|
||||
const int kNumOutputs = 2;
|
||||
const unsigned long kUniqueId = 'kcti'; //Change this to what the AU identity is!
|
||||
|
||||
class kCathedral2 :
|
||||
public AudioEffectX
|
||||
{
|
||||
public:
|
||||
kCathedral2(audioMasterCallback audioMaster);
|
||||
~kCathedral2();
|
||||
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;
|
||||
|
||||
double gainOutL;
|
||||
double gainOutR;
|
||||
|
||||
|
||||
double eAL[shortA+5];
|
||||
double eBL[shortB+5];
|
||||
double eCL[shortC+5];
|
||||
double eDL[shortD+5];
|
||||
double eEL[shortE+5];
|
||||
double eFL[shortF+5];
|
||||
double eGL[shortG+5];
|
||||
double eHL[shortH+5];
|
||||
double eIL[shortI+5];
|
||||
double eJL[shortJ+5];
|
||||
double eKL[shortK+5];
|
||||
double eLL[shortL+5];
|
||||
double eML[shortM+5];
|
||||
double eNL[shortN+5];
|
||||
double eOL[shortO+5];
|
||||
double ePL[shortP+5];
|
||||
|
||||
double eAR[shortA+5];
|
||||
double eBR[shortB+5];
|
||||
double eCR[shortC+5];
|
||||
double eDR[shortD+5];
|
||||
double eER[shortE+5];
|
||||
double eFR[shortF+5];
|
||||
double eGR[shortG+5];
|
||||
double eHR[shortH+5];
|
||||
double eIR[shortI+5];
|
||||
double eJR[shortJ+5];
|
||||
double eKR[shortK+5];
|
||||
double eLR[shortL+5];
|
||||
double eMR[shortM+5];
|
||||
double eNR[shortN+5];
|
||||
double eOR[shortO+5];
|
||||
double ePR[shortP+5];
|
||||
|
||||
int shortAL;
|
||||
int shortBL;
|
||||
int shortCL;
|
||||
int shortDL;
|
||||
int shortEL;
|
||||
int shortFL;
|
||||
int shortGL;
|
||||
int shortHL;
|
||||
int shortIL;
|
||||
int shortJL;
|
||||
int shortKL;
|
||||
int shortLL;
|
||||
int shortML;
|
||||
int shortNL;
|
||||
int shortOL;
|
||||
int shortPL;
|
||||
|
||||
int shortAR;
|
||||
int shortBR;
|
||||
int shortCR;
|
||||
int shortDR;
|
||||
int shortER;
|
||||
int shortFR;
|
||||
int shortGR;
|
||||
int shortHR;
|
||||
int shortIR;
|
||||
int shortJR;
|
||||
int shortKR;
|
||||
int shortLR;
|
||||
int shortMR;
|
||||
int shortNR;
|
||||
int shortOR;
|
||||
int shortPR;
|
||||
|
||||
|
||||
|
||||
|
||||
double aAL[delayA+5];
|
||||
double aBL[delayB+5];
|
||||
double aCL[delayC+5];
|
||||
double aDL[delayD+5];
|
||||
double aEL[delayE+5];
|
||||
double aFL[delayF+5];
|
||||
double aGL[delayG+5];
|
||||
double aHL[delayH+5];
|
||||
double aIL[delayI+5];
|
||||
double aJL[delayJ+5];
|
||||
double aKL[delayK+5];
|
||||
double aLL[delayL+5];
|
||||
double aML[delayM+5];
|
||||
double aNL[delayN+5];
|
||||
double aOL[delayO+5];
|
||||
double aPL[delayP+5];
|
||||
double aQL[delayQ+5];
|
||||
double aRL[delayR+5];
|
||||
double aSL[delayS+5];
|
||||
double aTL[delayT+5];
|
||||
double aUL[delayU+5];
|
||||
double aVL[delayV+5];
|
||||
double aWL[delayW+5];
|
||||
double aXL[delayX+5];
|
||||
double aYL[delayY+5];
|
||||
|
||||
double aAR[delayA+5];
|
||||
double aBR[delayB+5];
|
||||
double aCR[delayC+5];
|
||||
double aDR[delayD+5];
|
||||
double aER[delayE+5];
|
||||
double aFR[delayF+5];
|
||||
double aGR[delayG+5];
|
||||
double aHR[delayH+5];
|
||||
double aIR[delayI+5];
|
||||
double aJR[delayJ+5];
|
||||
double aKR[delayK+5];
|
||||
double aLR[delayL+5];
|
||||
double aMR[delayM+5];
|
||||
double aNR[delayN+5];
|
||||
double aOR[delayO+5];
|
||||
double aPR[delayP+5];
|
||||
double aQR[delayQ+5];
|
||||
double aRR[delayR+5];
|
||||
double aSR[delayS+5];
|
||||
double aTR[delayT+5];
|
||||
double aUR[delayU+5];
|
||||
double aVR[delayV+5];
|
||||
double aWR[delayW+5];
|
||||
double aXR[delayX+5];
|
||||
double aYR[delayY+5];
|
||||
|
||||
double aZL[predelay+5];
|
||||
double aZR[predelay+5];
|
||||
|
||||
double aVLFL[vlfpredelay+5];
|
||||
double aVLFR[vlfpredelay+5];
|
||||
|
||||
|
||||
double feedbackAL;
|
||||
double feedbackBL;
|
||||
double feedbackCL;
|
||||
double feedbackDL;
|
||||
double feedbackEL;
|
||||
|
||||
double feedbackER;
|
||||
double feedbackJR;
|
||||
double feedbackOR;
|
||||
double feedbackTR;
|
||||
double feedbackYR;
|
||||
|
||||
double lastRefL[7];
|
||||
double lastRefR[7];
|
||||
|
||||
int countAL;
|
||||
int countBL;
|
||||
int countCL;
|
||||
int countDL;
|
||||
int countEL;
|
||||
int countFL;
|
||||
int countGL;
|
||||
int countHL;
|
||||
int countIL;
|
||||
int countJL;
|
||||
int countKL;
|
||||
int countLL;
|
||||
int countML;
|
||||
int countNL;
|
||||
int countOL;
|
||||
int countPL;
|
||||
int countQL;
|
||||
int countRL;
|
||||
int countSL;
|
||||
int countTL;
|
||||
int countUL;
|
||||
int countVL;
|
||||
int countWL;
|
||||
int countXL;
|
||||
int countYL;
|
||||
|
||||
int countAR;
|
||||
int countBR;
|
||||
int countCR;
|
||||
int countDR;
|
||||
int countER;
|
||||
int countFR;
|
||||
int countGR;
|
||||
int countHR;
|
||||
int countIR;
|
||||
int countJR;
|
||||
int countKR;
|
||||
int countLR;
|
||||
int countMR;
|
||||
int countNR;
|
||||
int countOR;
|
||||
int countPR;
|
||||
int countQR;
|
||||
int countRR;
|
||||
int countSR;
|
||||
int countTR;
|
||||
int countUR;
|
||||
int countVR;
|
||||
int countWR;
|
||||
int countXR;
|
||||
int countYR;
|
||||
|
||||
int countZ;
|
||||
int countVLF;
|
||||
|
||||
int cycle;
|
||||
|
||||
enum {
|
||||
prevSampL1,
|
||||
prevSlewL1,
|
||||
prevSampR1,
|
||||
prevSlewR1,
|
||||
prevSampL2,
|
||||
prevSlewL2,
|
||||
prevSampR2,
|
||||
prevSlewR2,
|
||||
prevSampL3,
|
||||
prevSlewL3,
|
||||
prevSampR3,
|
||||
prevSlewR3,
|
||||
prevSampL4,
|
||||
prevSlewL4,
|
||||
prevSampR4,
|
||||
prevSlewR4,
|
||||
prevSampL5,
|
||||
prevSlewL5,
|
||||
prevSampR5,
|
||||
prevSlewR5,
|
||||
prevSampL6,
|
||||
prevSlewL6,
|
||||
prevSampR6,
|
||||
prevSlewR6,
|
||||
prevSampL7,
|
||||
prevSlewL7,
|
||||
prevSampR7,
|
||||
prevSlewR7,
|
||||
prevSampL8,
|
||||
prevSlewL8,
|
||||
prevSampR8,
|
||||
prevSlewR8,
|
||||
prevSampL9,
|
||||
prevSlewL9,
|
||||
prevSampR9,
|
||||
prevSlewR9,
|
||||
prevSampL10,
|
||||
prevSlewL10,
|
||||
prevSampR10,
|
||||
prevSlewR10,
|
||||
pear_total
|
||||
}; //fixed frequency pear filter for ultrasonics, stereo
|
||||
|
||||
double pearA[pear_total]; //probably worth just using a number here
|
||||
double pearB[pear_total]; //probably worth just using a number here
|
||||
double pearC[pear_total]; //probably worth just using a number here
|
||||
double pearD[pear_total]; //probably worth just using a number here
|
||||
double pearE[pear_total]; //probably worth just using a number here
|
||||
double pearF[pear_total]; //probably worth just using a number here
|
||||
|
||||
|
||||
double subAL;
|
||||
double subAR;
|
||||
double subBL;
|
||||
double subBR;
|
||||
double subCL;
|
||||
double subCR;
|
||||
|
||||
double sbAL;
|
||||
double sbAR;
|
||||
double sbBL;
|
||||
double sbBR;
|
||||
double sbCL;
|
||||
double sbCR;
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
//default stuff
|
||||
|
||||
|
||||
|
||||
float A;
|
||||
};
|
||||
|
||||
#endif
|
||||
1218
plugins/WinVST/kCathedral2/kCathedral2Proc.cpp
Executable file
1218
plugins/WinVST/kCathedral2/kCathedral2Proc.cpp
Executable file
File diff suppressed because it is too large
Load diff
3
plugins/WinVST/kCathedral2/vstplug.def
Executable file
3
plugins/WinVST/kCathedral2/vstplug.def
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
EXPORTS
|
||||
VSTPluginMain
|
||||
main=VSTPluginMain
|
||||
Loading…
Add table
Add a link
Reference in a new issue