Skip to content

Commit

Permalink
Introduce kParameterIsHidden flag, implement it for LV2
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jan 4, 2023
1 parent 03a7dbf commit 54e1fb8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions distrho/DistrhoPlugin.hpp
Expand Up @@ -139,6 +139,13 @@ static const uint32_t kParameterIsOutput = 0x10;
*/
static const uint32_t kParameterIsTrigger = 0x20 | kParameterIsBoolean;

/**
Parameter should be hidden from the host and user-visible GUIs.@n
It is still saved and handled as any regular parameter, just not visible to the user
(for example in a host generated GUI)
*/
static const uint32_t kParameterIsHidden = 0x40;

/** @} */

/* ------------------------------------------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions distrho/src/DistrhoPluginLV2export.cpp
Expand Up @@ -939,6 +939,8 @@ void lv2_generate_ttl(const char* const basename)
pluginString += " lv2:portProperty lv2:integer ;\n";
if (hints & kParameterIsLogarithmic)
pluginString += " lv2:portProperty <" LV2_PORT_PROPS__logarithmic "> ;\n";
if (hints & kParameterIsHidden)
pluginString += " lv2:portProperty <" LV2_PORT_PROPS__notOnGUI "> ;\n";
if ((hints & kParameterIsAutomatable) == 0 && plugin.isParameterInput(i))
{
pluginString += " lv2:portProperty <" LV2_PORT_PROPS__expensive "> ,\n";
Expand Down

0 comments on commit 54e1fb8

Please sign in to comment.