Browse Source

Add enumeration values for waveform parameter

pull/10/head
falkTX 4 years ago
parent
commit
329829cfcc
2 changed files with 11 additions and 1 deletions
  1. +1
    -1
      dpf
  2. +10
    -0
      plugins/Nekobi/DistrhoPluginNekobi.cpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit f644f303c55966ae7f32d8eeeef9c7c4648dbdb4
Subproject commit 3bbbef19fe12ef5d68f2810510da1fae6fdd35ff

+ 10
- 0
plugins/Nekobi/DistrhoPluginNekobi.cpp View File

@@ -170,6 +170,16 @@ void DistrhoPluginNekobi::initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.def = 0.0f;
parameter.ranges.min = 0.0f;
parameter.ranges.max = 1.0f;
parameter.enumValues.count = 2;
parameter.enumValues.restrictedMode = true;
{
ParameterEnumerationValue* const enumValues = new ParameterEnumerationValue[2];
enumValues[0].value = 0.0f;
enumValues[0].label = "Square";
enumValues[1].value = 1.0f;
enumValues[1].label = "Triangle";
parameter.enumValues.values = enumValues;
}
break;
case paramTuning:
parameter.hints = kParameterIsAutomable; // was 0.5 <-> 2.0, log


Loading…
Cancel
Save