Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Torsion-Audio/Scyclone i…
Browse files Browse the repository at this point in the history
…nto develop
  • Loading branch information
vackva committed May 3, 2024
2 parents 36fc467 + 9c91b46 commit 2182cd7
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 175 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ target_link_libraries(${TARGET_NAME}
juce::juce_graphics
juce::juce_gui_basics
juce::juce_gui_extra
juce::juce_audio_basics
onnxruntime

PUBLIC
Expand Down
6 changes: 3 additions & 3 deletions source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ AudioPluginAudioProcessor::AudioPluginAudioProcessor()
grainDelay1(1),
grainDelay2(2),
processorCompressor(parameters)
{
{

network1Name = "Funk";
network2Name = "Djembe";
Expand Down Expand Up @@ -169,6 +169,7 @@ void AudioPluginAudioProcessor::prepareToPlay (double sampleRate, int samplesPer
void AudioPluginAudioProcessor::releaseResources() {
// When playback stops, you can use this as an opportunity to free up any
// spare memory, etc.
measurer.reset();
}

bool AudioPluginAudioProcessor::isBusesLayoutSupported (const BusesLayout& layouts) const {
Expand All @@ -195,9 +196,8 @@ bool AudioPluginAudioProcessor::isBusesLayoutSupported (const BusesLayout& layou

void AudioPluginAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer,
juce::MidiBuffer& ) {
juce::AudioProcessLoadMeasurer::ScopedTimer s(measurer);
juce::AudioProcessLoadMeasurer::ScopedTimer s(measurer, buffer.getNumSamples());
{

dryWetMixer.setDrySamples(buffer);
stereoToMono(monoBuffer, buffer);

Expand Down
3 changes: 3 additions & 0 deletions source/PluginProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "dsp/gain/ProcessorGain.h"
#include "dsp/Filter/IIRCutoffFilter.h"
#include "dsp/grainDelay/GrainDelay.h"
//#include <audio_basics/buffers/juce_AudioProcessLoadMeasurer.h>


//==============================================================================
Expand Down Expand Up @@ -123,6 +124,8 @@

float latency;



//==============================================================================
JUCE_HEAVYWEIGHT_LEAK_DETECTOR (AudioPluginAudioProcessor)
};
2 changes: 1 addition & 1 deletion source/ui/CustomComponents/Footer/FooterComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void FooterComponent::updateSpecs(){
latencySeconds = (float)latencySamples / float(sampleRate);

//processorUse = processor.getCpuLoad();
processorUse = systemSpecs.getCPULoad();
processorUse = processor.getCpuLoad();

std::string cpuString = "CPU: " + std::to_string((int)processorUse ) + " %";
cpuLabel.setText(cpuString, juce::dontSendNotification);
Expand Down
3 changes: 0 additions & 3 deletions source/ui/CustomComponents/Footer/FooterComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "../../../PluginParameters.h"
#include "../../../PluginProcessor.h"
#include "../../../ui/LookAndFeel/CustomFontLookAndFeel.h"
#include "../../../utils/SystemSpecs.h"

class FooterComponent : public juce::Component, juce::Timer {
public:
Expand Down Expand Up @@ -39,8 +38,6 @@ class FooterComponent : public juce::Component, juce::Timer {
CustomFontLookAndFeel customFontLookAndFeel;
juce::Font font;

SystemSpecs systemSpecs;

};


Expand Down
7 changes: 1 addition & 6 deletions source/ui/CustomComponents/XYPad/XYPad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ void XYPad::resized()

void XYPad::parameterChanged(const juce::String& parameterID, float newValue)
{
if (parameterID == PluginParameters::SELECT_NETWORK1_ID.getParamID() && newValue == 0.f) {
updateKnobName(1, network1Name);
} else if (parameterID == PluginParameters::SELECT_NETWORK2_ID.getParamID() && newValue == 0.f) {
updateKnobName(2, network2Name);
}


if (parameterID == PluginParameters::FADE_ID.getParamID()){
float fadeValue = parameters.getRawParameterValue(PluginParameters::FADE_ID.getParamID())->load();
onModelMixChange(fadeValue);
Expand Down
139 changes: 0 additions & 139 deletions source/utils/SystemSpecs.cpp

This file was deleted.

23 changes: 0 additions & 23 deletions source/utils/SystemSpecs.h

This file was deleted.

0 comments on commit 2182cd7

Please sign in to comment.