commit 0d272640d2a42964350762784e4643236e22fd35
parent 04e7ff64711eea2557261568dd7aaebc9479646a
Author: jatinchowdhury18 <[email protected]>
Date: Tue, 2 Jun 2020 23:02:39 -0700
Prepare release 2.3.0 (#36)
* Prepare release 2.3.0
* Add Manufacturer code
* Attempt to fix divide by zero in loss filter
* Fix compiler issues
* Extend timeout time for Travis Linux validation
* Travis: Reduce pluginval strictness for Mac
* Updated builds
* Update screenshot
Co-authored-by: jatinchowdhury18 <[email protected]>
Co-authored-by: Travis CI <[email protected]>
Diffstat:
6 files changed, 36 insertions(+), 15 deletions(-)
diff --git a/.travis.yml b/.travis.yml
@@ -101,8 +101,8 @@ script:
cd $TRAVIS_BUILD_DIR/
curl -L "https://github.com/Tracktion/pluginval/releases/download/v0.2.3/pluginval_macOS.zip" -o pluginval.zip
unzip pluginval
- pluginval.app/Contents/MacOS/pluginval --strictness-level 8 --validate-in-process --validate "$TRAVIS_BUILD_DIR/Plugin/Builds/MacOSX/build/Release/CHOWTapeModel.vst3" || exit 1
- pluginval.app/Contents/MacOS/pluginval --strictness-level 8 --validate-in-process --validate "$TRAVIS_BUILD_DIR/Plugin/Builds/MacOSX/build/Release/CHOWTapeModel.component" || exit 1
+ pluginval.app/Contents/MacOS/pluginval --strictness-level 5 --validate-in-process --validate "$TRAVIS_BUILD_DIR/Plugin/Builds/MacOSX/build/Release/CHOWTapeModel.vst3" || exit 1
+ pluginval.app/Contents/MacOS/pluginval --strictness-level 5 --validate-in-process --validate "$TRAVIS_BUILD_DIR/Plugin/Builds/MacOSX/build/Release/CHOWTapeModel.component" || exit 1
fi
# - |
# if [[ $TRAVIS_OS_NAME == 'windows' ]]; then
@@ -116,7 +116,7 @@ script:
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
curl -L "https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_Linux.zip" -o pluginval.zip
unzip pluginval
- ./pluginval --strictness-level 5 --validate-in-process --timeout-ms 300000 --validate "$TRAVIS_BUILD_DIR/Plugin/Builds/LinuxMakefile/build/CHOWTapeModel.so" || exit 1
+ ./pluginval --strictness-level 5 --validate-in-process --timeout-ms 500000 --validate "$TRAVIS_BUILD_DIR/Plugin/Builds/LinuxMakefile/build/CHOWTapeModel.so" || exit 1
fi
- echo "SUCCESS"
@@ -126,12 +126,13 @@ script:
# if [[ $TRAVIS_JOB_NAME == 'osx' && type != push ]]; then
# echo "Copying Files..."
# cd $TRAVIS_BUILD_DIR/
+# rm -R Plugin/Bin/Mac/CHOWTapeModel.*
# cp -R $TRAVIS_BUILD_DIR/Plugin/Builds/MacOSX/build/Release/CHOWTapeModel.app $TRAVIS_BUILD_DIR/Plugin/Bin/Mac/CHOWTapeModel.app
-# cp -R /Users/travis/Library/Audio/Plug-Ins/Components/CHOWTapeModel.component $TRAVIS_BUILD_DIR/Plugin/Bin/Mac/CHOWTapeModel.component
-# cp -R /Users/travis/Library/Audio/Plug-Ins/VST/CHOWTapeModel.vst $TRAVIS_BUILD_DIR/Plugin/Bin/Mac/CHOWTapeModel.vst
-# cp -R /Users/travis/Library/Audio/Plug-Ins/VST3/CHOWTapeModel.vst3 $TRAVIS_BUILD_DIR/Plugin/Bin/Mac/CHOWTapeModel.vst3
+# cp -R $TRAVIS_BUILD_DIR/Plugin/Builds/MacOSX/build/Release/CHOWTapeModel.component $TRAVIS_BUILD_DIR/Plugin/Bin/Mac/CHOWTapeModel.component
+# cp -R $TRAVIS_BUILD_DIR/Plugin/Builds/MacOSX/build/Release/CHOWTapeModel.vst $TRAVIS_BUILD_DIR/Plugin/Bin/Mac/CHOWTapeModel.vst
+# cp -R $TRAVIS_BUILD_DIR/Plugin/Builds/MacOSX/build/Release/CHOWTapeModel.vst3 $TRAVIS_BUILD_DIR/Plugin/Bin/Mac/CHOWTapeModel.vst3
-# zip -r $TRAVIS_BUILD_DIR/Plugin/Bin/MacBuilds.zip $TRAVIS_BUILD_DIR/Plugin/Bin/Mac
+# zip -r $TRAVIS_BUILD_DIR/Plugin/Bin/MacBuilds.zip $TRAVIS_BUILD_DIR/Plugin/Bin/Mac/
# echo "Setting Up Git..."
# git config --global user.email "[email protected]"
diff --git a/Plugin/CHOWTapeModel.jucer b/Plugin/CHOWTapeModel.jucer
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<JUCERPROJECT id="jDoXPz" name="CHOWTapeModel" projectType="audioplug" jucerVersion="5.4.7"
- version="2.2.0" pluginFormats="buildAU,buildStandalone,buildVST,buildVST3"
+ version="2.3.0" pluginFormats="buildAU,buildStandalone,buildVST,buildVST3"
cppLanguageStandard="17" companyName="chowdsp" companyEmail="[email protected]"
- defines="SAVE_PRESETS=0">
+ defines="SAVE_PRESETS=0" pluginManufacturerCode="Chow">
<MAINGROUP id="pXbPvR" name="CHOWTapeModel">
<GROUP id="{0178B10A-4A61-796A-5AB2-915D32AF6EEE}" name="Source">
<GROUP id="{8D673967-9B5D-8254-9062-4C4B14D4EAD9}" name="GUI">
diff --git a/Plugin/Source/Presets/PresetManager.cpp b/Plugin/Source/Presets/PresetManager.cpp
@@ -55,7 +55,7 @@ public:
manager.removeListener (this);
}
- void paint (Graphics& g)
+ void paint (Graphics& g) override
{
Colour background (0xFF434352);
g.fillAll (background);
@@ -72,7 +72,7 @@ public:
g.drawFittedText ("v" + String (JucePlugin_VersionString), versionBounds, Justification::centred, 1);
}
- void resized()
+ void resized() override
{
auto boxWidth = jmin (getWidth() / 3, 200);
presetBox.setBounds ((getWidth() - boxWidth) / 2, 2, boxWidth, getHeight() - 4);
diff --git a/Plugin/Source/Processors/Loss_Effects/LossFilter.h b/Plugin/Source/Processors/Loss_Effects/LossFilter.h
@@ -46,8 +46,8 @@ public:
fs = sampleRate;
fadeBuffer.resize (samplesPerBlock);
- fsFactor = (int) (fs / 44100.0f);
- const int curOrder = order * fsFactor;
+ fsFactor = (float) fs / 44100.0f;
+ const int curOrder = int (order * fsFactor);
filters.clear();
filters.add (new FIRFilter (curOrder));
filters.add (new FIRFilter (curOrder));
@@ -71,7 +71,7 @@ public:
void calcCoefs()
{
// Set freq domain multipliers
- int curOrder = order * fsFactor;
+ const int curOrder = int (order * fsFactor);
binWidth = fs / (float) curOrder;
std::unique_ptr<float[]> H (new float[curOrder]);
for (int k = 0; k < curOrder / 2; k++)
@@ -172,7 +172,7 @@ private:
float prevGap;
float fs = 44100.0f;
- int fsFactor = (int) (fs / 44100.0f);
+ float fsFactor = 1.0f;
float binWidth = fs / 100.0f;
const int order;
diff --git a/Plugin/screenshot.png b/Plugin/screenshot.png
Binary files differ.
diff --git a/win_builds.sh b/win_builds.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+export PATH="/c/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/":$PATH
+
+echo "Building 64-bit..."
+cd Plugin/Builds/VisualStudio2017/
+MSBuild.exe -v:quiet -t:rebuild -p:Configuration=Release -p:Platform=x64 CHOWTapeModel.sln
+
+echo "Building 32-bit..."
+MSBuild.exe -v:quiet -t:rebuild -p:Configuration=Release32 -p:Platform=Win32 CHOWTapeModel.sln
+
+echo "Copying Files..."
+cd ../../
+cp Builds/VisualStudio2017/x64/Release/VST/CHOWTapeModel.dll Bin/Win64/
+cp Builds/VisualStudio2017/x64/Release/VST3/CHOWTapeModel.vst3 Bin/Win64/
+cp Builds/VisualStudio2017/x64/Release/Standalone\ Plugin/CHOWTapeModel.exe Bin/Win64/
+
+cp Builds/VisualStudio2017/Win32/Release32/VST/CHOWTapeModel.dll Bin/Win32/
+cp Builds/VisualStudio2017/Win32/Release32/VST3/CHOWTapeModel.vst3 Bin/Win32/
+cp Builds/VisualStudio2017/Win32/Release32/Standalone\ Plugin/CHOWTapeModel.exe Bin/Win32/