From 49a6f847ee06078fb9d6734d8e5b89b97d50ca75 Mon Sep 17 00:00:00 2001 From: Jeff-Russ Date: Sun, 22 Feb 2015 20:08:45 -0500 Subject: [PATCH] Started over with an empty Introjucer template and it finally built the AU!! --- JuceOPL.jucer | 137 --------------- Source/PluginGui.cpp | 12 +- Source/PluginGui.h | 386 +++++++++++++++++++++---------------------- _RELEASES/README.txt | 1 - 4 files changed, 199 insertions(+), 337 deletions(-) delete mode 100644 JuceOPL.jucer delete mode 100644 _RELEASES/README.txt diff --git a/JuceOPL.jucer b/JuceOPL.jucer deleted file mode 100644 index 59d59b6..0000000 --- a/JuceOPL.jucer +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Source/PluginGui.cpp b/Source/PluginGui.cpp index 52158ec..3fa1370 100644 --- a/Source/PluginGui.cpp +++ b/Source/PluginGui.cpp @@ -7,7 +7,7 @@ the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded and re-saved. - Created with Introjucer version: 3.1.0 + Created with Introjucer version: 3.1.1 ------------------------------------------------------------------------------ @@ -28,10 +28,10 @@ void PluginGui::updateFromParameters() { emulatorSlider->setValue(processor->getEnumParameter("Emulator"), juce::NotificationType::dontSendNotification); setRecordButtonState(processor->isThisInstanceRecording()); - + /// setToggleState(bool, bool) is deprecated. /// Jeff-Russ replaced the second arg of "false" with dontSendNotification: - + sineImageButton->setToggleState(false, dontSendNotification); halfsineImageButton->setToggleState(false, dontSendNotification); abssineImageButton->setToggleState(false, dontSendNotification); @@ -69,10 +69,10 @@ void PluginGui::updateFromParameters() case 6: squareImageButton2->setToggleState(true, dontSendNotification); break; case 7: logsawImageButton2->setToggleState(true, dontSendNotification); break; } - + /// setSelectedItemIndex(bool, bool) is deprecated. /// Jeff-Russ replaced the second arg of "true" with "sendNotificationAsync": - + frequencyComboBox->setSelectedItemIndex ( processor->getEnumParameter("Modulator Frequency Multiplier"), sendNotificationAsync); @@ -91,7 +91,7 @@ void PluginGui::updateFromParameters() dSlider2->setValue(processor->getIntParameter("Carrier Decay"), juce::NotificationType::dontSendNotification); sSlider2->setValue(processor->getIntParameter("Carrier Sustain Level"), juce::NotificationType::dontSendNotification); rSlider2->setValue(processor->getIntParameter("Carrier Release"), juce::NotificationType::dontSendNotification); - + /// Jeff-Russ replaced the second arg of "true" with "sendNotificationAsync": keyscaleAttenuationComboBox->setSelectedItemIndex ( diff --git a/Source/PluginGui.h b/Source/PluginGui.h index 8d19093..2dee55a 100644 --- a/Source/PluginGui.h +++ b/Source/PluginGui.h @@ -1,193 +1,193 @@ -/* - ============================================================================== - - This is an automatically generated GUI class created by the Introjucer! - - Be careful when adding custom code to these files, as only the code within - the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded - and re-saved. - - Created with Introjucer version: 3.1.0 - - ------------------------------------------------------------------------------ - - The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions" - Copyright 2004-13 by Raw Material Software Ltd. - - ============================================================================== -*/ - -#ifndef __JUCE_HEADER_450C07F5C14097B8__ -#define __JUCE_HEADER_450C07F5C14097B8__ - -//[Headers] -- You can add your own extra header files here -- -#include -#include "JuceHeader.h" -#include "PluginProcessor.h" -//[/Headers] - - - -//============================================================================== -/** - //[Comments] - This is a GUI for the OPL2 VST plugin, created in Juce. - //[/Comments] -*/ -class PluginGui : public AudioProcessorEditor, - public FileDragAndDropTarget, - public DragAndDropContainer, - public Timer, - public ComboBoxListener, - public SliderListener, - public ButtonListener -{ -public: - //============================================================================== - PluginGui (JuceOplvstiAudioProcessor* ownerFilter); - ~PluginGui(); - - //============================================================================== - //[UserMethods] -- You can add your own custom methods in this section. - void updateFromParameters(); - bool isInterestedInFileDrag (const StringArray& files); - void fileDragEnter (const StringArray& files, int x, int y); - void fileDragMove (const StringArray& files, int x, int y); - void fileDragExit (const StringArray& files); - void filesDropped (const StringArray& files, int x, int y); - void timerCallback(); - void setRecordButtonState(bool recording); - //[/UserMethods] - - void paint (Graphics& g); - void resized(); - void comboBoxChanged (ComboBox* comboBoxThatHasChanged); - void sliderValueChanged (Slider* sliderThatWasMoved); - void buttonClicked (Button* buttonThatWasClicked); - - // Binary resources: - static const char* full_sine_png; - static const int full_sine_pngSize; - static const char* half_sine_png; - static const int half_sine_pngSize; - static const char* abs_sine_png; - static const int abs_sine_pngSize; - static const char* quarter_sine_png; - static const int quarter_sine_pngSize; - static const char* camel_sine_png; - static const int camel_sine_pngSize; - static const char* alternating_sine_png; - static const int alternating_sine_pngSize; - static const char* square_png; - static const int square_pngSize; - static const char* logarithmic_saw_png; - static const int logarithmic_saw_pngSize; - static const char* channeloff_png; - static const int channeloff_pngSize; - static const char* channelon_png; - static const int channelon_pngSize; - - -private: - //[UserVariables] -- You can add your own custom variables in this section. - static const uint32 COLOUR_MID = 0xff007f00; - static const uint32 COLOUR_RECORDING = 0xffff0000; - JuceOplvstiAudioProcessor* processor; - std::array, Hiopl::CHANNELS> channels; - TooltipWindow tooltipWindow; - //[/UserVariables] - - //============================================================================== - ScopedPointer groupComponent; - ScopedPointer frequencyComboBox; - ScopedPointer