From 2a6e1bef6b4bd039386aa24c988f5d69364ff874 Mon Sep 17 00:00:00 2001 From: Chris Johnson Date: Sun, 16 Dec 2018 13:54:56 -0500 Subject: TapeDelay (and DitherMeTimbers overs update) --- .../christopherjohnson.pbxuser | 38 +++++++++++++++++---- .../christopherjohnson.perspectivev3 | 39 +++++++++++++--------- .../DitherMeDiskers/source/DitherMeDiskersProc.cpp | 34 +++++++++++++++++++ 3 files changed, 89 insertions(+), 22 deletions(-) (limited to 'plugins/MacVST/DitherMeDiskers') 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 @@ 185 RubberWindowFrame - 40 323 810 487 0 0 1440 878 + 320 286 810 487 0 0 1440 878 Module PBXSmartGroupTreeModule @@ -339,7 +339,7 @@ PBXProjectModuleGUID 8B0237581D42B1C400E1E8C8 PBXProjectModuleLabel - Gain.h + DitherMeDiskers.cpp PBXSplitModuleInNavigatorKey Split0 @@ -347,7 +347,15 @@ PBXProjectModuleGUID 8B0237591D42B1C400E1E8C8 PBXProjectModuleLabel - Gain.h + DitherMeDiskers.cpp + _historyCapacity + 0 + bookmark + 8BBB33F821C46ADB00825986 + history + + 8BBB33E421C45DDB00825986 + SplitCount 1 @@ -360,18 +368,18 @@ GeometryConfiguration Frame - {{0, 0}, {603, 0}} + {{0, 0}, {603, 117}} RubberWindowFrame - 40 323 810 487 0 0 1440 878 + 320 286 810 487 0 0 1440 878 Module PBXNavigatorGroup Proportion - 0pt + 117pt Proportion - 441pt + 324pt Tabs @@ -385,9 +393,9 @@ GeometryConfiguration Frame - {{10, 27}, {603, 414}} + {{10, 27}, {603, 297}} RubberWindowFrame - 40 323 810 487 0 0 1440 878 + 320 286 810 487 0 0 1440 878 Module XCDetailModule @@ -469,11 +477,11 @@ TableOfContents - 8BBB309821B7F0C400825986 + 8BBB33F921C46ADB00825986 1CA23ED40692098700951B8B - 8BBB309921B7F0C400825986 + 8BBB33FA21C46ADB00825986 8B0237581D42B1C400E1E8C8 - 8BBB309A21B7F0C400825986 + 8BBB33FB21C46ADB00825986 1CA23EDF0692099D00951B8B 1CA23EE00692099D00951B8B 1CA23EE10692099D00951B8B @@ -626,7 +634,7 @@ StatusbarIsVisible TimeStamp - 565702852.09320295 + 566520539.86159599 ToolbarConfigUserDefaultsMinorVersion 2 ToolbarDisplayMode @@ -643,10 +651,11 @@ 5 WindowOrderList - /Users/christopherjohnson/Desktop/DitherMeDiskers/DitherMeDiskers.xcodeproj + 8BBB33FC21C46ADB00825986 + /Users/christopherjohnson/Desktop/MacVST/DitherMeDiskers/DitherMeDiskers.xcodeproj WindowString - 40 323 810 487 0 0 1440 878 + 320 286 810 487 0 0 1440 878 WindowToolsV3 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; -- cgit v1.2.3