-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e10c600
Showing
18 changed files
with
602 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Builds/ | ||
JuceLibraryCode/ | ||
compile_commands.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "Clipping.h" | ||
#define OVERSAMPLING_ORDER 3 | ||
|
||
Clipping::Clipping() : oversampling(1, OVERSAMPLING_ORDER, | ||
dsp::Oversampling<float>::filterHalfBandPolyphaseIIR) | ||
{ | ||
waveshaper.functionToUse = waveshape; | ||
} | ||
|
||
Clipping::~Clipping() {} | ||
|
||
void Clipping::process(dsp::AudioBlock<float> block) | ||
{ | ||
auto oversampledBlock = oversampling.processSamplesUp(block); | ||
|
||
dsp::ProcessContextReplacing<float> ctx(oversampledBlock); | ||
waveshaper.process(ctx); | ||
|
||
oversampling.processSamplesDown(block); | ||
} | ||
void Clipping::prepare(dsp::ProcessSpec spec) | ||
{ | ||
oversampling.initProcessing(spec.maximumBlockSize); | ||
} | ||
|
||
void Clipping::reset() | ||
{ | ||
oversampling.reset(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
============================================================================== | ||
Clipping.h | ||
Created: 14 Jun 2019 9:46:07am | ||
Author: barabas | ||
============================================================================== | ||
*/ | ||
|
||
#pragma once | ||
#include "../JuceLibraryCode/JuceHeader.h" | ||
#include "WaveShape.h" | ||
|
||
class Clipping | ||
{ | ||
public: | ||
Clipping(); | ||
~Clipping(); | ||
|
||
void process(dsp::AudioBlock<float> block); | ||
void prepare(dsp::ProcessSpec spec); | ||
void reset(); | ||
|
||
private: | ||
dsp::WaveShaper<float> waveshaper; | ||
dsp::Oversampling<float> oversampling; | ||
|
||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(Clipping); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
============================================================================== | ||
Contour.cpp | ||
Created: 14 Jun 2019 9:46:54am | ||
Author: barabas | ||
============================================================================== | ||
*/ | ||
|
||
#include "Contour.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
============================================================================== | ||
Contour.h | ||
Created: 14 Jun 2019 9:46:54am | ||
Author: barabas | ||
============================================================================== | ||
*/ | ||
|
||
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
============================================================================== | ||
FMV.cpp | ||
Created: 14 Jun 2019 9:45:03am | ||
Author: barabas | ||
============================================================================== | ||
*/ | ||
|
||
#include "FMV.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
============================================================================== | ||
FMV.h | ||
Created: 14 Jun 2019 9:45:03am | ||
Author: barabas | ||
============================================================================== | ||
*/ | ||
|
||
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
============================================================================== | ||
GainControl.cpp | ||
Created: 14 Jun 2019 9:45:31am | ||
Author: barabas | ||
============================================================================== | ||
*/ | ||
|
||
#include "GainControl.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
============================================================================== | ||
GainControl.h | ||
Created: 14 Jun 2019 9:45:31am | ||
Author: barabas | ||
============================================================================== | ||
*/ | ||
|
||
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
============================================================================== | ||
InputFilter.cpp | ||
Created: 14 Jun 2019 9:45:24am | ||
Author: barabas | ||
============================================================================== | ||
*/ | ||
|
||
#include "InputFilter.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
============================================================================== | ||
InputFilter.h | ||
Created: 14 Jun 2019 9:45:24am | ||
Author: barabas | ||
============================================================================== | ||
*/ | ||
|
||
#pragma once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
============================================================================== | ||
This file was auto-generated! | ||
It contains the basic framework code for a JUCE plugin editor. | ||
============================================================================== | ||
*/ | ||
|
||
#include "PluginProcessor.h" | ||
#include "PluginEditor.h" | ||
|
||
//============================================================================== | ||
ValvestateAudioProcessorEditor::ValvestateAudioProcessorEditor (ValvestateAudioProcessor& p) | ||
: AudioProcessorEditor (&p), processor (p) | ||
{ | ||
// Make sure that before the constructor has finished, you've set the | ||
// editor's size to whatever you need it to be. | ||
setSize (400, 300); | ||
} | ||
|
||
ValvestateAudioProcessorEditor::~ValvestateAudioProcessorEditor() | ||
{ | ||
} | ||
|
||
//============================================================================== | ||
void ValvestateAudioProcessorEditor::paint (Graphics& g) | ||
{ | ||
// (Our component is opaque, so we must completely fill the background with a solid colour) | ||
g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId)); | ||
|
||
g.setColour (Colours::white); | ||
g.setFont (15.0f); | ||
g.drawFittedText ("Hello World!", getLocalBounds(), Justification::centred, 1); | ||
} | ||
|
||
void ValvestateAudioProcessorEditor::resized() | ||
{ | ||
// This is generally where you'll want to lay out the positions of any | ||
// subcomponents in your editor.. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
============================================================================== | ||
This file was auto-generated! | ||
It contains the basic framework code for a JUCE plugin editor. | ||
============================================================================== | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "../JuceLibraryCode/JuceHeader.h" | ||
#include "PluginProcessor.h" | ||
|
||
//============================================================================== | ||
/** | ||
*/ | ||
class ValvestateAudioProcessorEditor : public AudioProcessorEditor | ||
{ | ||
public: | ||
ValvestateAudioProcessorEditor (ValvestateAudioProcessor&); | ||
~ValvestateAudioProcessorEditor(); | ||
|
||
//============================================================================== | ||
void paint (Graphics&) override; | ||
void resized() override; | ||
|
||
private: | ||
// This reference is provided as a quick way for your editor to | ||
// access the processor object that created it. | ||
ValvestateAudioProcessor& processor; | ||
|
||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ValvestateAudioProcessorEditor) | ||
}; |
Oops, something went wrong.