From 2384d83b0fe4f455722e47df9315885ba3c74011 Mon Sep 17 00:00:00 2001 From: Chris Johnson Date: Mon, 20 Aug 2018 08:48:56 -0400 Subject: BitGlitter (and DeRez update) --- .../DeRez.xcodeproj/christopherjohnson.pbxuser | 60 +++++++++++++--------- .../christopherjohnson.perspectivev3 | 39 +++++++------- plugins/MacVST/DeRez/source/DeRez.cpp | 4 +- plugins/MacVST/DeRez/source/DeRezProc.cpp | 8 +-- 4 files changed, 63 insertions(+), 48 deletions(-) (limited to 'plugins/MacVST/DeRez') diff --git a/plugins/MacVST/DeRez/DeRez.xcodeproj/christopherjohnson.pbxuser b/plugins/MacVST/DeRez/DeRez.xcodeproj/christopherjohnson.pbxuser index 6dc70f3..70ab1db 100755 --- a/plugins/MacVST/DeRez/DeRez.xcodeproj/christopherjohnson.pbxuser +++ b/plugins/MacVST/DeRez/DeRez.xcodeproj/christopherjohnson.pbxuser @@ -49,12 +49,13 @@ PBXFileDataSource_Warnings_ColumnID, ); }; - PBXPerProjectTemplateStateSaveDate = 547782122; - PBXWorkspaceStateSaveDate = 547782122; + PBXPerProjectTemplateStateSaveDate = 553892432; + PBXWorkspaceStateSaveDate = 553892432; }; perUserProjectItems = { - 8B7E3E4920A68C5D00482CB5 /* XCBuildMessageTextBookmark */ = 8B7E3E4920A68C5D00482CB5 /* XCBuildMessageTextBookmark */; - 8B7E3E4A20A68C5D00482CB5 /* PBXTextBookmark */ = 8B7E3E4A20A68C5D00482CB5 /* PBXTextBookmark */; + 8BB8B70521039BF400751000 /* PBXTextBookmark */ = 8BB8B70521039BF400751000 /* PBXTextBookmark */; + 8BB8B70721039BF400751000 /* PBXTextBookmark */ = 8BB8B70721039BF400751000 /* PBXTextBookmark */; + 8BB8B7932103BA6200751000 /* PBXTextBookmark */ = 8BB8B7932103BA6200751000 /* PBXTextBookmark */; }; sourceControlManager = 8B02375E1D42B1C400E1E8C8 /* Source Control */; userBuildSettings = { @@ -62,9 +63,9 @@ }; 2407DEB6089929BA00EB68BF /* DeRez.cpp */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {848, 1872}}"; - sepNavSelRange = "{572, 0}"; - sepNavVisRange = "{0, 1873}"; + sepNavIntBoundsRect = "{{0, 0}, {848, 1820}}"; + sepNavSelRange = "{3400, 0}"; + sepNavVisRange = "{2754, 2017}"; sepNavWindowFrame = "{{48, 47}, {895, 831}}"; }; }; @@ -78,17 +79,17 @@ }; 24A2FFDB0F90D1DD003BB5A7 /* audioeffectx.cpp */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {859, 20267}}"; + sepNavIntBoundsRect = "{{0, 0}, {838, 19864}}"; sepNavSelRange = "{10616, 0}"; - sepNavVisRange = "{9653, 2414}"; + sepNavVisRange = "{10459, 280}"; sepNavWindowFrame = "{{15, 42}, {895, 831}}"; }; }; 24D8286F09A914000093AEF8 /* DeRezProc.cpp */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {677, 4043}}"; - sepNavSelRange = "{2782, 0}"; - sepNavVisRange = "{2546, 425}"; + sepNavIntBoundsRect = "{{0, 0}, {848, 4160}}"; + sepNavSelRange = "{2818, 0}"; + sepNavVisRange = "{9279, 1345}"; sepNavWindowFrame = "{{17, 47}, {895, 831}}"; }; }; @@ -106,24 +107,35 @@ isa = PBXCodeSenseManager; indexTemplatePath = ""; }; - 8B7E3E4920A68C5D00482CB5 /* XCBuildMessageTextBookmark */ = { + 8BB8B70521039BF400751000 /* PBXTextBookmark */ = { isa = PBXTextBookmark; - comments = "Unused variable 'drySampleL'"; fRef = 24D8286F09A914000093AEF8 /* DeRezProc.cpp */; - fallbackIsa = XCBuildMessageTextBookmark; - rLen = 1; - rLoc = 70; - rType = 1; + name = "DeRezProc.cpp: 71"; + rLen = 0; + rLoc = 2818; + rType = 0; + vrLen = 286; + vrLoc = 2669; }; - 8B7E3E4A20A68C5D00482CB5 /* PBXTextBookmark */ = { + 8BB8B70721039BF400751000 /* PBXTextBookmark */ = { isa = PBXTextBookmark; - fRef = 24D8286F09A914000093AEF8 /* DeRezProc.cpp */; - name = "DeRezProc.cpp: 71"; + fRef = 24A2FFDB0F90D1DD003BB5A7 /* audioeffectx.cpp */; + name = "audioeffectx.cpp: 307"; + rLen = 0; + rLoc = 10616; + rType = 0; + vrLen = 280; + vrLoc = 10459; + }; + 8BB8B7932103BA6200751000 /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 24A2FFDB0F90D1DD003BB5A7 /* audioeffectx.cpp */; + name = "audioeffectx.cpp: 307"; rLen = 0; - rLoc = 2782; + rLoc = 10616; rType = 0; - vrLen = 425; - vrLoc = 2546; + vrLen = 280; + vrLoc = 10459; }; 8D01CCC60486CAD60068D4B7 /* DeRez */ = { activeExec = 0; diff --git a/plugins/MacVST/DeRez/DeRez.xcodeproj/christopherjohnson.perspectivev3 b/plugins/MacVST/DeRez/DeRez.xcodeproj/christopherjohnson.perspectivev3 index f8a2491..9e76dbc 100755 --- a/plugins/MacVST/DeRez/DeRez.xcodeproj/christopherjohnson.perspectivev3 +++ b/plugins/MacVST/DeRez/DeRez.xcodeproj/christopherjohnson.perspectivev3 @@ -256,6 +256,8 @@ Layout + BecomeActive + ContentConfiguration PBXBottomSmartGroupGIDs @@ -298,7 +300,7 @@ PBXSmartGroupTreeModuleOutlineStateSelectionKey - 7 + 5 4 0 @@ -337,7 +339,7 @@ PBXProjectModuleGUID 8B0237581D42B1C400E1E8C8 PBXProjectModuleLabel - DeRezProc.cpp + audioeffectx.cpp PBXSplitModuleInNavigatorKey Split0 @@ -345,14 +347,15 @@ PBXProjectModuleGUID 8B0237591D42B1C400E1E8C8 PBXProjectModuleLabel - DeRezProc.cpp + audioeffectx.cpp _historyCapacity 0 bookmark - 8B7E3E4A20A68C5D00482CB5 + 8BB8B7932103BA6200751000 history - 8B7E3E4920A68C5D00482CB5 + 8BB8B70521039BF400751000 + 8BB8B70721039BF400751000 SplitCount @@ -366,18 +369,18 @@ GeometryConfiguration Frame - {{0, 0}, {603, 132}} + {{0, 0}, {603, 102}} RubberWindowFrame 10 338 810 487 0 0 1440 878 Module PBXNavigatorGroup Proportion - 132pt + 102pt Proportion - 309pt + 339pt Tabs @@ -391,7 +394,9 @@ GeometryConfiguration Frame - {{10, 27}, {603, 414}} + {{10, 27}, {603, 312}} + RubberWindowFrame + 10 338 810 487 0 0 1440 878 Module XCDetailModule @@ -445,9 +450,7 @@ GeometryConfiguration Frame - {{10, 27}, {603, 282}} - RubberWindowFrame - 10 338 810 487 0 0 1440 878 + {{10, 27}, {603, 297}} Module PBXBuildResultsModule @@ -475,11 +478,11 @@ TableOfContents - 8B7E3E4B20A68C5D00482CB5 + 8BB8B7942103BA6200751000 1CA23ED40692098700951B8B - 8B7E3E4C20A68C5D00482CB5 + 8BB8B7952103BA6200751000 8B0237581D42B1C400E1E8C8 - 8B7E3E4D20A68C5D00482CB5 + 8BB8B7962103BA6200751000 1CA23EDF0692099D00951B8B 1CA23EE00692099D00951B8B 1CA23EE10692099D00951B8B @@ -632,7 +635,7 @@ StatusbarIsVisible TimeStamp - 547785821.33325303 + 553892450.74727702 ToolbarConfigUserDefaultsMinorVersion 2 ToolbarDisplayMode @@ -649,8 +652,8 @@ 5 WindowOrderList - 8B7E3E4E20A68C5D00482CB5 - /Users/christopherjohnson/Desktop/DeRez/DeRez.xcodeproj + 8BB8B7972103BA6200751000 + /Users/christopherjohnson/Desktop/MacVST/DeRez/DeRez.xcodeproj WindowString 10 338 810 487 0 0 1440 878 diff --git a/plugins/MacVST/DeRez/source/DeRez.cpp b/plugins/MacVST/DeRez/source/DeRez.cpp index 3bf36eb..404127a 100755 --- a/plugins/MacVST/DeRez/source/DeRez.cpp +++ b/plugins/MacVST/DeRez/source/DeRez.cpp @@ -99,8 +99,8 @@ float DeRez::getParameter(VstInt32 index) { void DeRez::getParameterName(VstInt32 index, char *text) { switch (index) { - case kParamA: vst_strncpy (text, "Freq", kVstMaxParamStrLen); break; - case kParamB: vst_strncpy (text, "Reso", kVstMaxParamStrLen); break; + case kParamA: vst_strncpy (text, "Rate", kVstMaxParamStrLen); break; + case kParamB: vst_strncpy (text, "Rez", kVstMaxParamStrLen); break; default: break; // unknown parameter, shouldn't happen! } //this is our labels for displaying in the VST host } diff --git a/plugins/MacVST/DeRez/source/DeRezProc.cpp b/plugins/MacVST/DeRez/source/DeRezProc.cpp index 0fed9b4..247a364 100755 --- a/plugins/MacVST/DeRez/source/DeRezProc.cpp +++ b/plugins/MacVST/DeRez/source/DeRezProc.cpp @@ -30,7 +30,7 @@ void DeRez::processReplacing(float **inputs, float **outputs, VstInt32 sampleFra { long double inputSampleL = *in1; long double inputSampleR = *in2; - if (inputSampleL<1.2e-38 && -inputSampleL<1.2e-38) { + if (inputSampleL<1.2e-38 && -inputSampleL<1.2e-38 && (targetB == 0)) { static int noisesource = 0; //this declares a variable before anything else is compiled. It won't keep assigning //it to 0 for every sample, it's as if the declaration doesn't exist in this context, @@ -49,7 +49,7 @@ void DeRez::processReplacing(float **inputs, float **outputs, VstInt32 sampleFra applyresidue *= 0.00000001; inputSampleL = applyresidue; } - if (inputSampleR<1.2e-38 && -inputSampleR<1.2e-38) { + if (inputSampleR<1.2e-38 && -inputSampleR<1.2e-38 && (targetB == 0)) { static int noisesource = 0; noisesource = noisesource % 1700021; noisesource++; int residue = noisesource * noisesource; @@ -186,7 +186,7 @@ void DeRez::processDoubleReplacing(double **inputs, double **outputs, VstInt32 s { long double inputSampleL = *in1; long double inputSampleR = *in2; - if (inputSampleL<1.2e-38 && -inputSampleL<1.2e-38) { + if (inputSampleL<1.2e-38 && -inputSampleL<1.2e-38 && (targetB == 0)) { static int noisesource = 0; //this declares a variable before anything else is compiled. It won't keep assigning //it to 0 for every sample, it's as if the declaration doesn't exist in this context, @@ -205,7 +205,7 @@ void DeRez::processDoubleReplacing(double **inputs, double **outputs, VstInt32 s applyresidue *= 0.00000001; inputSampleL = applyresidue; } - if (inputSampleR<1.2e-38 && -inputSampleR<1.2e-38) { + if (inputSampleR<1.2e-38 && -inputSampleR<1.2e-38 && (targetB == 0)) { static int noisesource = 0; noisesource = noisesource % 1700021; noisesource++; int residue = noisesource * noisesource; -- cgit v1.2.3