aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/MacVST/DitherMeTimbers
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/DitherMeTimbers
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/DitherMeTimbers')
-rwxr-xr-xplugins/MacVST/DitherMeTimbers/DitherMeTimbers.xcodeproj/christopherjohnson.pbxuser57
-rwxr-xr-xplugins/MacVST/DitherMeTimbers/DitherMeTimbers.xcodeproj/christopherjohnson.perspectivev329
-rwxr-xr-xplugins/MacVST/DitherMeTimbers/source/DitherMeTimbersProc.cpp36
3 files changed, 79 insertions, 43 deletions
diff --git a/plugins/MacVST/DitherMeTimbers/DitherMeTimbers.xcodeproj/christopherjohnson.pbxuser b/plugins/MacVST/DitherMeTimbers/DitherMeTimbers.xcodeproj/christopherjohnson.pbxuser
index 5e6d066..3192b34 100755
--- a/plugins/MacVST/DitherMeTimbers/DitherMeTimbers.xcodeproj/christopherjohnson.pbxuser
+++ b/plugins/MacVST/DitherMeTimbers/DitherMeTimbers.xcodeproj/christopherjohnson.pbxuser
@@ -49,15 +49,15 @@
PBXFileDataSource_Warnings_ColumnID,
);
};
- PBXPerProjectTemplateStateSaveDate = 565745920;
- PBXWorkspaceStateSaveDate = 565745920;
+ PBXPerProjectTemplateStateSaveDate = 566520842;
+ PBXWorkspaceStateSaveDate = 566520842;
};
perUserProjectItems = {
8B416DB721B6143700DD5013 /* PBXTextBookmark */ = 8B416DB721B6143700DD5013 /* PBXTextBookmark */;
8B416DB821B6143700DD5013 /* PBXBookmark */ = 8B416DB821B6143700DD5013 /* PBXBookmark */;
- 8BBB308B21B7F07D00825986 /* PBXTextBookmark */ = 8BBB308B21B7F07D00825986 /* PBXTextBookmark */;
8BBB310321B8993300825986 /* PBXTextBookmark */ = 8BBB310321B8993300825986 /* PBXTextBookmark */;
- 8BBB310421B8993300825986 /* PBXTextBookmark */ = 8BBB310421B8993300825986 /* PBXTextBookmark */;
+ 8BBB34C021C46EA800825986 /* PBXTextBookmark */ = 8BBB34C021C46EA800825986 /* PBXTextBookmark */;
+ 8BBB34C121C46EA800825986 /* PBXTextBookmark */ = 8BBB34C121C46EA800825986 /* PBXTextBookmark */;
};
sourceControlManager = 8B02375E1D42B1C400E1E8C8 /* Source Control */;
userBuildSettings = {
@@ -66,9 +66,9 @@
2407DEB6089929BA00EB68BF /* DitherMeTimbers.cpp */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {848, 1183}}";
- sepNavSelRange = "{493, 126}";
+ sepNavSelRange = "{537, 82}";
sepNavVisRange = "{1346, 1963}";
- sepNavWindowFrame = "{{909, 47}, {895, 831}}";
+ sepNavWindowFrame = "{{545, 47}, {895, 831}}";
};
};
245463B80991757100464AD3 /* DitherMeTimbers.h */ = {
@@ -89,10 +89,10 @@
};
24D8286F09A914000093AEF8 /* DitherMeTimbersProc.cpp */ = {
uiCtxt = {
- sepNavIntBoundsRect = "{{0, 0}, {803, 1313}}";
- sepNavSelRange = "{2842, 0}";
- sepNavVisRange = "{2777, 66}";
- sepNavWindowFrame = "{{545, 47}, {895, 831}}";
+ sepNavIntBoundsRect = "{{0, 0}, {554, 1768}}";
+ sepNavSelRange = "{3612, 0}";
+ sepNavVisRange = "{0, 0}";
+ sepNavWindowFrame = "{{556, 47}, {895, 831}}";
};
};
8B02375E1D42B1C400E1E8C8 /* Source Control */ = {
@@ -123,16 +123,6 @@
isa = PBXBookmark;
fRef = 245463B80991757100464AD3 /* DitherMeTimbers.h */;
};
- 8BBB308B21B7F07D00825986 /* PBXTextBookmark */ = {
- isa = PBXTextBookmark;
- fRef = 24D8286F09A914000093AEF8 /* DitherMeTimbersProc.cpp */;
- name = "DitherMeTimbersProc.cpp: 88";
- rLen = 0;
- rLoc = 2842;
- rType = 0;
- vrLen = 69;
- vrLoc = 2777;
- };
8BBB308D21B7F07D00825986 /* DitherMeTImbers.h */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.h;
@@ -140,9 +130,10 @@
path = /Users/christopherjohnson/Desktop/MacVST/DitherMeTimbers/source/DitherMeTImbers.h;
sourceTree = "<absolute>";
uiCtxt = {
- sepNavIntBoundsRect = "{{0, 0}, {554, 884}}";
- sepNavSelRange = "{2570, 0}";
- sepNavVisRange = "{2563, 7}";
+ sepNavIntBoundsRect = "{{0, 0}, {866, 819}}";
+ sepNavSelRange = "{2473, 86}";
+ sepNavVisRange = "{283, 2287}";
+ sepNavWindowFrame = "{{555, 47}, {895, 831}}";
};
};
8BBB310321B8993300825986 /* PBXTextBookmark */ = {
@@ -155,15 +146,25 @@
vrLen = 7;
vrLoc = 2563;
};
- 8BBB310421B8993300825986 /* PBXTextBookmark */ = {
+ 8BBB34C021C46EA800825986 /* PBXTextBookmark */ = {
+ isa = PBXTextBookmark;
+ fRef = 24D8286F09A914000093AEF8 /* DitherMeTimbersProc.cpp */;
+ name = "DitherMeTimbersProc.cpp: 122";
+ rLen = 0;
+ rLoc = 3612;
+ rType = 0;
+ vrLen = 0;
+ vrLoc = 0;
+ };
+ 8BBB34C121C46EA800825986 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 24D8286F09A914000093AEF8 /* DitherMeTimbersProc.cpp */;
- name = "DitherMeTimbersProc.cpp: 88";
+ name = "DitherMeTimbersProc.cpp: 122";
rLen = 0;
- rLoc = 2842;
+ rLoc = 3612;
rType = 0;
- vrLen = 66;
- vrLoc = 2777;
+ vrLen = 0;
+ vrLoc = 0;
};
8D01CCC60486CAD60068D4B7 /* DitherMeTimbers */ = {
activeExec = 0;
diff --git a/plugins/MacVST/DitherMeTimbers/DitherMeTimbers.xcodeproj/christopherjohnson.perspectivev3 b/plugins/MacVST/DitherMeTimbers/DitherMeTimbers.xcodeproj/christopherjohnson.perspectivev3
index 8313f69..e3b2aee 100755
--- a/plugins/MacVST/DitherMeTimbers/DitherMeTimbers.xcodeproj/christopherjohnson.perspectivev3
+++ b/plugins/MacVST/DitherMeTimbers/DitherMeTimbers.xcodeproj/christopherjohnson.perspectivev3
@@ -323,7 +323,7 @@
<real>185</real>
</array>
<key>RubberWindowFrame</key>
- <string>609 346 810 487 0 0 1440 878 </string>
+ <string>613 141 810 487 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>PBXSmartGroupTreeModule</string>
@@ -351,13 +351,13 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
- <string>8BBB310421B8993300825986</string>
+ <string>8BBB34C121C46EA800825986</string>
<key>history</key>
<array>
<string>8B416DB721B6143700DD5013</string>
<string>8B416DB821B6143700DD5013</string>
<string>8BBB310321B8993300825986</string>
- <string>8BBB308B21B7F07D00825986</string>
+ <string>8BBB34C021C46EA800825986</string>
</array>
</dict>
<key>SplitCount</key>
@@ -371,18 +371,18 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{0, 0}, {603, 51}}</string>
+ <string>{{0, 0}, {603, 13}}</string>
<key>RubberWindowFrame</key>
- <string>609 346 810 487 0 0 1440 878 </string>
+ <string>613 141 810 487 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
<key>Proportion</key>
- <string>51pt</string>
+ <string>13pt</string>
</dict>
<dict>
<key>Proportion</key>
- <string>390pt</string>
+ <string>428pt</string>
<key>Tabs</key>
<array>
<dict>
@@ -396,9 +396,9 @@
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
- <string>{{10, 27}, {603, 363}}</string>
+ <string>{{10, 27}, {603, 401}}</string>
<key>RubberWindowFrame</key>
- <string>609 346 810 487 0 0 1440 878 </string>
+ <string>613 141 810 487 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>XCDetailModule</string>
@@ -480,11 +480,11 @@
</array>
<key>TableOfContents</key>
<array>
- <string>8BBB310521B8993300825986</string>
+ <string>8BBB34C221C46EA800825986</string>
<string>1CA23ED40692098700951B8B</string>
- <string>8BBB310621B8993300825986</string>
+ <string>8BBB34C321C46EA800825986</string>
<string>8B0237581D42B1C400E1E8C8</string>
- <string>8BBB310721B8993300825986</string>
+ <string>8BBB34C421C46EA800825986</string>
<string>1CA23EDF0692099D00951B8B</string>
<string>1CA23EE00692099D00951B8B</string>
<string>1CA23EE10692099D00951B8B</string>
@@ -637,7 +637,7 @@
<key>StatusbarIsVisible</key>
<true/>
<key>TimeStamp</key>
- <real>565745971.046826</real>
+ <real>566521512.17248595</real>
<key>ToolbarConfigUserDefaultsMinorVersion</key>
<string>2</string>
<key>ToolbarDisplayMode</key>
@@ -654,10 +654,11 @@
<integer>5</integer>
<key>WindowOrderList</key>
<array>
+ <string>8BBB34C521C46EA800825986</string>
<string>/Users/christopherjohnson/Desktop/MacVST/DitherMeTimbers/DitherMeTimbers.xcodeproj</string>
</array>
<key>WindowString</key>
- <string>609 346 810 487 0 0 1440 878 </string>
+ <string>613 141 810 487 0 0 1440 878 </string>
<key>WindowToolsV3</key>
<array>
<dict>
diff --git a/plugins/MacVST/DitherMeTimbers/source/DitherMeTimbersProc.cpp b/plugins/MacVST/DitherMeTimbers/source/DitherMeTimbersProc.cpp
index 7ba84d7..4641d8b 100755
--- a/plugins/MacVST/DitherMeTimbers/source/DitherMeTimbersProc.cpp
+++ b/plugins/MacVST/DitherMeTimbers/source/DitherMeTimbersProc.cpp
@@ -41,7 +41,24 @@ void DitherMeTimbers::processReplacing(float **inputs, float **outputs, VstInt32
noiseShapingR += outputSampleR;
noiseShapingR -= lastSampleR;
-
+
+ if (outputSampleL > 8388600.0) {
+ outputSampleL = 8388600.0;
+ noiseShapingL *= 0.5;
+ }
+ if (outputSampleR > 8388600.0) {
+ outputSampleR = 8388600.0;
+ noiseShapingR *= 0.5;
+ }
+ if (outputSampleL < -8388600.0) {
+ outputSampleL = -8388600.0;
+ noiseShapingL *= 0.5;
+ }
+ if (outputSampleR < -8388600.0) {
+ outputSampleR = -8388600.0;
+ noiseShapingR *= 0.5;
+ }
+
*out1 = outputSampleL / 8388608.0;
*out2 = outputSampleR / 8388608.0;
@@ -87,6 +104,23 @@ void DitherMeTimbers::processDoubleReplacing(double **inputs, double **outputs,
noiseShapingR += outputSampleR;
noiseShapingR -= lastSampleR;
+ if (outputSampleL > 8388600.0) {
+ outputSampleL = 8388600.0;
+ noiseShapingL *= 0.5;
+ }
+ if (outputSampleR > 8388600.0) {
+ outputSampleR = 8388600.0;
+ noiseShapingR *= 0.5;
+ }
+ if (outputSampleL < -8388600.0) {
+ outputSampleL = -8388600.0;
+ noiseShapingL *= 0.5;
+ }
+ if (outputSampleR < -8388600.0) {
+ outputSampleR = -8388600.0;
+ noiseShapingR *= 0.5;
+ }
+
*out1 = outputSampleL / 8388608.0;
*out2 = outputSampleR / 8388608.0;