Skip to content

Commit

Permalink
v1.1.0 (#6)
Browse files Browse the repository at this point in the history
* v1.1 Mac builds

* Zip Mac builds

* Override buses layout supported

* Update Mac builds

* Zip Mac builds

Co-authored-by: Travis CI <travis@Traviss-Mac.local>
Co-authored-by: jatinchowdhury18 <jatinchowdhury18@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 18, 2020
1 parent 85ee2a8 commit aa01b07
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CHOW Phaser is an open-source phaser effect,
based *very* loosely on the classic Shulte Compact
Phasing "A".

<img src="https://github.com/jatinchowdhury18/ChowPhaser/blob/master/res/screenshot_stereo.PNG?raw=true" alt="Pic" height="350">
<img src="https://github.com/jatinchowdhury18/ChowPhaser/blob/master/res/screenshot_stereo.PNG?raw=true" alt="Pic" height="450">


## Installation
Expand Down
13 changes: 13 additions & 0 deletions src/ChowPhaserPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ void ChowPhaser::processBlock (AudioBuffer<float>& buffer)
buffer.copyFrom (1 - modChannel, 0, noModBuffer.getReadPointer (0), numSamples);
}

bool ChowPhaser::isBusesLayoutSupported (const BusesLayout& layouts) const
{
// only supports stereo
if (layouts.getMainOutputChannelSet() != AudioChannelSet::stereo())
return false;

// input and output layout must be the same
if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())
return false;

return true;
}

AudioProcessorEditor* ChowPhaser::createEditor()
{
auto builder = std::make_unique<foleys::MagicGUIBuilder> (magicState);
Expand Down
1 change: 1 addition & 0 deletions src/ChowPhaserPlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ChowPhaser : public PluginBase<ChowPhaser>
void releaseResources() override;
void processBlock (AudioBuffer<float>& buffer) override;

bool isBusesLayoutSupported (const BusesLayout& layouts) const override;
AudioProcessorEditor* createEditor() override;

private:
Expand Down
13 changes: 13 additions & 0 deletions src/ChowPhaserStereo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ void ChowPhaserStereo::processBlock (AudioBuffer<float>& buffer)
}
}

bool ChowPhaserStereo::isBusesLayoutSupported (const BusesLayout& layouts) const
{
// only supports stereo
if (layouts.getMainOutputChannelSet() != AudioChannelSet::stereo())
return false;

// input and output layout must be the same
if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())
return false;

return true;
}

AudioProcessorEditor* ChowPhaserStereo::createEditor()
{
auto builder = std::make_unique<foleys::MagicGUIBuilder> (magicState);
Expand Down
1 change: 1 addition & 0 deletions src/ChowPhaserStereo.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ChowPhaserStereo : public PluginBase<ChowPhaserStereo>
void releaseResources() override;
void processBlock (AudioBuffer<float>& buffer) override;

bool isBusesLayoutSupported (const BusesLayout& layouts) const override;
AudioProcessorEditor* createEditor() override;

private:
Expand Down
2 changes: 1 addition & 1 deletion validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# declare -a plugins=()
elif [[ "$OSTYPE" == "darwin"* ]]; then
pluginval=$(install_pluginval_mac)
declare -a plugins=("/Users/travis/Library/Audio/Plug-Ins/VST3/ChowPhaserMono.vst3" "/Users/travis/Library/Audio/Plug-Ins/VST3/ChowPhaserStereo.vst3")
declare -a plugins=("build/ChowPhaserMono_artefacts/VST3/ChowPhaserMono.vst3" "build/ChowPhaserStereo_artefacts/VST3/ChowPhaserStereo.vst3")
else
pluginval=$(install_pluginval_win)
declare -a plugins=("build/ChowPhaserMono_artefacts/Release/VST3/ChowPhaserMono.vst3" "build/ChowPhaserStereo_artefacts/Release/VST3/ChowPhaserStereo.vst3")
Expand Down

0 comments on commit aa01b07

Please sign in to comment.