diff options
author | Chris Johnson <jinx6568@sover.net> | 2019-07-22 13:30:57 -0400 |
---|---|---|
committer | Chris Johnson <jinx6568@sover.net> | 2019-07-22 13:30:57 -0400 |
commit | 6dd021a943e73f08ae71644e8f6d7a788cd4a61c (patch) | |
tree | 41b510c58ee08d64671d5208c7c55c9dcc7b6a36 | |
parent | bde8acec545feee9142906bd4744e84522c56fbd (diff) | |
download | airwindows-lv2-port-6dd021a943e73f08ae71644e8f6d7a788cd4a61c.tar.gz airwindows-lv2-port-6dd021a943e73f08ae71644e8f6d7a788cd4a61c.tar.bz2 airwindows-lv2-port-6dd021a943e73f08ae71644e8f6d7a788cd4a61c.zip |
Bugfix for Mojo!
Added dB markings to things and fixed a gain issue on all the VST versions
-rwxr-xr-x | plugins/LinuxVST/src/Mojo/Mojo.cpp | 2 | ||||
-rwxr-xr-x | plugins/LinuxVST/src/Mojo/MojoProc.cpp | 4 | ||||
-rwxr-xr-x | plugins/MacAU/Mojo/Mojo.cpp | 2 | ||||
-rwxr-xr-x | plugins/MacAU/Mojo/Mojo.xcodeproj/christopherjohnson.pbxuser | 48 | ||||
-rwxr-xr-x | plugins/MacAU/Mojo/Mojo.xcodeproj/christopherjohnson.perspectivev3 | 79 | ||||
-rwxr-xr-x | plugins/MacVST/Mojo/Mojo.xcodeproj/christopherjohnson.pbxuser | 55 | ||||
-rwxr-xr-x | plugins/MacVST/Mojo/Mojo.xcodeproj/christopherjohnson.perspectivev3 | 48 | ||||
-rwxr-xr-x | plugins/MacVST/Mojo/Mojo.xcodeproj/project.pbxproj | 4 | ||||
-rwxr-xr-x | plugins/MacVST/Mojo/source/Mojo.cpp | 2 | ||||
-rwxr-xr-x | plugins/MacVST/Mojo/source/MojoProc.cpp | 4 | ||||
-rwxr-xr-x | plugins/WinVST/Mojo/Mojo.cpp | 2 | ||||
-rwxr-xr-x | plugins/WinVST/Mojo/MojoProc.cpp | 4 |
12 files changed, 176 insertions, 78 deletions
diff --git a/plugins/LinuxVST/src/Mojo/Mojo.cpp b/plugins/LinuxVST/src/Mojo/Mojo.cpp index bef296a..7b34fba 100755 --- a/plugins/LinuxVST/src/Mojo/Mojo.cpp +++ b/plugins/LinuxVST/src/Mojo/Mojo.cpp @@ -95,7 +95,7 @@ void Mojo::getParameterDisplay(VstInt32 index, char *text) { void Mojo::getParameterLabel(VstInt32 index, char *text) { switch (index) { - case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break; + case kParamA: vst_strncpy (text, "dB", kVstMaxParamStrLen); break; default: break; // unknown parameter, shouldn't happen! } } diff --git a/plugins/LinuxVST/src/Mojo/MojoProc.cpp b/plugins/LinuxVST/src/Mojo/MojoProc.cpp index 303de25..60f986d 100755 --- a/plugins/LinuxVST/src/Mojo/MojoProc.cpp +++ b/plugins/LinuxVST/src/Mojo/MojoProc.cpp @@ -14,7 +14,7 @@ void Mojo::processReplacing(float **inputs, float **outputs, VstInt32 sampleFram float* out1 = outputs[0]; float* out2 = outputs[1]; - double gain = (A*24.0)-12.0; + double gain = pow(10.0,((A*24.0)-12.0)/20.0); while (--sampleFrames >= 0) { @@ -61,7 +61,7 @@ void Mojo::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sa double* out1 = outputs[0]; double* out2 = outputs[1]; - double gain = (A*24.0)-12.0; + double gain = pow(10.0,((A*24.0)-12.0)/20.0); while (--sampleFrames >= 0) { diff --git a/plugins/MacAU/Mojo/Mojo.cpp b/plugins/MacAU/Mojo/Mojo.cpp index 11e9044..19d9db2 100755 --- a/plugins/MacAU/Mojo/Mojo.cpp +++ b/plugins/MacAU/Mojo/Mojo.cpp @@ -98,7 +98,7 @@ ComponentResult Mojo::GetParameterInfo(AudioUnitScope inScope, { case kParam_One: AUBase::FillInParameterName (outParameterInfo, kParameterOneName, false); - outParameterInfo.unit = kAudioUnitParameterUnit_Generic; + outParameterInfo.unit = kAudioUnitParameterUnit_Decibels; outParameterInfo.minValue = -12.0; outParameterInfo.maxValue = 12.0; outParameterInfo.defaultValue = kDefaultValue_ParamOne; diff --git a/plugins/MacAU/Mojo/Mojo.xcodeproj/christopherjohnson.pbxuser b/plugins/MacAU/Mojo/Mojo.xcodeproj/christopherjohnson.pbxuser index 2676c54..9eb4a63 100755 --- a/plugins/MacAU/Mojo/Mojo.xcodeproj/christopherjohnson.pbxuser +++ b/plugins/MacAU/Mojo/Mojo.xcodeproj/christopherjohnson.pbxuser @@ -49,37 +49,53 @@ PBXFileDataSource_Warnings_ColumnID, ); }; - PBXPerProjectTemplateStateSaveDate = 584930184; - PBXWorkspaceStateSaveDate = 584930184; + PBXPerProjectTemplateStateSaveDate = 585505543; + PBXWorkspaceStateSaveDate = 585505543; }; perUserProjectItems = { - 8B52129922DD6151009B824C /* PBXTextBookmark */ = 8B52129922DD6151009B824C /* PBXTextBookmark */; - 8B52129A22DD6151009B824C /* PBXTextBookmark */ = 8B52129A22DD6151009B824C /* PBXTextBookmark */; + 8B52136522E61B30009B824C /* PBXBookmark */ = 8B52136522E61B30009B824C /* PBXBookmark */; + 8B52137222E61CAE009B824C /* PBXTextBookmark */ = 8B52137222E61CAE009B824C /* PBXTextBookmark */; + 8B52137922E61CEC009B824C /* PBXTextBookmark */ = 8B52137922E61CEC009B824C /* PBXTextBookmark */; + 8B52137F22E61CEC009B824C /* PBXTextBookmark */ = 8B52137F22E61CEC009B824C /* PBXTextBookmark */; 8B54218D22DD27A60048806E /* PlistBookmark */ = 8B54218D22DD27A60048806E /* PlistBookmark */; }; sourceControlManager = 8BD3CCB8148830B20062E48C /* Source Control */; userBuildSettings = { }; }; - 8B52129922DD6151009B824C /* PBXTextBookmark */ = { + 8B52136522E61B30009B824C /* PBXBookmark */ = { + isa = PBXBookmark; + fRef = 8BA05A660720730100365D66 /* Mojo.cpp */; + }; + 8B52137222E61CAE009B824C /* PBXTextBookmark */ = { isa = PBXTextBookmark; fRef = 8BA05A660720730100365D66 /* Mojo.cpp */; name = "Mojo.cpp: 188"; rLen = 0; - rLoc = 8223; + rLoc = 8224; rType = 0; - vrLen = 586; - vrLoc = 7984; + vrLen = 545; + vrLoc = 8029; }; - 8B52129A22DD6151009B824C /* PBXTextBookmark */ = { + 8B52137922E61CEC009B824C /* PBXTextBookmark */ = { isa = PBXTextBookmark; fRef = 8BA05A660720730100365D66 /* Mojo.cpp */; name = "Mojo.cpp: 188"; rLen = 0; - rLoc = 8223; + rLoc = 8224; + rType = 0; + vrLen = 545; + vrLoc = 8029; + }; + 8B52137F22E61CEC009B824C /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 8BA05A660720730100365D66 /* Mojo.cpp */; + name = "Mojo.cpp: 101"; + rLen = 0; + rLoc = 4811; rType = 0; - vrLen = 586; - vrLoc = 7984; + vrLen = 1923; + vrLoc = 3297; }; 8B54218D22DD27A60048806E /* PlistBookmark */ = { isa = PlistBookmark; @@ -95,10 +111,10 @@ }; 8BA05A660720730100365D66 /* Mojo.cpp */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {698, 2717}}"; - sepNavSelRange = "{8223, 0}"; - sepNavVisRange = "{7984, 586}"; - sepNavWindowFrame = "{{661, 58}, {979, 820}}"; + sepNavIntBoundsRect = "{{0, 0}, {698, 2691}}"; + sepNavSelRange = "{8224, 0}"; + sepNavVisRange = "{8029, 545}"; + sepNavWindowFrame = "{{11, 58}, {979, 820}}"; }; }; 8BA05A690720730100365D66 /* MojoVersion.h */ = { diff --git a/plugins/MacAU/Mojo/Mojo.xcodeproj/christopherjohnson.perspectivev3 b/plugins/MacAU/Mojo/Mojo.xcodeproj/christopherjohnson.perspectivev3 index 57bcd3f..96ca876 100755 --- a/plugins/MacAU/Mojo/Mojo.xcodeproj/christopherjohnson.perspectivev3 +++ b/plugins/MacAU/Mojo/Mojo.xcodeproj/christopherjohnson.perspectivev3 @@ -222,7 +222,48 @@ </dict> </array> <key>OpenEditors</key> - <array/> + <array> + <dict> + <key>Content</key> + <dict> + <key>PBXProjectModuleGUID</key> + <string>8B52137D22E61CEC009B824C</string> + <key>PBXProjectModuleLabel</key> + <string>Mojo.cpp</string> + <key>PBXSplitModuleInNavigatorKey</key> + <dict> + <key>Split0</key> + <dict> + <key>PBXProjectModuleGUID</key> + <string>8B52137E22E61CEC009B824C</string> + <key>PBXProjectModuleLabel</key> + <string>Mojo.cpp</string> + <key>_historyCapacity</key> + <integer>0</integer> + <key>bookmark</key> + <string>8B52137F22E61CEC009B824C</string> + <key>history</key> + <array> + <string>8B52136522E61B30009B824C</string> + </array> + </dict> + <key>SplitCount</key> + <string>1</string> + </dict> + <key>StatusBarVisibility</key> + <true/> + </dict> + <key>Geometry</key> + <dict> + <key>Frame</key> + <string>{{0, 20}, {979, 723}}</string> + <key>PBXModuleWindowStatusBarHidden2</key> + <false/> + <key>RubberWindowFrame</key> + <string>11 114 979 764 0 0 1440 878 </string> + </dict> + </dict> + </array> <key>PerspectiveWidths</key> <array> <integer>841</integer> @@ -256,8 +297,6 @@ <key>Layout</key> <array> <dict> - <key>BecomeActive</key> - <true/> <key>ContentConfiguration</key> <dict> <key>PBXBottomSmartGroupGIDs</key> @@ -326,7 +365,7 @@ <real>288</real> </array> <key>RubberWindowFrame</key> - <string>589 224 841 654 0 0 1440 878 </string> + <string>65 212 841 654 0 0 1440 878 </string> </dict> <key>Module</key> <string>PBXSmartGroupTreeModule</string> @@ -354,11 +393,11 @@ <key>_historyCapacity</key> <integer>0</integer> <key>bookmark</key> - <string>8B52129A22DD6151009B824C</string> + <string>8B52137922E61CEC009B824C</string> <key>history</key> <array> <string>8B54218D22DD27A60048806E</string> - <string>8B52129922DD6151009B824C</string> + <string>8B52137222E61CAE009B824C</string> </array> </dict> <key>SplitCount</key> @@ -372,18 +411,18 @@ <key>GeometryConfiguration</key> <dict> <key>Frame</key> - <string>{{0, 0}, {531, 216}}</string> + <string>{{0, 0}, {531, 202}}</string> <key>RubberWindowFrame</key> - <string>589 224 841 654 0 0 1440 878 </string> + <string>65 212 841 654 0 0 1440 878 </string> </dict> <key>Module</key> <string>PBXNavigatorGroup</string> <key>Proportion</key> - <string>216pt</string> + <string>202pt</string> </dict> <dict> <key>Proportion</key> - <string>392pt</string> + <string>406pt</string> <key>Tabs</key> <array> <dict> @@ -397,9 +436,7 @@ <key>GeometryConfiguration</key> <dict> <key>Frame</key> - <string>{{10, 27}, {531, 365}}</string> - <key>RubberWindowFrame</key> - <string>589 224 841 654 0 0 1440 878 </string> + <string>{{10, 27}, {531, 379}}</string> </dict> <key>Module</key> <string>XCDetailModule</string> @@ -453,7 +490,9 @@ <key>GeometryConfiguration</key> <dict> <key>Frame</key> - <string>{{10, 27}, {531, 339}}</string> + <string>{{10, 27}, {531, 379}}</string> + <key>RubberWindowFrame</key> + <string>65 212 841 654 0 0 1440 878 </string> </dict> <key>Module</key> <string>PBXBuildResultsModule</string> @@ -481,11 +520,11 @@ </array> <key>TableOfContents</key> <array> - <string>8B52129B22DD6151009B824C</string> + <string>8B52137A22E61CEC009B824C</string> <string>1CA23ED40692098700951B8B</string> - <string>8B52129C22DD6151009B824C</string> + <string>8B52137B22E61CEC009B824C</string> <string>8BD7274A1D46E5A5000176F0</string> - <string>8B52129D22DD6151009B824C</string> + <string>8B52137C22E61CEC009B824C</string> <string>1CA23EDF0692099D00951B8B</string> <string>1CA23EE00692099D00951B8B</string> <string>1CA23EE10692099D00951B8B</string> @@ -658,7 +697,7 @@ <key>StatusbarIsVisible</key> <true/> <key>TimeStamp</key> - <real>584933713.32986498</real> + <real>585506028.90447104</real> <key>ToolbarConfigUserDefaultsMinorVersion</key> <string>2</string> <key>ToolbarDisplayMode</key> @@ -675,11 +714,11 @@ <integer>5</integer> <key>WindowOrderList</key> <array> - <string>8B52129E22DD6151009B824C</string> + <string>8B52137D22E61CEC009B824C</string> <string>/Users/christopherjohnson/Desktop/Plugins/MacAU/Mojo/Mojo.xcodeproj</string> </array> <key>WindowString</key> - <string>589 224 841 654 0 0 1440 878 </string> + <string>65 212 841 654 0 0 1440 878 </string> <key>WindowToolsV3</key> <array> <dict> diff --git a/plugins/MacVST/Mojo/Mojo.xcodeproj/christopherjohnson.pbxuser b/plugins/MacVST/Mojo/Mojo.xcodeproj/christopherjohnson.pbxuser index 1ffe808..daa329e 100755 --- a/plugins/MacVST/Mojo/Mojo.xcodeproj/christopherjohnson.pbxuser +++ b/plugins/MacVST/Mojo/Mojo.xcodeproj/christopherjohnson.pbxuser @@ -10,7 +10,7 @@ PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; PBXFileTableDataSourceColumnWidthsKey = ( 20, - 364, + 399, 20, 48, 43, @@ -49,8 +49,13 @@ PBXFileDataSource_Warnings_ColumnID, ); }; - PBXPerProjectTemplateStateSaveDate = 584928054; - PBXWorkspaceStateSaveDate = 584928054; + PBXPerProjectTemplateStateSaveDate = 585506370; + PBXWorkspaceStateSaveDate = 585506370; + }; + perUserProjectItems = { + 8B52134922E619E3009B824C /* PBXTextBookmark */ = 8B52134922E619E3009B824C /* PBXTextBookmark */; + 8B52134A22E619E3009B824C /* PBXTextBookmark */ = 8B52134A22E619E3009B824C /* PBXTextBookmark */; + 8B5213D022E61F6F009B824C /* PBXTextBookmark */ = 8B5213D022E61F6F009B824C /* PBXTextBookmark */; }; sourceControlManager = 8B02375E1D42B1C400E1E8C8 /* Source Control */; userBuildSettings = { @@ -59,8 +64,8 @@ 2407DEB6089929BA00EB68BF /* Mojo.cpp */ = { uiCtxt = { sepNavIntBoundsRect = "{{0, 0}, {848, 1547}}"; - sepNavSelRange = "{3234, 0}"; - sepNavVisRange = "{2331, 1844}"; + sepNavSelRange = "{3540, 0}"; + sepNavVisRange = "{2378, 1799}"; sepNavWindowFrame = "{{12, 57}, {895, 821}}"; }; }; @@ -74,17 +79,17 @@ }; 24A2FFDB0F90D1DD003BB5A7 /* audioeffectx.cpp */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {859, 20267}}"; + sepNavIntBoundsRect = "{{0, 0}, {838, 19877}}"; sepNavSelRange = "{10616, 0}"; - sepNavVisRange = "{9653, 2414}"; + sepNavVisRange = "{10459, 280}"; sepNavWindowFrame = "{{15, 42}, {895, 831}}"; }; }; 24D8286F09A914000093AEF8 /* MojoProc.cpp */ = { uiCtxt = { - sepNavIntBoundsRect = "{{0, 0}, {848, 1339}}"; - sepNavSelRange = "{691, 514}"; - sepNavVisRange = "{207, 1780}"; + sepNavIntBoundsRect = "{{0, 0}, {712, 1287}}"; + sepNavSelRange = "{708, 514}"; + sepNavVisRange = "{0, 780}"; sepNavWindowFrame = "{{31, 57}, {895, 821}}"; }; }; @@ -102,6 +107,36 @@ isa = PBXCodeSenseManager; indexTemplatePath = ""; }; + 8B52134922E619E3009B824C /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 24A2FFDB0F90D1DD003BB5A7 /* audioeffectx.cpp */; + name = "audioeffectx.cpp: 307"; + rLen = 0; + rLoc = 10616; + rType = 0; + vrLen = 280; + vrLoc = 10459; + }; + 8B52134A22E619E3009B824C /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 24D8286F09A914000093AEF8 /* MojoProc.cpp */; + name = "MojoProc.cpp: 25"; + rLen = 514; + rLoc = 708; + rType = 0; + vrLen = 780; + vrLoc = 0; + }; + 8B5213D022E61F6F009B824C /* PBXTextBookmark */ = { + isa = PBXTextBookmark; + fRef = 24D8286F09A914000093AEF8 /* MojoProc.cpp */; + name = "MojoProc.cpp: 25"; + rLen = 514; + rLoc = 708; + rType = 0; + vrLen = 780; + vrLoc = 0; + }; 8D01CCC60486CAD60068D4B7 /* Mojo */ = { activeExec = 0; }; diff --git a/plugins/MacVST/Mojo/Mojo.xcodeproj/christopherjohnson.perspectivev3 b/plugins/MacVST/Mojo/Mojo.xcodeproj/christopherjohnson.perspectivev3 index ad52532..92c74c3 100755 --- a/plugins/MacVST/Mojo/Mojo.xcodeproj/christopherjohnson.perspectivev3 +++ b/plugins/MacVST/Mojo/Mojo.xcodeproj/christopherjohnson.perspectivev3 @@ -300,13 +300,13 @@ <key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key> <array> <array> - <integer>6</integer> + <integer>5</integer> <integer>4</integer> <integer>0</integer> </array> </array> <key>PBXSmartGroupTreeModuleOutlineStateVisibleRectKey</key> - <string>{{0, 0}, {185, 428}}</string> + <string>{{0, 0}, {185, 707}}</string> </dict> <key>PBXTopSmartGroupGIDs</key> <array/> @@ -316,14 +316,14 @@ <key>GeometryConfiguration</key> <dict> <key>Frame</key> - <string>{{0, 0}, {202, 446}}</string> + <string>{{0, 0}, {202, 725}}</string> <key>GroupTreeTableConfiguration</key> <array> <string>MainColumn</string> <real>185</real> </array> <key>RubberWindowFrame</key> - <string>33 386 810 487 0 0 1440 878 </string> + <string>33 107 845 766 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>MojoProc.cpp</string> <key>PBXSplitModuleInNavigatorKey</key> <dict> <key>Split0</key> @@ -347,7 +347,16 @@ <key>PBXProjectModuleGUID</key> <string>8B0237591D42B1C400E1E8C8</string> <key>PBXProjectModuleLabel</key> - <string>Gain.h</string> + <string>MojoProc.cpp</string> + <key>_historyCapacity</key> + <integer>0</integer> + <key>bookmark</key> + <string>8B5213D022E61F6F009B824C</string> + <key>history</key> + <array> + <string>8B52134922E619E3009B824C</string> + <string>8B52134A22E619E3009B824C</string> + </array> </dict> <key>SplitCount</key> <string>1</string> @@ -360,18 +369,18 @@ <key>GeometryConfiguration</key> <dict> <key>Frame</key> - <string>{{0, 0}, {603, 0}}</string> + <string>{{0, 0}, {638, 387}}</string> <key>RubberWindowFrame</key> - <string>33 386 810 487 0 0 1440 878 </string> + <string>33 107 845 766 0 0 1440 878 </string> </dict> <key>Module</key> <string>PBXNavigatorGroup</string> <key>Proportion</key> - <string>0pt</string> + <string>387pt</string> </dict> <dict> <key>Proportion</key> - <string>441pt</string> + <string>333pt</string> <key>Tabs</key> <array> <dict> @@ -385,9 +394,9 @@ <key>GeometryConfiguration</key> <dict> <key>Frame</key> - <string>{{10, 27}, {603, 414}}</string> + <string>{{10, 27}, {638, 306}}</string> <key>RubberWindowFrame</key> - <string>33 386 810 487 0 0 1440 878 </string> + <string>33 107 845 766 0 0 1440 878 </string> </dict> <key>Module</key> <string>XCDetailModule</string> @@ -450,7 +459,7 @@ </dict> </array> <key>Proportion</key> - <string>603pt</string> + <string>638pt</string> </dict> </array> <key>Name</key> @@ -469,11 +478,11 @@ </array> <key>TableOfContents</key> <array> - <string>8B52126222DD4B37009B824C</string> + <string>8B5213D122E61F6F009B824C</string> <string>1CA23ED40692098700951B8B</string> - <string>8B52126322DD4B37009B824C</string> + <string>8B5213D222E61F6F009B824C</string> <string>8B0237581D42B1C400E1E8C8</string> - <string>8B52126422DD4B37009B824C</string> + <string>8B5213D322E61F6F009B824C</string> <string>1CA23EDF0692099D00951B8B</string> <string>1CA23EE00692099D00951B8B</string> <string>1CA23EE10692099D00951B8B</string> @@ -626,7 +635,7 @@ <key>StatusbarIsVisible</key> <true/> <key>TimeStamp</key> - <real>584934173.92230296</real> + <real>585506671.40982199</real> <key>ToolbarConfigUserDefaultsMinorVersion</key> <string>2</string> <key>ToolbarDisplayMode</key> @@ -643,11 +652,10 @@ <integer>5</integer> <key>WindowOrderList</key> <array> - <string>8B5212A922DD631D009B824C</string> - <string>/Users/christopherjohnson/Desktop/Mojo/Mojo.xcodeproj</string> + <string>/Users/christopherjohnson/Desktop/Plugins/MacVST/Mojo/Mojo.xcodeproj</string> </array> <key>WindowString</key> - <string>33 386 810 487 0 0 1440 878 </string> + <string>33 107 845 766 0 0 1440 878 </string> <key>WindowToolsV3</key> <array> <dict> diff --git a/plugins/MacVST/Mojo/Mojo.xcodeproj/project.pbxproj b/plugins/MacVST/Mojo/Mojo.xcodeproj/project.pbxproj index 80a7d52..391f533 100755 --- a/plugins/MacVST/Mojo/Mojo.xcodeproj/project.pbxproj +++ b/plugins/MacVST/Mojo/Mojo.xcodeproj/project.pbxproj @@ -1894,7 +1894,7 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - 8D01CCC60486CAD60068D4B7 /* AudioUnit */ = { + 8D01CCC60486CAD60068D4B7 /* Mojo */ = { isa = PBXNativeTarget; buildConfigurationList = 24BEAAED08919AE700E695F9 /* Build configuration list for PBXNativeTarget "Mojo" */; buildPhases = ( @@ -1947,7 +1947,7 @@ ); projectRoot = ""; targets = ( - 8D01CCC60486CAD60068D4B7 /* AudioUnit */, + 8D01CCC60486CAD60068D4B7 /* Mojo */, ); }; /* End PBXProject section */ diff --git a/plugins/MacVST/Mojo/source/Mojo.cpp b/plugins/MacVST/Mojo/source/Mojo.cpp index bef296a..7b34fba 100755 --- a/plugins/MacVST/Mojo/source/Mojo.cpp +++ b/plugins/MacVST/Mojo/source/Mojo.cpp @@ -95,7 +95,7 @@ void Mojo::getParameterDisplay(VstInt32 index, char *text) { void Mojo::getParameterLabel(VstInt32 index, char *text) { switch (index) { - case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break; + case kParamA: vst_strncpy (text, "dB", kVstMaxParamStrLen); break; default: break; // unknown parameter, shouldn't happen! } } diff --git a/plugins/MacVST/Mojo/source/MojoProc.cpp b/plugins/MacVST/Mojo/source/MojoProc.cpp index 303de25..60f986d 100755 --- a/plugins/MacVST/Mojo/source/MojoProc.cpp +++ b/plugins/MacVST/Mojo/source/MojoProc.cpp @@ -14,7 +14,7 @@ void Mojo::processReplacing(float **inputs, float **outputs, VstInt32 sampleFram float* out1 = outputs[0]; float* out2 = outputs[1]; - double gain = (A*24.0)-12.0; + double gain = pow(10.0,((A*24.0)-12.0)/20.0); while (--sampleFrames >= 0) { @@ -61,7 +61,7 @@ void Mojo::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sa double* out1 = outputs[0]; double* out2 = outputs[1]; - double gain = (A*24.0)-12.0; + double gain = pow(10.0,((A*24.0)-12.0)/20.0); while (--sampleFrames >= 0) { diff --git a/plugins/WinVST/Mojo/Mojo.cpp b/plugins/WinVST/Mojo/Mojo.cpp index bef296a..7b34fba 100755 --- a/plugins/WinVST/Mojo/Mojo.cpp +++ b/plugins/WinVST/Mojo/Mojo.cpp @@ -95,7 +95,7 @@ void Mojo::getParameterDisplay(VstInt32 index, char *text) { void Mojo::getParameterLabel(VstInt32 index, char *text) { switch (index) { - case kParamA: vst_strncpy (text, "", kVstMaxParamStrLen); break; + case kParamA: vst_strncpy (text, "dB", kVstMaxParamStrLen); break; default: break; // unknown parameter, shouldn't happen! } } diff --git a/plugins/WinVST/Mojo/MojoProc.cpp b/plugins/WinVST/Mojo/MojoProc.cpp index 303de25..60f986d 100755 --- a/plugins/WinVST/Mojo/MojoProc.cpp +++ b/plugins/WinVST/Mojo/MojoProc.cpp @@ -14,7 +14,7 @@ void Mojo::processReplacing(float **inputs, float **outputs, VstInt32 sampleFram float* out1 = outputs[0]; float* out2 = outputs[1]; - double gain = (A*24.0)-12.0; + double gain = pow(10.0,((A*24.0)-12.0)/20.0); while (--sampleFrames >= 0) { @@ -61,7 +61,7 @@ void Mojo::processDoubleReplacing(double **inputs, double **outputs, VstInt32 sa double* out1 = outputs[0]; double* out2 = outputs[1]; - double gain = (A*24.0)-12.0; + double gain = pow(10.0,((A*24.0)-12.0)/20.0); while (--sampleFrames >= 0) { |