Skip to content

Commit 274f015

Browse files
committed
added github build action
1 parent 8d6d267 commit 274f015

File tree

10 files changed

+43
-47
lines changed

10 files changed

+43
-47
lines changed

.github/workflows/cmake.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: juce-ci
2+
3+
on: [push]
4+
5+
env:
6+
BUILD_TYPE: Release
7+
8+
jobs:
9+
build:
10+
runs-on: ${{matrix.os}}
11+
strategy:
12+
matrix:
13+
os: [windows-latest, macos-latest]
14+
15+
steps:
16+
- name: "Preparation"
17+
uses: actions/checkout@v2
18+
19+
- name: "(JUCE) Clone Repository"
20+
uses: actions/checkout@v2
21+
with:
22+
repository: juce-framework/JUCE
23+
path: ${{runner.workspace}}/RSAlgorithmicVerb/JUCE
24+
25+
- name: "Create Build Environment"
26+
working-directory: ${{runner.workspace}}/RSAlgorithmicVerb
27+
run: cmake -S . -B build
28+
29+
- name: "Build"
30+
working-directory: ${{runner.workspace}}/RSAlgorithmicVerb
31+
run: cmake --build build --config $BUILD_TYPE

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ cmake_minimum_required(VERSION 3.22)
1212

1313
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1414

15-
set(CMAKE_BUILD_TYPE Debug)
15+
# set(CMAKE_BUILD_TYPE Debug)
1616

1717
# The top-level CMakeLists.txt file for a project must contain a literal, direct call to the
1818
# `project()` command. `project()` sets up some helpful variables that describe source/binary
1919
# directories, and the current project version. This is a standard CMake command.
2020

21-
project(RSAlgorithmicVerb VERSION 0.5.4)
21+
project(RSAlgorithmicVerb VERSION 0.5.5)
2222

