Skip to content

Commit

Permalink
GUI edits
Browse files Browse the repository at this point in the history
red dials for input and output and textbox suffix
  • Loading branch information
sadmemelord committed Feb 2, 2023
1 parent ce7f583 commit de2ab90
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
5 changes: 5 additions & 0 deletions JuceLibraryCode/JuceHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
#error "This project was last saved using an outdated version of the Projucer! Re-save this project with the latest version to fix this error."
#endif

#if ! DONT_SET_USING_JUCE_NAMESPACE
// If your code uses a lot of JUCE classes, then this will obviously save you
// a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE.
using namespace juce;
#endif

#if ! JUCE_DONT_DECLARE_PROJECTINFO
namespace ProjectInfo
Expand Down
3 changes: 1 addition & 2 deletions QuasoCompressor.jucer
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<JUCERPROJECT id="yy46oQ" name="QuasoCompressor" projectType="audioplug" useAppConfig="0"
addUsingNamespaceToJuceHeader="0" displaySplashScreen="1" jucerFormatVersion="1"
companyName="sadmemelord">
displaySplashScreen="1" jucerFormatVersion="1" companyName="sadmemelord">
<MAINGROUP id="AsMcn2" name="QuasoCompressor">
<GROUP id="{D7589DD5-C5DE-D5EC-0ABB-CC849D0320A2}" name="Source">
<GROUP id="{934AFFCF-E6D9-A510-94D9-DF6065430908}" name="Parameters">
Expand Down
2 changes: 1 addition & 1 deletion Source/Parameters/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ const juce::String releaseID = "release";
const juce::String releaseName = "Release";

const juce::String outputID = "output";
const juce::String outputName = "Output";
const juce::String outputName = "Output";
10 changes: 10 additions & 0 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ QuasoCompressorAudioProcessorEditor::QuasoCompressorAudioProcessorEditor (QuasoC
dialLabels[i]->attachToComponent(dials[i], false);
}

//some properties are different between dials like the textbox suffix
inputDial.setColour(juce::Slider::ColourIds::thumbColourId, juce::Colours::indianred.darker(0.3));
inputDial.setTextValueSuffix(" dB");
threshDial.setTextValueSuffix(" dB");
attackDial.setTextValueSuffix(" ms");
releaseDial.setTextValueSuffix(" ms");
outputDial.setColour(juce::Slider::ColourIds::thumbColourId, juce::Colours::indianred.darker(0.3));
outputDial.setTextValueSuffix(" dB");


attachSliders();

setSize(1000, 500);
Expand Down
4 changes: 3 additions & 1 deletion Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,12 @@ void QuasoCompressorAudioProcessor::prepareToPlay (double sampleRate, int sample
//prepare dsp modules for processing
inputModule.prepare(spec);
inputModule.setRampDurationSeconds(0.02);

outputModule.setRampDurationSeconds(0.02);
outputModule.prepare(spec);
compressorModule.prepare(spec);

compressorModule.prepare(spec);

updateParameters();
}

Expand Down

0 comments on commit de2ab90

Please sign in to comment.