Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7851fcc

Browse files
committed
Release
1 parent 451f9a2 commit 7851fcc

24 files changed

Lines changed: 57 additions & 2627 deletions

OrangeCrush20L.jucer

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,9 @@
7373
<EXPORTFORMATS>
7474
<VS2022 targetFolder="Builds/VisualStudio2022">
7575
<CONFIGURATIONS>
76-
<CONFIGURATION isDebug="1" name="Debug" targetName="OrangeCrush20L" headerPath="&quot;C:\Users\Martin\Downloads\MPIR-Binary\include&quot;"
77-
libraryPath="&quot;C:\Users\Martin\Downloads\MPIR-Binary\lib\MD\x64\Debug&quot;"
78-
extraLinkerFlags="&quot;mpir.lib&quot;"/>
76+
<CONFIGURATION isDebug="1" name="Debug" targetName="OrangeCrush20L"/>
7977
<CONFIGURATION isDebug="0" name="Release" targetName="OrangeCrush20L" enablePluginBinaryCopyStep="1"
80-
vst3BinaryLocation="C:\VST3" libraryPath="&quot;C:\Users\Martin\Downloads\MPIR-Binary\lib\MD\x64\Release&quot;"
81-
headerPath="&quot;C:\Users\Martin\Downloads\MPIR-Binary\include&quot;"
82-
extraLinkerFlags="&quot;mpir.lib&quot;"/>
78+
vst3BinaryLocation="C:\VST3"/>
8379
</CONFIGURATIONS>
8480
<MODULEPATHS>
8581
<MODULEPATH id="juce_audio_basics" path="../../modules"/>

Source/CircularBuffer.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
/*
2-
==============================================================================
3-
4-
CircularBuffer.h
5-
Created: 26 Apr 2024 7:14:08pm
6-
Author: Martin
7-
8-
==============================================================================
9-
*/
10-
111
#pragma once
122

133
template<class T, size_t size>

Source/MyLookAndFeel.cpp

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
/*
2-
==============================================================================
3-
4-
Knob.cpp
5-
Created: 24 Nov 2024 5:30:19pm
6-
Author: Martin
7-
8-
==============================================================================
9-
*/
10-
111
#include "MyLookAndFeel.h"
122

