From 0bc21ce2acdd90c144d6d9ab64cf85fe493a72b4 Mon Sep 17 00:00:00 2001 From: hellerve Date: Mon, 26 Jun 2017 23:36:09 -0400 Subject: [PATCH] modules: added wrDsp --- .gitmodules | 3 +++ Source/PluginEditor.cpp | 5 +++-- Source/PluginEditor.h | 2 +- Source/PluginProcessor.cpp | 1 - test.RPP | 4 ++-- wrDsp | 1 + 6 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 .gitmodules create mode 160000 wrDsp diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..52f243a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "wrDsp"] + path = wrDsp + url = https://github.com/whimsicalraps/wrDsp diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index b2fc9c8..9a0a208 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -19,8 +19,8 @@ LampshadeAudioProcessorEditor::LampshadeAudioProcessorEditor(LampshadeAudioProce setSize(600, 600); slider.setLookAndFeel(gui); addAndMakeVisible(slider); - corner = new ResizableCornerComponent(this, new ComponentBoundsConstrainer()); - addAndMakeVisible(corner); + setResizable(true, true); + setResizeLimits(300, 300, 1200, 1200); } LampshadeAudioProcessorEditor::~LampshadeAudioProcessorEditor() @@ -39,6 +39,7 @@ void LampshadeAudioProcessorEditor::paint(Graphics& g) } } + void LampshadeAudioProcessorEditor::resized() { // hardcoded because they should stay in the same rectangle diff --git a/Source/PluginEditor.h b/Source/PluginEditor.h index 439fbf9..fc8ef78 100644 --- a/Source/PluginEditor.h +++ b/Source/PluginEditor.h @@ -24,7 +24,7 @@ private: int lineThickness; Slider slider; - ResizableCornerComponent* corner; + JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LampshadeAudioProcessorEditor) }; diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index a8641c8..55512c3 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -106,7 +106,6 @@ void LampshadeAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffe buffer.clear(i, 0, buffer.getNumSamples()); float pitch = myYin.getPitch(buffer.getWritePointer (0)); // returns Pitch in Hertz - printf("pitch: %f", pitch); for (int channel = 0; channel < totalNumInputChannels; ++channel) { //float* channelData = buffer.getWritePointer (channel); diff --git a/test.RPP b/test.RPP index fc1dd24..a6c048d 100644 --- a/test.RPP +++ b/test.RPP @@ -1,4 +1,4 @@ -