mirror of
https://github.com/airwindows/airwindows.git
synced 2026-05-21 06:46:21 -06:00
up to curve, signed
This commit is contained in:
parent
9e5d91961b
commit
43799635b4
125 changed files with 113 additions and 100 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
* Created: 1/27/13
|
||||
*
|
||||
* Copyright: Copyright © 2013 Airwindows, All Rights Reserved
|
||||
* Copyright: Copyright <EFBFBD> 2013 Airwindows, All Rights Reserved
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
|
|
@ -163,6 +163,7 @@ public:
|
|||
|
||||
private:
|
||||
Float64 fpNShape;
|
||||
uint32_t fpd;
|
||||
|
||||
Float64 lastSample;
|
||||
Float64 last2Sample;
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
* Created: 12/3/14
|
||||
*
|
||||
* Copyright: Copyright © 2014 Airwindows, All Rights Reserved
|
||||
* Copyright: Copyright <EFBFBD> 2014 Airwindows, All Rights Reserved
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
|
|
@ -227,7 +227,6 @@ void Channel4::Channel4Kernel::Process( const Float32 *inSourceP,
|
|||
|
||||
while (nSampleFrames-- > 0) {
|
||||
inputSample = *sourceP;
|
||||
if (fabs(inputSample)<1.18e-23) inputSample = fpd * 1.18e-17;
|
||||
|
||||
if (flip)
|
||||
{
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -5,7 +5,7 @@
|
|||
*
|
||||
* Created: 5/4/18
|
||||
*
|
||||
* Copyright: Copyright © 2018 Airwindows, All Rights Reserved
|
||||
* Copyright: Copyright <EFBFBD> 2018 Airwindows, All Rights Reserved
|
||||
*
|
||||
* Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
|
||||
* consideration of your agreement to the following terms, and your use, installation, modification
|
||||
|
|
@ -142,6 +142,7 @@ public:
|
|||
|
||||
private:
|
||||
Float64 fpNShape;
|
||||
uint32_t fpd;
|
||||
Float64 iirSampleA;
|
||||
Float64 iirSampleB;
|
||||
bool flip;
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -815,6 +815,7 @@
|
|||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
CODE_SIGN_IDENTITY = "Developer ID Application";
|
||||
CODE_SIGN_STYLE = Manual;
|
||||
DEVELOPMENT_TEAM = 9BMAKYA76W;
|
||||
EXPORTED_SYMBOLS_FILE = Cojones.exp;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
|
|
@ -827,6 +828,7 @@
|
|||
OTHER_REZFLAGS = "";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.airwindows.audiounit.${PRODUCT_NAME:identifier}";
|
||||
PRODUCT_NAME = Cojones;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SDKROOT = macosx;
|
||||
STRIP_INSTALLED_PRODUCT = YES;
|
||||
STRIP_STYLE = debugging;
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -166,7 +166,8 @@ ComponentResult curve::Initialize()
|
|||
ComponentResult curve::Reset(AudioUnitScope inScope, AudioUnitElement inElement)
|
||||
{
|
||||
gain = 1.0;
|
||||
fpd = 1.0; while (fpd < 16386) fpd = rand()*UINT32_MAX;
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
return noErr;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -105,7 +105,8 @@ public:
|
|||
|
||||
private:
|
||||
double gain;
|
||||
uint32_t fpd;
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
};
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "C5RawBuss.vst"
|
||||
BlueprintName = "C5RawBuss"
|
||||
ReferencedContainer = "container:C5RawBuss.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "C5RawBuss.vst"
|
||||
BlueprintName = "C5RawBuss"
|
||||
ReferencedContainer = "container:C5RawBuss.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "C5RawChannel.vst"
|
||||
BlueprintName = "C5RawChannel"
|
||||
ReferencedContainer = "container:C5RawChannel.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "C5RawChannel.vst"
|
||||
BlueprintName = "C5RawChannel"
|
||||
ReferencedContainer = "container:C5RawChannel.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "CStrip.vst"
|
||||
BlueprintName = "CStrip"
|
||||
ReferencedContainer = "container:CStrip.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "CStrip.vst"
|
||||
BlueprintName = "CStrip"
|
||||
ReferencedContainer = "container:CStrip.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Cabs.vst"
|
||||
BlueprintName = "Cabs"
|
||||
ReferencedContainer = "container:Cabs.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Cabs.vst"
|
||||
BlueprintName = "Cabs"
|
||||
ReferencedContainer = "container:Cabs.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -160,11 +160,11 @@ void Calibre::processReplacing(float **inputs, float **outputs, VstInt32 sampleF
|
|||
//otherwise we leave it untouched by the overdrive stuff
|
||||
|
||||
|
||||
randy = ((double(fpd)/UINT32_MAX)*0.042);
|
||||
randy = ((double(fpdL)/UINT32_MAX)*0.042);
|
||||
inputSampleL = ((inputSampleL*(1-randy))+(lastSampleL*randy)) * outlevel;
|
||||
lastSampleL = inputSampleL;
|
||||
|
||||
randy = ((double(fpd)/UINT32_MAX)*0.042);
|
||||
randy = ((double(fpdR)/UINT32_MAX)*0.042);
|
||||
inputSampleR = ((inputSampleR*(1-randy))+(lastSampleR*randy)) * outlevel;
|
||||
lastSampleR = inputSampleR;
|
||||
|
||||
|
|
@ -341,11 +341,11 @@ void Calibre::processDoubleReplacing(double **inputs, double **outputs, VstInt32
|
|||
//otherwise we leave it untouched by the overdrive stuff
|
||||
|
||||
|
||||
randy = ((double(fpd)/UINT32_MAX)*0.042);
|
||||
randy = ((double(fpdL)/UINT32_MAX)*0.042);
|
||||
inputSampleL = ((inputSampleL*(1-randy))+(lastSampleL*randy)) * outlevel;
|
||||
lastSampleL = inputSampleL;
|
||||
|
||||
randy = ((double(fpd)/UINT32_MAX)*0.042);
|
||||
randy = ((double(fpdR)/UINT32_MAX)*0.042);
|
||||
inputSampleR = ((inputSampleR*(1-randy))+(lastSampleR*randy)) * outlevel;
|
||||
lastSampleR = inputSampleR;
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Capacitor.vst"
|
||||
BlueprintName = "Capacitor"
|
||||
ReferencedContainer = "container:Capacitor.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Capacitor.vst"
|
||||
BlueprintName = "Capacitor"
|
||||
ReferencedContainer = "container:Capacitor.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Capacitor2.vst"
|
||||
BlueprintName = "Capacitor2"
|
||||
ReferencedContainer = "container:Capacitor2.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Capacitor2.vst"
|
||||
BlueprintName = "Capacitor2"
|
||||
ReferencedContainer = "container:Capacitor2.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Channel4.vst"
|
||||
BlueprintName = "Channel4"
|
||||
ReferencedContainer = "container:Channel4.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Channel4.vst"
|
||||
BlueprintName = "Channel4"
|
||||
ReferencedContainer = "container:Channel4.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
|
|
@ -34,8 +34,6 @@ void Channel4::processReplacing(float **inputs, float **outputs, VstInt32 sample
|
|||
{
|
||||
inputSampleL = *in1;
|
||||
inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (fpFlip)
|
||||
{
|
||||
|
|
@ -138,8 +136,6 @@ void Channel4::processDoubleReplacing(double **inputs, double **outputs, VstInt3
|
|||
{
|
||||
inputSampleL = *in1;
|
||||
inputSampleR = *in2;
|
||||
if (fabs(inputSampleL)<1.18e-23) inputSampleL = fpdL * 1.18e-17;
|
||||
if (fabs(inputSampleR)<1.18e-23) inputSampleR = fpdR * 1.18e-17;
|
||||
|
||||
if (fpFlip)
|
||||
{
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Channel5.vst"
|
||||
BlueprintName = "Channel5"
|
||||
ReferencedContainer = "container:Channel5.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Channel5.vst"
|
||||
BlueprintName = "Channel5"
|
||||
ReferencedContainer = "container:Channel5.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ Channel5::Channel5(audioMasterCallback audioMaster) :
|
|||
output = 1.0;
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
fpNShapeL = 0.0;
|
||||
fpNShapeR = 0.0;
|
||||
fpFlip = true;
|
||||
iirSampleLA = 0.0;
|
||||
iirSampleRA = 0.0;
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@ private:
|
|||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
double fpNShapeL;
|
||||
double fpNShapeR;
|
||||
bool fpFlip;
|
||||
//default stuff
|
||||
double iirSampleLA;
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Channel6.vst"
|
||||
BlueprintName = "Channel6"
|
||||
ReferencedContainer = "container:Channel6.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Channel6.vst"
|
||||
BlueprintName = "Channel6"
|
||||
ReferencedContainer = "container:Channel6.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Channel7.vst"
|
||||
BlueprintName = "Channel7"
|
||||
ReferencedContainer = "container:Channel7.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Channel7.vst"
|
||||
BlueprintName = "Channel7"
|
||||
ReferencedContainer = "container:Channel7.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Channel9.vst"
|
||||
BlueprintName = "Channel9"
|
||||
ReferencedContainer = "container:Channel9.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Channel9.vst"
|
||||
BlueprintName = "Channel9"
|
||||
ReferencedContainer = "container:Channel9.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Chorus.vst"
|
||||
BlueprintName = "Chorus"
|
||||
ReferencedContainer = "container:Chorus.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Chorus.vst"
|
||||
BlueprintName = "Chorus"
|
||||
ReferencedContainer = "container:Chorus.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "ChorusEnsemble.vst"
|
||||
BlueprintName = "ChorusEnsemble"
|
||||
ReferencedContainer = "container:ChorusEnsemble.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "ChorusEnsemble.vst"
|
||||
BlueprintName = "ChorusEnsemble"
|
||||
ReferencedContainer = "container:ChorusEnsemble.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "ChromeOxide.vst"
|
||||
BlueprintName = "ChromeOxide"
|
||||
ReferencedContainer = "container:ChromeOxide.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "ChromeOxide.vst"
|
||||
BlueprintName = "ChromeOxide"
|
||||
ReferencedContainer = "container:ChromeOxide.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ void ChromeOxide::processReplacing(float **inputs, float **outputs, VstInt32 sam
|
|||
|
||||
bridgerectifier = inputSampleL;
|
||||
//insanity check
|
||||
randy = bias+((double(fpd)/UINT32_MAX)*noise);
|
||||
randy = bias+((double(fpdL)/UINT32_MAX)*noise);
|
||||
if ((randy >= 0.0)&&(randy < 1.0)) bridgerectifier = (inputSampleL * randy)+(secondSampleL * (1.0-randy));
|
||||
if ((randy >= 1.0)&&(randy < 2.0)) bridgerectifier = (secondSampleL * (randy-1.0))+(thirdSampleL * (2.0-randy));
|
||||
if ((randy >= 2.0)&&(randy < 3.0)) bridgerectifier = (thirdSampleL * (randy-2.0))+(fourthSampleL * (3.0-randy));
|
||||
|
|
@ -112,7 +112,7 @@ void ChromeOxide::processReplacing(float **inputs, float **outputs, VstInt32 sam
|
|||
|
||||
bridgerectifier = inputSampleR;
|
||||
//insanity check
|
||||
randy = bias+((double(fpd)/UINT32_MAX)*noise);
|
||||
randy = bias+((double(fpdR)/UINT32_MAX)*noise);
|
||||
if ((randy >= 0.0)&&(randy < 1.0)) bridgerectifier = (inputSampleR * randy)+(secondSampleR * (1.0-randy));
|
||||
if ((randy >= 1.0)&&(randy < 2.0)) bridgerectifier = (secondSampleR * (randy-1.0))+(thirdSampleR * (2.0-randy));
|
||||
if ((randy >= 2.0)&&(randy < 3.0)) bridgerectifier = (thirdSampleR * (randy-2.0))+(fourthSampleR * (3.0-randy));
|
||||
|
|
@ -257,7 +257,7 @@ void ChromeOxide::processDoubleReplacing(double **inputs, double **outputs, VstI
|
|||
|
||||
bridgerectifier = inputSampleL;
|
||||
//insanity check
|
||||
randy = bias+((double(fpd)/UINT32_MAX)*noise);
|
||||
randy = bias+((double(fpdL)/UINT32_MAX)*noise);
|
||||
if ((randy >= 0.0)&&(randy < 1.0)) bridgerectifier = (inputSampleL * randy)+(secondSampleL * (1.0-randy));
|
||||
if ((randy >= 1.0)&&(randy < 2.0)) bridgerectifier = (secondSampleL * (randy-1.0))+(thirdSampleL * (2.0-randy));
|
||||
if ((randy >= 2.0)&&(randy < 3.0)) bridgerectifier = (thirdSampleL * (randy-2.0))+(fourthSampleL * (3.0-randy));
|
||||
|
|
@ -273,7 +273,7 @@ void ChromeOxide::processDoubleReplacing(double **inputs, double **outputs, VstI
|
|||
|
||||
bridgerectifier = inputSampleR;
|
||||
//insanity check
|
||||
randy = bias+((double(fpd)/UINT32_MAX)*noise);
|
||||
randy = bias+((double(fpdR)/UINT32_MAX)*noise);
|
||||
if ((randy >= 0.0)&&(randy < 1.0)) bridgerectifier = (inputSampleR * randy)+(secondSampleR * (1.0-randy));
|
||||
if ((randy >= 1.0)&&(randy < 2.0)) bridgerectifier = (secondSampleR * (randy-1.0))+(thirdSampleR * (2.0-randy));
|
||||
if ((randy >= 2.0)&&(randy < 3.0)) bridgerectifier = (thirdSampleR * (randy-2.0))+(fourthSampleR * (3.0-randy));
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Cider.vst"
|
||||
BlueprintName = "Cider"
|
||||
ReferencedContainer = "container:Cider.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Cider.vst"
|
||||
BlueprintName = "Cider"
|
||||
ReferencedContainer = "container:Cider.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
|
|
@ -158,11 +158,11 @@ void Cider::processReplacing(float **inputs, float **outputs, VstInt32 sampleFra
|
|||
}
|
||||
//otherwise we leave it untouched by the overdrive stuff
|
||||
|
||||
randy = ((double(fpd)/UINT32_MAX)*0.057);
|
||||
randy = ((double(fpdL)/UINT32_MAX)*0.057);
|
||||
inputSampleL = ((inputSampleL*(1-randy))+(lastSampleL*randy)) * outlevel;
|
||||
lastSampleL = inputSampleL;
|
||||
|
||||
randy = ((double(fpd)/UINT32_MAX)*0.057);
|
||||
randy = ((double(fpdR)/UINT32_MAX)*0.057);
|
||||
inputSampleR = ((inputSampleR*(1-randy))+(lastSampleR*randy)) * outlevel;
|
||||
lastSampleR = inputSampleR;
|
||||
|
||||
|
|
@ -337,11 +337,11 @@ void Cider::processDoubleReplacing(double **inputs, double **outputs, VstInt32 s
|
|||
}
|
||||
//otherwise we leave it untouched by the overdrive stuff
|
||||
|
||||
randy = ((double(fpd)/UINT32_MAX)*0.057);
|
||||
randy = ((double(fpdL)/UINT32_MAX)*0.057);
|
||||
inputSampleL = ((inputSampleL*(1-randy))+(lastSampleL*randy)) * outlevel;
|
||||
lastSampleL = inputSampleL;
|
||||
|
||||
randy = ((double(fpd)/UINT32_MAX)*0.057);
|
||||
randy = ((double(fpdR)/UINT32_MAX)*0.057);
|
||||
inputSampleR = ((inputSampleR*(1-randy))+(lastSampleR*randy)) * outlevel;
|
||||
lastSampleR = inputSampleR;
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "ClipOnly.vst"
|
||||
BlueprintName = "ClipOnly"
|
||||
ReferencedContainer = "container:ClipOnly.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "ClipOnly.vst"
|
||||
BlueprintName = "ClipOnly"
|
||||
ReferencedContainer = "container:ClipOnly.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
|
|
@ -257,6 +257,7 @@
|
|||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
CODE_SIGN_IDENTITY = "Developer ID Application";
|
||||
CODE_SIGN_STYLE = Manual;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEVELOPMENT_TEAM = 9BMAKYA76W;
|
||||
FRAMEWORK_SEARCH_PATHS = "";
|
||||
|
|
@ -279,6 +280,7 @@
|
|||
OTHER_REZFLAGS = "";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.airwindows.ClipOnly2;
|
||||
PRODUCT_NAME = ClipOnly2;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SDKROOT = macosx;
|
||||
SECTORDER_FLAGS = "";
|
||||
STRIP_STYLE = debugging;
|
||||
|
|
@ -297,6 +299,7 @@
|
|||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
CODE_SIGN_IDENTITY = "Developer ID Application";
|
||||
CODE_SIGN_STYLE = Manual;
|
||||
COPY_PHASE_STRIP = YES;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
DEVELOPMENT_TEAM = 9BMAKYA76W;
|
||||
|
|
@ -321,6 +324,7 @@
|
|||
OTHER_REZFLAGS = "";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.airwindows.ClipOnly2;
|
||||
PRODUCT_NAME = ClipOnly2;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SDKROOT = macosx;
|
||||
SECTORDER_FLAGS = "";
|
||||
SKIP_INSTALL = NO;
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Coils.vst"
|
||||
BlueprintName = "Coils"
|
||||
ReferencedContainer = "container:Coils.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Coils.vst"
|
||||
BlueprintName = "Coils"
|
||||
ReferencedContainer = "container:Coils.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Coils2.vst"
|
||||
BlueprintName = "Coils2"
|
||||
ReferencedContainer = "container:Coils2.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Coils2.vst"
|
||||
BlueprintName = "Coils2"
|
||||
ReferencedContainer = "container:Coils2.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Compresaturator.vst"
|
||||
BlueprintName = "Compresaturator"
|
||||
ReferencedContainer = "container:Compresaturator.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Compresaturator.vst"
|
||||
BlueprintName = "Compresaturator"
|
||||
ReferencedContainer = "container:Compresaturator.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ void Compresaturator::processReplacing(float **inputs, float **outputs, VstInt32
|
|||
|
||||
//begin pad L
|
||||
padFactorL += dL[dCount];
|
||||
double randy = (double(fpd)/UINT32_MAX);
|
||||
double randy = (double(fpdL)/UINT32_MAX);
|
||||
if ((targetWidth*randy) > lastWidthL) {
|
||||
//we are expanding the buffer so we don't remove this trailing sample
|
||||
lastWidthL += 1;
|
||||
|
|
@ -140,7 +140,7 @@ void Compresaturator::processReplacing(float **inputs, float **outputs, VstInt32
|
|||
|
||||
//begin pad R
|
||||
padFactorR += dR[dCount];
|
||||
randy = (double(fpd)/UINT32_MAX);
|
||||
randy = (double(fpdR)/UINT32_MAX);
|
||||
if ((targetWidth*randy) > lastWidthR) {
|
||||
//we are expanding the buffer so we don't remove this trailing sample
|
||||
lastWidthR += 1;
|
||||
|
|
@ -258,7 +258,7 @@ void Compresaturator::processDoubleReplacing(double **inputs, double **outputs,
|
|||
//we now have a big buffer to draw from, which is always positive amount of overspill
|
||||
|
||||
padFactorL += dL[dCount];
|
||||
double randy = (double(fpd)/UINT32_MAX);
|
||||
double randy = (double(fpdL)/UINT32_MAX);
|
||||
if ((targetWidth*randy) > lastWidthL) {
|
||||
//we are expanding the buffer so we don't remove this trailing sample
|
||||
lastWidthL += 1;
|
||||
|
|
@ -319,7 +319,7 @@ void Compresaturator::processDoubleReplacing(double **inputs, double **outputs,
|
|||
//we now have a big buffer to draw from, which is always positive amount of overspill
|
||||
|
||||
padFactorR += dR[dCount];
|
||||
randy = (double(fpd)/UINT32_MAX);
|
||||
randy = (double(fpdR)/UINT32_MAX);
|
||||
if ((targetWidth*randy) > lastWidthR) {
|
||||
//we are expanding the buffer so we don't remove this trailing sample
|
||||
lastWidthR += 1;
|
||||
|
|
@ -352,10 +352,10 @@ void Compresaturator::processDoubleReplacing(double **inputs, double **outputs,
|
|||
|
||||
//begin 64 bit stereo floating point dither
|
||||
//int expon; frexp((double)inputSampleL, &expon);
|
||||
fpd ^= fpd << 13; fpd ^= fpd >> 17; fpd ^= fpd << 5;
|
||||
fpdL ^= fpdL << 13; fpdL ^= fpdL >> 17; fpdL ^= fpdL << 5;
|
||||
//inputSampleL += static_cast<int32_t>(fpd) * 1.110223024625156e-44L * pow(2,expon+62);
|
||||
//frexp((double)inputSampleR, &expon);
|
||||
fpd ^= fpd << 13; fpd ^= fpd >> 17; fpd ^= fpd << 5;
|
||||
fpdR ^= fpdR << 13; fpdR ^= fpdR >> 17; fpdR ^= fpdR << 5;
|
||||
//inputSampleR += static_cast<int32_t>(fpd) * 1.110223024625156e-44L * pow(2,expon+62);
|
||||
//end 64 bit stereo floating point dither
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -15,7 +15,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Console4Buss.vst"
|
||||
BlueprintName = "Console4Buss"
|
||||
ReferencedContainer = "container:Console4Buss.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8D01CCC60486CAD60068D4B7"
|
||||
BuildableName = "Gain.vst"
|
||||
BuildableName = "Console4Buss.vst"
|
||||
BlueprintName = "Console4Buss"
|
||||
ReferencedContainer = "container:Console4Buss.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
|||
|
|
@ -22,8 +22,9 @@ Console4Buss::Console4Buss(audioMasterCallback audioMaster) :
|
|||
gainchase = -90.0;
|
||||
settingchase = -90.0;
|
||||
chasespeed = 350.0;
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
fpdL = 1.0; while (fpdL < 16386) fpdL = rand()*UINT32_MAX;
|
||||
fpdR = 1.0; while (fpdR < 16386) fpdR = rand()*UINT32_MAX;
|
||||
|
||||
|
||||
// TODO: uncomment canDo entries according to your plugin's capabilities
|
||||
// _canDo.insert("sendVstEvents"); // plug-in will send Vst events to Host.
|
||||
|
|
|
|||
|
|
@ -79,7 +79,8 @@ private:
|
|||
double gainchase;
|
||||
double settingchase;
|
||||
double chasespeed;
|
||||
|
||||
uint32_t fpdL;
|
||||
uint32_t fpdR;
|
||||
float gain;
|
||||
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue