Melatonin Blur is a JUCE Module.

If you are new to JUCE modules, don’t be scared! They are easy to set up.

Option 1: As a git submodule

This will add a git submodule tracking main and stick it in the modules folder of your project:

git submodule add -b main https://github.com/sudara/melatonin_blur.git modules/melatonin_blur

It won’t automatically update. To update down the road:

git submodule update --remote --merge modules/melatonin_blur

Option 2: via FetchContent

Include(FetchContent)
FetchContent_Declare(melatonin_blur
    GIT_REPOSITORY https://github.com/sudara/melatonin_blur.git
    GIT_TAG origin/main
    SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/melatonin_blur)
FetchContent_MakeAvailable(melatonin_blur)

This will update the module to latest main on every compile. Specify a commit if you prefer otherwise.

Tell CMake about the module

Add the JUCE module before your juce_add_plugin call in CMakeLists.txt:

juce_add_module("modules/melatonin_blur")

Link to the blur after the juce_add_plugin call:

target_link_libraries("YourProject" PRIVATE melatonin_blur)

If using Pamplejuce, you can just add melatonin_blur in the target_link_libraries(SharedCode) section.


Leave a Reply

Your email address will not be published. Required fields are marked *