aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/MacVST/DitherMeDiskers
diff options
context:
space:
mode:
authorChris Johnson <jinx6568@sover.net>2018-12-16 13:54:56 -0500
committerChris Johnson <jinx6568@sover.net>2018-12-16 13:54:56 -0500
commit2a6e1bef6b4bd039386aa24c988f5d69364ff874 (patch)
treeef44a92cb132b9b277dcbbb5120b063213e674ae /plugins/MacVST/DitherMeDiskers
parentb25674789c87a1564af673faff8a7ee3dfcbcaf2 (diff)
downloadairwindows-lv2-port-2a6e1bef6b4bd039386aa24c988f5d69364ff874.tar.gz
airwindows-lv2-port-2a6e1bef6b4bd039386aa24c988f5d69364ff874.tar.bz2
airwindows-lv2-port-2a6e1bef6b4bd039386aa24c988f5d69364ff874.zip
TapeDelay (and DitherMeTimbers overs update)
Diffstat (limited to 'plugins/MacVST/DitherMeDiskers')
-rwxr-xr-xplugins/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj/christopherjohnson.pbxuser38
-rwxr-xr-xplugins/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj/christopherjohnson.perspectivev339
-rwxr-xr-xplugins/MacVST/DitherMeDiskers/source/DitherMeDiskersProc.cpp34
3 files changed, 89 insertions, 22 deletions
diff --git a/plugins/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj/christopherjohnson.pbxuser b/plugins/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj/christopherjohnson.pbxuser
index e1a58f0..79d6624 100755
--- a/plugins/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj/christopherjohnson.pbxuser
+++ b/plugins/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj/christopherjohnson.pbxuser
@@ -49,8 +49,12 @@
PBXFileDataSource_Warnings_ColumnID,
);
};
- PBXPerProjectTemplateStateSaveDate = 565702398;
- PBXWorkspaceStateSaveDate = 565702398;
+ PBXPerProjectTemplateStateSaveDate = 566520525;
+ PBXWorkspaceStateSaveDate = 566520525;
+ };
+ perUserProjectItems = {
+ 8BBB33E421C45DDB00825986 /* PBXTextBookmark */ = 8BBB33E421C45DDB00825986 /* PBXTextBookmark */;
+ 8BBB33F821C46ADB00825986 /* PBXTextBookmark */ = 8BBB33F821C46ADB00825986 /* PBXTextBookmark */;
};
sourceControlManager = 8B02375E1D42B1C400E1E8C8 /* Source Control */;
userBuildSettings = {
@@ -58,9 +62,9 @@
};
2407DEB6089929BA00EB68BF /* DitherMeDiskers.cpp */ = {
uiCtxt = {
- sepNavIntBoundsRect = "{{0, 0}, {848, 1131}}";
+ sepNavIntBoundsRect = "{{0, 0}, {649, 1209}}";
sepNavSelRange = "{2491, 0}";
- sepNavVisRange = "{1243, 1867}";
+ sepNavVisRange = "{2343, 150}";
sepNavWindowFrame = "{{12, 47}, {895, 831}}";
};
};
@@ -82,9 +86,9 @@
};
24D8286F09A914000093AEF8 /* DitherMeDiskersProc.cpp */ = {
uiCtxt = {
- sepNavIntBoundsRect = "{{0, 0}, {848, 1287}}";
- sepNavSelRange = "{2915, 0}";
- sepNavVisRange = "{1483, 1487}";
+ sepNavIntBoundsRect = "{{0, 0}, {848, 1729}}";
+ sepNavSelRange = "{3575, 0}";
+ sepNavVisRange = "{410, 1557}";
sepNavWindowFrame = "{{16, 47}, {895, 831}}";
};
};
@@ -102,6 +106,26 @@
isa = PBXCodeSenseManager;
indexTemplatePath = "";
};
+ 8BBB33E421C45DDB00825986 /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = 2407DEB6089929BA00EB68BF /* DitherMeDiskers.cpp */;
+ name = "DitherMeDiskers.cpp: 69";
+ rLen = 0;
+ rLoc = 2491;
+ rType = 0;
+ vrLen = 219;
+ vrLoc = 2274;
+ };
+ 8BBB33F821C46ADB00825986 /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = 2407DEB6089929BA00EB68BF /* DitherMeDiskers.cpp */;
+ name = "DitherMeDiskers.cpp: 69";
+ rLen = 0;
+ rLoc = 2491;
+ rType = 0;
+ vrLen = 150;
+ vrLoc = 2343;
+ };
8D01CCC60486CAD60068D4B7 /* DitherMeDiskers */ = {
activeExec = 0;
};
diff --git a/plugins/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj/christopherjohnson.perspectivev3 b/plugins/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj/christopherjohnson.perspectivev3
index 64daeaa..6f5eba5 100755
--- a/plugins/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj/christopherjohnson.perspectivev3
+++ b/plugins/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj/christopherjohnson.perspectivev3
@@ -323,7 +323,7 @@
<real>185</real>
</array>
<key>RubberWindowFrame</key>
- <string>40 323 810 487 0 0 1440 878 </string>
+ <string>320 286 810 487 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>PBXSmartGroupTreeModule</string>
@@ -339,7 +339,7 @@
<key>PBXProjectModuleGUID</key>
<string>8B0237581D42B1C400E1E8C8</string>
<key>PBXProjectModuleLabel</key>
- <string>Gain.h</string>
+ <string>DitherMeDiskers.cpp</string>
<key>PBXSplitModuleInNavigatorKey</key>
<dict>
<key>Split0</key>
@@ -347,7 +347,15 @@
<key>PBXProjectModuleGUID</key>
<string>8B0237591D42B1C400E1E8C8</string>
<key>PBXProjectModuleLabel</key>
- <string>Gain.h</string>
+ <string>DitherMeDiskers.cpp</string>
+ <key>_historyCapacity</key>
+ <integer>0</integer>
+ <key>bookmark</key>
+ <string>8BBB33F821C46ADB00825986</string>
+ <key>history</key>
+ <array>
+ <string>8BBB33E421C45DDB00825986</string>
+ </array>
</dict>
<key>SplitCount</key>
<string>1</string>
@@ -360,18 +368,18 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{0, 0}, {603, 0}}</string>
+ <string>{{0, 0}, {603, 117}}</string>
<key>RubberWindowFrame</key>
- <string>40 323 810 487 0 0 1440 878 </string>
+ <string>320 286 810 487 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
<key>Proportion</key>
- <string>0pt</string>
+ <string>117pt</string>
</dict>
<dict>
<key>Proportion</key>
- <string>441pt</string>
+ <string>324pt</string>
<key>Tabs</key>
<array>
<dict>
@@ -385,9 +393,9 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{10, 27}, {603, 414}}</string>
+ <string>{{10, 27}, {603, 297}}</string>
<key>RubberWindowFrame</key>
- <string>40 323 810 487 0 0 1440 878 </string>
+ <string>320 286 810 487 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>XCDetailModule</string>
@@ -469,11 +477,11 @@
</array>
<key>TableOfContents</key>
<array>
- <string>8BBB309821B7F0C400825986</string>
+ <string>8BBB33F921C46ADB00825986</string>
<string>1CA23ED40692098700951B8B</string>
- <string>8BBB309921B7F0C400825986</string>
+ <string>8BBB33FA21C46ADB00825986</string>
<string>8B0237581D42B1C400E1E8C8</string>
- <string>8BBB309A21B7F0C400825986</string>
+ <string>8BBB33FB21C46ADB00825986</string>
<string>1CA23EDF0692099D00951B8B</string>
<string>1CA23EE00692099D00951B8B</string>
<string>1CA23EE10692099D00951B8B</string>
@@ -626,7 +634,7 @@
<key>StatusbarIsVisible</key>
<true/>
<key>TimeStamp</key>
- <real>565702852.09320295</real>
+ <real>566520539.86159599</real>
<key>ToolbarConfigUserDefaultsMinorVersion</key>
<string>2</string>
<key>ToolbarDisplayMode</key>
@@ -643,10 +651,11 @@
<integer>5</integer>
<key>WindowOrderList</key>
<array>
- <string>/Users/christopherjohnson/Desktop/DitherMeDiskers/DitherMeDiskers.xcodeproj</string>
+ <string>8BBB33FC21C46ADB00825986</string>
+ <string>/Users/christopherjohnson/Desktop/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj</string>
</array>
<key>WindowString</key>
- <string>40 323 810 487 0 0 1440 878 </string>
+ <string>320 286 810 487 0 0 1440 878 </string>
<key>WindowToolsV3</key>
<array>
<dict>
diff --git a/plugins/MacVST/DitherMeDiskers/source/DitherMeDiskersProc.cpp b/plugins/MacVST/DitherMeDiskers/source/DitherMeDiskersProc.cpp
index 9f8a34e..746f713 100755
--- a/plugins/MacVST/DitherMeDiskers/source/DitherMeDiskersProc.cpp
+++ b/plugins/MacVST/DitherMeDiskers/source/DitherMeDiskersProc.cpp
@@ -42,6 +42,23 @@ void DitherMeDiskers::processReplacing(float **inputs, float **outputs, VstInt32
noiseShapingR += outputSampleR;
noiseShapingR -= lastSampleR;
+ if (outputSampleL > 32760.0) {
+ outputSampleL = 32760.0;
+ noiseShapingL *= 0.5;
+ }
+ if (outputSampleR > 32760.0) {
+ outputSampleR = 32760.0;
+ noiseShapingR *= 0.5;
+ }
+ if (outputSampleL < -32760.0) {
+ outputSampleL = -32760.0;
+ noiseShapingL *= 0.5;
+ }
+ if (outputSampleR < -32760.0) {
+ outputSampleR = -32760.0;
+ noiseShapingR *= 0.5;
+ }
+
*out1 = outputSampleL / 32768.0;
*out2 = outputSampleR / 32768.0;
@@ -87,6 +104,23 @@ void DitherMeDiskers::processDoubleReplacing(double **inputs, double **outputs,
noiseShapingR += outputSampleR;
noiseShapingR -= lastSampleR;
+ if (outputSampleL > 32760.0) {
+ outputSampleL = 32760.0;
+ noiseShapingL *= 0.5;
+ }
+ if (outputSampleR > 32760.0) {
+ outputSampleR = 32760.0;
+ noiseShapingR *= 0.5;
+ }
+ if (outputSampleL < -32760.0) {
+ outputSampleL = -32760.0;
+ noiseShapingL *= 0.5;
+ }
+ if (outputSampleR < -32760.0) {
+ outputSampleR = -32760.0;
+ noiseShapingR *= 0.5;
+ }
+
*out1 = outputSampleL / 32768.0;
*out2 = outputSampleR / 32768.0;