13-
Knob::Knob() :juce::Slider(juce::Slider::SliderStyle::RotaryVerticalDrag, TextBoxBelow) {
3+
Knob::Knob() :juce::Slider(juce::Slider::SliderStyle::RotaryVerticalDrag, NoTextBox) {
144
this->setLookAndFeel(&this->lookAndFeel);
155
this->setPopupDisplayEnabled(true, false, nullptr);
166
}
@@ -19,10 +9,8 @@ void Knob::paint(juce::Graphics& g) {
199
this->lookAndFeel.drawRotarySlider(g, this->getLocalBounds().getX(), this->getLocalBounds().getY(), this->getLocalBounds().getWidth(), this->getLocalBounds().getHeight(), this->getNormalisableRange().convertTo0to1(this->getValue()), 0.0f, 360.0f, *this);
2010
}
2111

22-
juce::String Knob::getTextFromValue(double value)
23-
{
24-
//return juce::String((this->getNormalisableRange().convertTo0to1(value)) * 10.0f, 1);
25-
return juce::String(this->getValue());
12+
juce::String Knob::getTextFromValue(double value){
13+
return juce::String((this->getNormalisableRange().convertTo0to1(value)) * 10.0f, 1);
2614
}
2715

2816
Knob::~Knob() {
@@ -89,7 +77,6 @@ void MyLookAndFeel::drawLinearSlider(juce::Graphics& g, int x, int y, int width,
8977
g.setColour(slider.findColour(juce::Slider::trackColourId));
9078
g.strokePath(valueTrack, { trackWidth, juce::PathStrokeType::curved, juce::PathStrokeType::rounded });
9179

92-
//g.setColour(slider.findColour(juce::Slider::thumbColourId));
9380
juce::ColourGradient thumbGradient(slider.findColour(juce::Slider::thumbColourId).contrasting(), maxPoint - juce::Point<float>(thumbWidth / 2, 0), slider.findColour(juce::Slider::thumbColourId), maxPoint - juce::Point<float>(0.7f * thumbWidth / 2, 0), true);
9481
g.setGradientFill(thumbGradient);
9582
g.fillEllipse(juce::Rectangle<float>(static_cast<float> (thumbWidth), static_cast<float> (thumbWidth)).withCentre(maxPoint));
@@ -116,12 +103,10 @@ Switch::Switch(std::atomic<float>* position, const void* imageOffData, int image
116103

117104
void Switch::changeState() {
118105
if (!this->getToggleState()) {
119-
//this->powerButton.setToggleState(false, juce::NotificationType::dontSendNotification);
120106
this->setImages(false, true, true, juce::ImageCache::getFromMemory(imageOffData, imageOffSize), 1.0f, juce::Colours::transparentWhite, juce::Image(), 1.0f, juce::Colours::transparentWhite, juce::Image(), 1.0f, juce::Colours::transparentWhite);
121107
this->repaint();
122108
}
123109
else {
124-
//this->powerButton.setToggleState(true, juce::NotificationType::dontSendNotification);
125110
this->setImages(false, true, true, juce::ImageCache::getFromMemory(imageOnData, imageOnSize), 1.0f, juce::Colours::transparentWhite, juce::Image(), 1.0f, juce::Colours::transparentWhite, juce::Image(), 1.0f, juce::Colours::transparentWhite);
126111
this->repaint();
127112
}

Source/MyLookAndFeel.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
/*
2-
==============================================================================
3-
4-
Knob.h
5-
Created: 24 Nov 2024 5:30:03pm
6-
Author: Martin
7-
8-
==============================================================================
9-
*/
10-
111
#pragma once
122
#include "JuceHeader.h"
133
#include <vector>
@@ -26,7 +16,6 @@ class MyLookAndFeel :public juce::LookAndFeel_V4 {
2616

2717
class Knob :public juce::Slider {
2818
private:
29-
//juce::RangedAudioParameter* param; //https://forum.juce.com/t/getrawparametervalue-vs-getparameter/38395
3019
MyLookAndFeel lookAndFeel;
3120
public:
3221
Knob();

Source/ParameterQueue.hpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
/*
2-
==============================================================================
3-
4-
ParameterQueue.hpp
5-
Created: 25 Oct 2024 3:52:14pm
6-
Author: Martin
7-
8-
==============================================================================
9-
*/
10-
111
#pragma once
122

133
#include "JuceHeader.h"

Source/PluginEditor.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
/*
2-
==============================================================================
3-
4-
This file contains the basic framework code for a JUCE plugin editor.
5-
6-
==============================================================================
7-
*/
8-
91
#include "PluginProcessor.h"
102
#include "PluginEditor.h"
113

12-
//==============================================================================
13-
144
OrangeCrush20LAudioProcessorEditor::OrangeCrush20LAudioProcessorEditor (OrangeCrush20LAudioProcessor& p, juce::AudioProcessorValueTreeState& vts)
155
: AudioProcessorEditor (&p), audioProcessor (p), valueTreeState(vts),
166
powerButton(vts.getRawParameterValue("power"), BinaryData::powerswitch_off_png, BinaryData::powerswitch_off_pngSize, BinaryData::powerswitch_on_png, BinaryData::powerswitch_on_pngSize),
@@ -79,7 +69,6 @@ OrangeCrush20LAudioProcessorEditor::~OrangeCrush20LAudioProcessorEditor()
7969
//==============================================================================
8070
void OrangeCrush20LAudioProcessorEditor::paint (juce::Graphics& g)
8171
{
82-
// (Our component is opaque, so we must completely fill the background with a solid colour)
8372
if (this->background.isValid()) {
8473
g.drawImage(this->background, this->getLocalBounds().toFloat(), juce::RectanglePlacement::onlyReduceInSize | juce::RectanglePlacement::stretchToFit);
8574
}

Source/PluginEditor.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,20 @@
1-
/*
2-
==============================================================================
3-
4-
This file contains the basic framework code for a JUCE plugin editor.
5-
6-
==============================================================================
7-
*/
8-
91
#pragma once
102

113
#include <JuceHeader.h>
124
#include "PluginProcessor.h"
135
#include "MyLookAndFeel.h"
146

15-
//==============================================================================
16-
/**
17-
*/
18-
19-
20-
217

228

239
class OrangeCrush20LAudioProcessorEditor : public juce::AudioProcessorEditor {
2410
public:
2511
OrangeCrush20LAudioProcessorEditor(OrangeCrush20LAudioProcessor&, juce::AudioProcessorValueTreeState&);
2612
~OrangeCrush20LAudioProcessorEditor() override;
2713

28-
//==============================================================================
2914
void paint (juce::Graphics&) override;
3015
void resized() override;
3116

3217
private:
33-
// This reference is provided as a quick way for your editor to
34-
// access the processor object that created it.
3518
OrangeCrush20LAudioProcessor& audioProcessor;
3619
juce::AudioProcessorValueTreeState& valueTreeState;
3720

0 commit comments

Comments
 (0)