2323
# If you've installed JUCE somehow (via a package manager, or directly using the CMake install
2424
# target), you'll need to tell this project that it depends on the installed copy of JUCE. If you've
@@ -53,9 +53,9 @@ juce_add_plugin(${PROJECT_NAME}
5353
# NEEDS_MIDI_OUTPUT TRUE/FALSE # Does the plugin need midi output?
5454
IS_MIDI_EFFECT FALSE # Is this plugin a MIDI effect?
5555
# EDITOR_WANTS_KEYBOARD_FOCUS TRUE/FALSE # Does the editor need keyboard focus?
56-
COPY_PLUGIN_AFTER_BUILD TRUE # Should the plugin be installed to a default location after building?
57-
VST3_COPY_DIR "/Library/Audio/Plug-Ins/VST3"
58-
AU_COPY_DIR "/Library/Audio/Plug-Ins/Components"
56+
# COPY_PLUGIN_AFTER_BUILD TRUE # Should the plugin be installed to a default location after building?
57+
# VST3_COPY_DIR "/Library/Audio/Plug-Ins/VST3"
58+
# AU_COPY_DIR "/Library/Audio/Plug-Ins/Components"
5959
PLUGIN_MANUFACTURER_CODE Rspi # A four-character manufacturer id with at least one upper-case character
6060
PLUGIN_CODE Rsav # A unique four-character plugin id with exactly one upper-case character
6161
# GarageBand 10.3 requires the first letter to be upper-case, and the remaining letters to be lower-case

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Linux/Windows releases are coming! For now, compiler targets are available for L
5757

5858
## Compiling with CMake
5959
- Clone the [JUCE repo](https://github.com/juce-framework/JUCE) into the working folder
60-
- Run the following for a CLI build:
60+
- Run the following for a CLI build. Note that you may need to run these with `sudo`:
6161
```sh
6262
# sets up a default build:
6363
cmake -S . -B build
@@ -66,6 +66,8 @@ cmake -S . -B build/ -D CMAKE_BUILD_TYPE=Debug
6666
# or
6767
cmake -S . -B build/ -D CMAKE_BUILD_TYPE=Release
6868

69+
# you can add the flag -D COPY_PLUGIN_AFTER_BUILD=TRUE to copy the built files to the default location on macOS
70+
6971
# after running one of the above three options, run
7072
cmake --build build
7173
```

Source/GardnerRooms.cpp

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
/*
2-
==============================================================================
3-
4-
5-
6-
==============================================================================
7-
*/
1+
// Allpass loop room reverbs from Gardner, 1992
82

93
#include "GardnerRooms.h"
104

11-
//==============================================================================
125
GardnerSmallRoom::GardnerSmallRoom() = default;
136

147
GardnerSmallRoom::~GardnerSmallRoom() = default;
@@ -24,9 +17,6 @@ void GardnerSmallRoom::prepare(const juce::dsp::ProcessSpec &spec)
2417
delay5.prepare(spec);
2518
delay6.prepare(spec);
2619

27-
// for (auto& delay : delays)
28-
// delay.prepare(spec);
29-
3020
dampingFilter.prepare(spec);
3121
dampingFilter.setType(juce::dsp::FirstOrderTPTFilterType::lowpass);
3222

@@ -69,9 +59,7 @@ void GardnerSmallRoom::processBlock(juce::AudioBuffer<float> &buffer, juce::Midi
6959
float delay5Time = 30 * samplesPerMs * parameters.roomSize + channelDelayOffset[channel]; // for modulation
7060
delay5.setDelay(delay5Time);
7161
delay6.setDelay(36 * samplesPerMs * parameters.roomSize + channelDelayOffset[channel]);
72-
73-
// for (size_t delay = 0; delay < delayTimesMs.size(); ++delay) {}
74-
62+
7563
for (int sample = 0; sample < buffer.getNumSamples(); ++sample)
7664
{
7765
// LFO

Source/GardnerRooms.h

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
/*
2-
==============================================================================
3-
4-
Allpass loop rooms from Gardner 1992
5-
6-
==============================================================================
7-
*/
1+
// Allpass loop room reverbs from Gardner, 1992
82

93
#pragma once
104

@@ -14,10 +8,6 @@
148
#include "ProcessorBase.h"
159
#include "Utilities.h"
1610

17-
// want shorter alias because of repetitive syntax for std::vector with size as *member* variable
18-
typedef juce::dsp::DelayLine<float> DelayLine;
19-
20-
//==============================================================================
2111
class GardnerSmallRoom :public ReverbProcessorBase
2212
{
2313
public:
@@ -44,9 +34,6 @@ class GardnerSmallRoom :public ReverbProcessorBase
4434
juce::dsp::DelayLine<float> delay4 { 22050 };
4535
juce::dsp::DelayLine<float> delay5 { 22050 };
4636
juce::dsp::DelayLine<float> delay6 { 22050 };
47-
// need to use this verbose syntax for initializing with size as *member* variable
48-
std::vector<DelayLine> delays = std::vector<DelayLine>(6, DelayLine(22050));
49-
std::vector<float> delayTimesMs { 24.0f, 22.0f, 8.3f, 4.7f, 30.0f, 36.0f };
5037

5138
juce::dsp::FirstOrderTPTFilter<float> dampingFilter;
5239

Source/LFO.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include <JuceHeader.h>
88

9-
//==============================================================================
109
struct SignalGenData
1110
{
1211
SignalGenData() {}
@@ -27,7 +26,6 @@ class IAudioSignalGenerator
2726
virtual const SignalGenData renderAudioOutput() = 0;
2827
};
2928

30-
//==============================================================================
3129
enum class generatorWaveform { triangle, sin, saw };
3230

3331
struct OscillatorParameters

Source/PluginEditor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// Graphical interface for the plugin
22

3-
43
#include "PluginProcessor.h"
54
#include "PluginEditor.h"
65

7-
//==============================================================================
86
RSAlgorithmicVerbAudioProcessorEditor::RSAlgorithmicVerbAudioProcessorEditor (RSAlgorithmicVerbAudioProcessor& p, juce::AudioProcessorValueTreeState& vts)
97
: AudioProcessorEditor (&p), audioProcessor (p), valueTreeState(vts)
108
{

Source/PluginEditor.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@
77
#include "GuiStyles.h"
88
#include "PluginProcessor.h"
99

10-
//==============================================================================
11-
/**
12-
*/
1310
class RSAlgorithmicVerbAudioProcessorEditor : public juce::AudioProcessorEditor
1411
{
1512
public:
1613
RSAlgorithmicVerbAudioProcessorEditor (RSAlgorithmicVerbAudioProcessor&, juce::AudioProcessorValueTreeState&);
1714
~RSAlgorithmicVerbAudioProcessorEditor() override;
18-
19-
//==============================================================================
15+
2016
void paint (juce::Graphics&) override;
2117
void resized() override;
2218

Source/PluginProcessor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "PluginProcessor.h"
2121
#include "PluginEditor.h"
2222

23-
//==============================================================================
2423
RSAlgorithmicVerbAudioProcessor::RSAlgorithmicVerbAudioProcessor()
2524
#ifndef JucePlugin_PreferredChannelConfigurations
2625
: AudioProcessor (BusesProperties()

Source/PluginProcessor.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ struct ProcessorFactory
4444
};
4545
};
4646

47-
//==============================================================================
48-
/**
49-
*/
5047
class RSAlgorithmicVerbAudioProcessor : public juce::AudioProcessor
5148
#if JucePlugin_Enable_ARA
5249
, public juce::AudioProcessorARAExtension

0 commit comments

Comments
 (0)