modules: added wrDsp

This commit is contained in:
2017-06-26 23:36:09 -04:00
parent 4681319591
commit 0bc21ce2ac
6 changed files with 10 additions and 6 deletions

View File

@@ -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

View File

@@ -24,7 +24,7 @@ private:
int lineThickness;
Slider slider;
ResizableCornerComponent* corner;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LampshadeAudioProcessorEditor)
};

View File

@@ -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);