Skip to content

Instantly share code, notes, and snippets.

@atsushieno
Created November 2, 2022 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atsushieno/36b8963db9ba93b6e00a27008ae476ee to your computer and use it in GitHub Desktop.
Save atsushieno/36b8963db9ba93b6e00a27008ae476ee to your computer and use it in GitHub Desktop.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58f9aff..3d5f9b5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,7 @@ option(HERA_DESIGNER "Display the user interface design panel" OFF)
option(HERA_FORCE_DEBUG "Enable debug mode regardless of build configuration" OFF)
add_subdirectory("Thirdparty/JUCE" EXCLUDE_FROM_ALL)
+add_subdirectory("Thirdparty/clap-juce-extensions" EXCLUDE_FROM_ALL)
if(MSVC)
add_definitions(-D_USE_MATH_DEFINES)
@@ -25,7 +26,7 @@ juce_add_plugin(Hera
PLUGIN_MANUFACTURER_CODE AcEl
PRODUCT_NAME "Hera"
COMPANY_NAME "A/C Electronics"
- FORMATS AU VST3
+ FORMATS AU VST3 LV2
IS_SYNTH TRUE
NEEDS_MIDI_INPUT TRUE
NEEDS_MIDI_OUTPUT FALSE
@@ -33,6 +34,10 @@ juce_add_plugin(Hera
EDITOR_WANTS_KEYBOARD_FOCUS FALSE
COPY_PLUGIN_AFTER_BUILD FALSE)
+ clap_juce_extensions_plugin(TARGET Hera
+ CLAP_ID "dev.atsushieno.ports.juce.hera"
+ CLAP_FEATURES instrument pads)
+
target_sources(Hera
PRIVATE
"Source/Hera.h"
diff --git a/Source/PluginProcessor.h b/Source/PluginProcessor.h
index c845a38..c65cba3 100644
--- a/Source/PluginProcessor.h
+++ b/Source/PluginProcessor.h
@@ -50,9 +50,11 @@ public:
//==============================================================================
void audioProcessorParameterChanged(AudioProcessor *processor, int parameterIndex, float newValue) override;
- void audioProcessorChanged(AudioProcessor *processor) override {}
- void getCurrentProgramStateInformation(juce::MemoryBlock &destData) override;
- void setCurrentProgramStateInformation (const void* data, int sizeInBytes) override;
+ void audioProcessorChanged(AudioProcessor *processor, const ChangeDetails &details) override {}
+ void getCurrentProgramStateInformation(juce::MemoryBlock &destData) override;
+
+ void setCurrentProgramStateInformation (const void* data, int sizeInBytes) override;
+
//==============================================================================
void flushCurrentProgramToParameters();
diff --git a/Thirdparty/JUCE b/Thirdparty/JUCE
index 7c797c8..965d0ca 160000
--- a/Thirdparty/JUCE
+++ b/Thirdparty/JUCE
@@ -1 +1 @@
-Subproject commit 7c797c8105c2d41872e6e8d08972624f0afd335d
+Subproject commit 965d0ca4be178c4a0000b116d460e15c30311992
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment