From cddbdb940f12c10696ccebf3f98bb9bc2fb4be11 Mon Sep 17 00:00:00 2001 From: hellerve Date: Mon, 19 Jun 2017 17:04:24 -0400 Subject: [PATCH] all: removed all superfluous comments --- Source/PluginEditor.cpp | 13 ------------- Source/PluginEditor.h | 16 ---------------- Source/PluginProcessor.cpp | 19 ++----------------- Source/PluginProcessor.h | 20 -------------------- 4 files changed, 2 insertions(+), 66 deletions(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 5b68828..c4d648b 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -1,19 +1,8 @@ -/* - ============================================================================== - - This file was auto-generated! - - It contains the basic framework code for a JUCE plugin editor. - - ============================================================================== -*/ - #include "PluginProcessor.h" #include "PluginEditor.h" -//============================================================================== LampshadeAudioProcessorEditor::LampshadeAudioProcessorEditor (LampshadeAudioProcessor& p) : AudioProcessorEditor (&p), processor (p), nlines (3), lineThickness(4) { @@ -27,10 +16,8 @@ LampshadeAudioProcessorEditor::~LampshadeAudioProcessorEditor() { } -//============================================================================== void LampshadeAudioProcessorEditor::paint (Graphics& g) { - // (Our component is opaque, so we must completely fill the background with a solid colour) g.fillAll(Colours::white); for (int i = 1; i < nlines; i++) { diff --git a/Source/PluginEditor.h b/Source/PluginEditor.h index 11c01d6..4a45d6a 100644 --- a/Source/PluginEditor.h +++ b/Source/PluginEditor.h @@ -1,13 +1,3 @@ -/* - ============================================================================== - - This file was auto-generated! - - It contains the basic framework code for a JUCE plugin editor. - - ============================================================================== -*/ - #pragma once #include "../JuceLibraryCode/JuceHeader.h" @@ -15,22 +5,16 @@ #include "LookAndFeel.h" -//============================================================================== -/** -*/ class LampshadeAudioProcessorEditor : public AudioProcessorEditor { public: LampshadeAudioProcessorEditor (LampshadeAudioProcessor&); ~LampshadeAudioProcessorEditor(); - //============================================================================== void paint (Graphics&) override; void resized() override; private: - // This reference is provided as a quick way for your editor to - // access the processor object that created it. LampshadeAudioProcessor& processor; LampshadeLookAndFeel* gui = new LampshadeLookAndFeel(); int nlines; diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 16fee5a..7aecfac 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -78,13 +78,10 @@ void LampshadeAudioProcessor::releaseResources() #ifndef JucePlugin_PreferredChannelConfigurations bool LampshadeAudioProcessor::isBusesLayoutSupported (const BusesLayout& layouts) const { - // This is the place where you check if the layout is supported. - // In this template code we only support mono or stereo. if (layouts.getMainOutputChannelSet() != AudioChannelSet::mono() && layouts.getMainOutputChannelSet() != AudioChannelSet::stereo()) return false; - // This checks if the input layout matches the output layout #if ! JucePlugin_IsSynth if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet()) return false; @@ -106,15 +103,10 @@ void LampshadeAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffe // when they first compile a plugin, but obviously you don't need to keep // this code if your algorithm always overwrites all the output channels. for (int i = totalNumInputChannels; i < totalNumOutputChannels; ++i) - buffer.clear (i, 0, buffer.getNumSamples()); + buffer.clear(i, 0, buffer.getNumSamples()); - // This is the place where you'd normally do the guts of your plugin's - // audio processing... - for (int channel = 0; channel < totalNumInputChannels; ++channel) - { + for (int channel = 0; channel < totalNumInputChannels; ++channel) { //float* channelData = buffer.getWritePointer (channel); - - // ..do something to the data... } } @@ -130,19 +122,12 @@ AudioProcessorEditor* LampshadeAudioProcessor::createEditor() void LampshadeAudioProcessor::getStateInformation (MemoryBlock& destData) { - // You should use this method to store your parameters in the memory block. - // You could do that either as raw data, or use the XML or ValueTree classes - // as intermediaries to make it easy to save and load complex data. } void LampshadeAudioProcessor::setStateInformation (const void* data, int sizeInBytes) { - // You should use this method to restore your parameters from this memory block, - // whose contents will have been created by the getStateInformation() call. } -//============================================================================== -// This creates new instances of the plugin.. AudioProcessor* JUCE_CALLTYPE createPluginFilter() { return new LampshadeAudioProcessor(); diff --git a/Source/PluginProcessor.h b/Source/PluginProcessor.h index 4e181dc..441be0f 100644 --- a/Source/PluginProcessor.h +++ b/Source/PluginProcessor.h @@ -1,29 +1,14 @@ -/* - ============================================================================== - - This file was auto-generated! - - It contains the basic framework code for a JUCE plugin processor. - - ============================================================================== -*/ - #pragma once #include "../JuceLibraryCode/JuceHeader.h" -//============================================================================== -/** -*/ class LampshadeAudioProcessor : public AudioProcessor { public: - //============================================================================== LampshadeAudioProcessor(); ~LampshadeAudioProcessor(); - //============================================================================== void prepareToPlay (double sampleRate, int samplesPerBlock) override; void releaseResources() override; @@ -33,29 +18,24 @@ public: void processBlock (AudioSampleBuffer&, MidiBuffer&) override; - //============================================================================== AudioProcessorEditor* createEditor() override; bool hasEditor() const override; - //============================================================================== const String getName() const override; bool acceptsMidi() const override; bool producesMidi() const override; double getTailLengthSeconds() const override; - //============================================================================== int getNumPrograms() override; int getCurrentProgram() override; void setCurrentProgram (int index) override; const String getProgramName (int index) override; void changeProgramName (int index, const String& newName) override; - //============================================================================== void getStateInformation (MemoryBlock& destData) override; void setStateInformation (const void* data, int sizeInBytes) override; private: - //============================================================================== JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LampshadeAudioProcessor) };