all: removed all superfluous comments
This commit is contained in:
@@ -1,19 +1,8 @@
|
|||||||
/*
|
|
||||||
==============================================================================
|
|
||||||
|
|
||||||
This file was auto-generated!
|
|
||||||
|
|
||||||
It contains the basic framework code for a JUCE plugin editor.
|
|
||||||
|
|
||||||
==============================================================================
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "PluginProcessor.h"
|
#include "PluginProcessor.h"
|
||||||
#include "PluginEditor.h"
|
#include "PluginEditor.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//==============================================================================
|
|
||||||
LampshadeAudioProcessorEditor::LampshadeAudioProcessorEditor (LampshadeAudioProcessor& p)
|
LampshadeAudioProcessorEditor::LampshadeAudioProcessorEditor (LampshadeAudioProcessor& p)
|
||||||
: AudioProcessorEditor (&p), processor (p), nlines (3), lineThickness(4)
|
: AudioProcessorEditor (&p), processor (p), nlines (3), lineThickness(4)
|
||||||
{
|
{
|
||||||
@@ -27,10 +16,8 @@ LampshadeAudioProcessorEditor::~LampshadeAudioProcessorEditor()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
//==============================================================================
|
|
||||||
void LampshadeAudioProcessorEditor::paint (Graphics& g)
|
void LampshadeAudioProcessorEditor::paint (Graphics& g)
|
||||||
{
|
{
|
||||||
// (Our component is opaque, so we must completely fill the background with a solid colour)
|
|
||||||
g.fillAll(Colours::white);
|
g.fillAll(Colours::white);
|
||||||
|
|
||||||
for (int i = 1; i < nlines; i++) {
|
for (int i = 1; i < nlines; i++) {
|
||||||
|
@@ -1,13 +1,3 @@
|
|||||||
/*
|
|
||||||
==============================================================================
|
|
||||||
|
|
||||||
This file was auto-generated!
|
|
||||||
|
|
||||||
It contains the basic framework code for a JUCE plugin editor.
|
|
||||||
|
|
||||||
==============================================================================
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include "../JuceLibraryCode/JuceHeader.h"
|
||||||
@@ -15,22 +5,16 @@
|
|||||||
#include "LookAndFeel.h"
|
#include "LookAndFeel.h"
|
||||||
|
|
||||||
|
|
||||||
//==============================================================================
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
class LampshadeAudioProcessorEditor : public AudioProcessorEditor
|
class LampshadeAudioProcessorEditor : public AudioProcessorEditor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LampshadeAudioProcessorEditor (LampshadeAudioProcessor&);
|
LampshadeAudioProcessorEditor (LampshadeAudioProcessor&);
|
||||||
~LampshadeAudioProcessorEditor();
|
~LampshadeAudioProcessorEditor();
|
||||||
|
|
||||||
//==============================================================================
|
|
||||||
void paint (Graphics&) override;
|
void paint (Graphics&) override;
|
||||||
void resized() override;
|
void resized() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// This reference is provided as a quick way for your editor to
|
|
||||||
// access the processor object that created it.
|
|
||||||
LampshadeAudioProcessor& processor;
|
LampshadeAudioProcessor& processor;
|
||||||
LampshadeLookAndFeel* gui = new LampshadeLookAndFeel();
|
LampshadeLookAndFeel* gui = new LampshadeLookAndFeel();
|
||||||
int nlines;
|
int nlines;
|
||||||
|
@@ -78,13 +78,10 @@ void LampshadeAudioProcessor::releaseResources()
|
|||||||
#ifndef JucePlugin_PreferredChannelConfigurations
|
#ifndef JucePlugin_PreferredChannelConfigurations
|
||||||
bool LampshadeAudioProcessor::isBusesLayoutSupported (const BusesLayout& layouts) const
|
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()
|
if (layouts.getMainOutputChannelSet() != AudioChannelSet::mono()
|
||||||
&& layouts.getMainOutputChannelSet() != AudioChannelSet::stereo())
|
&& layouts.getMainOutputChannelSet() != AudioChannelSet::stereo())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// This checks if the input layout matches the output layout
|
|
||||||
#if ! JucePlugin_IsSynth
|
#if ! JucePlugin_IsSynth
|
||||||
if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())
|
if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())
|
||||||
return false;
|
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
|
// 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.
|
// this code if your algorithm always overwrites all the output channels.
|
||||||
for (int i = totalNumInputChannels; i < totalNumOutputChannels; ++i)
|
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
|
for (int channel = 0; channel < totalNumInputChannels; ++channel) {
|
||||||
// audio processing...
|
|
||||||
for (int channel = 0; channel < totalNumInputChannels; ++channel)
|
|
||||||
{
|
|
||||||
//float* channelData = buffer.getWritePointer (channel);
|
//float* channelData = buffer.getWritePointer (channel);
|
||||||
|
|
||||||
// ..do something to the data...
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,19 +122,12 @@ AudioProcessorEditor* LampshadeAudioProcessor::createEditor()
|
|||||||
|
|
||||||
void LampshadeAudioProcessor::getStateInformation (MemoryBlock& destData)
|
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)
|
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()
|
AudioProcessor* JUCE_CALLTYPE createPluginFilter()
|
||||||
{
|
{
|
||||||
return new LampshadeAudioProcessor();
|
return new LampshadeAudioProcessor();
|
||||||
|
@@ -1,29 +1,14 @@
|
|||||||
/*
|
|
||||||
==============================================================================
|
|
||||||
|
|
||||||
This file was auto-generated!
|
|
||||||
|
|
||||||
It contains the basic framework code for a JUCE plugin processor.
|
|
||||||
|
|
||||||
==============================================================================
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../JuceLibraryCode/JuceHeader.h"
|
#include "../JuceLibraryCode/JuceHeader.h"
|
||||||
|
|
||||||
|
|
||||||
//==============================================================================
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
class LampshadeAudioProcessor : public AudioProcessor
|
class LampshadeAudioProcessor : public AudioProcessor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//==============================================================================
|
|
||||||
LampshadeAudioProcessor();
|
LampshadeAudioProcessor();
|
||||||
~LampshadeAudioProcessor();
|
~LampshadeAudioProcessor();
|
||||||
|
|
||||||
//==============================================================================
|
|
||||||
void prepareToPlay (double sampleRate, int samplesPerBlock) override;
|
void prepareToPlay (double sampleRate, int samplesPerBlock) override;
|
||||||
void releaseResources() override;
|
void releaseResources() override;
|
||||||
|
|
||||||
@@ -33,29 +18,24 @@ public:
|
|||||||
|
|
||||||
void processBlock (AudioSampleBuffer&, MidiBuffer&) override;
|
void processBlock (AudioSampleBuffer&, MidiBuffer&) override;
|
||||||
|
|
||||||
//==============================================================================
|
|
||||||
AudioProcessorEditor* createEditor() override;
|
AudioProcessorEditor* createEditor() override;
|
||||||
bool hasEditor() const override;
|
bool hasEditor() const override;
|
||||||
|
|
||||||
//==============================================================================
|
|
||||||
const String getName() const override;
|
const String getName() const override;
|
||||||
|
|
||||||
bool acceptsMidi() const override;
|
bool acceptsMidi() const override;
|
||||||
bool producesMidi() const override;
|
bool producesMidi() const override;
|
||||||
double getTailLengthSeconds() const override;
|
double getTailLengthSeconds() const override;
|
||||||
|
|
||||||
//==============================================================================
|
|
||||||
int getNumPrograms() override;
|
int getNumPrograms() override;
|
||||||
int getCurrentProgram() override;
|
int getCurrentProgram() override;
|
||||||
void setCurrentProgram (int index) override;
|
void setCurrentProgram (int index) override;
|
||||||
const String getProgramName (int index) override;
|
const String getProgramName (int index) override;
|
||||||
void changeProgramName (int index, const String& newName) override;
|
void changeProgramName (int index, const String& newName) override;
|
||||||
|
|
||||||
//==============================================================================
|
|
||||||
void getStateInformation (MemoryBlock& destData) override;
|
void getStateInformation (MemoryBlock& destData) override;
|
||||||
void setStateInformation (const void* data, int sizeInBytes) override;
|
void setStateInformation (const void* data, int sizeInBytes) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//==============================================================================
|
|
||||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LampshadeAudioProcessor)
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LampshadeAudioProcessor)
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user