Browse Source

Update DPF

pull/5/head
falkTX 8 years ago
parent
commit
5bd920f121
4 changed files with 16 additions and 23 deletions
  1. +1
    -1
      dpf
  2. +12
    -9
      plugins/Nekobi/DistrhoPluginNekobi.cpp
  3. +3
    -0
      plugins/Nekobi/DistrhoUINekobi.cpp
  4. +0
    -13
      plugins/Nekobi/DistrhoUINekobi.hpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit dc9b23badba6b2c0f3f1143c96df352da2209f98
Subproject commit 03ddba518eebedc08710123e3e3a83b18662da15

+ 12
- 9
plugins/Nekobi/DistrhoPluginNekobi.cpp View File

@@ -168,7 +168,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
switch (index)
{
case paramWaveform:
parameter.hints = PARAMETER_IS_AUTOMABLE|PARAMETER_IS_BOOLEAN;
parameter.hints = kParameterIsAutomable|kParameterIsBoolean;
parameter.name = "Waveform";
parameter.symbol = "waveform";
parameter.ranges.def = 0.0f;
@@ -176,7 +176,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 1.0f;
break;
case paramTuning:
parameter.hints = PARAMETER_IS_AUTOMABLE; // was 0.5 <-> 2.0, log
parameter.hints = kParameterIsAutomable; // was 0.5 <-> 2.0, log
parameter.name = "Tuning";
parameter.symbol = "tuning";
parameter.ranges.def = 0.0f;
@@ -184,7 +184,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 12.0f;
break;
case paramCutoff:
parameter.hints = PARAMETER_IS_AUTOMABLE; // modified x2.5
parameter.hints = kParameterIsAutomable; // modified x2.5
parameter.name = "Cutoff";
parameter.symbol = "cutoff";
parameter.unit = "%";
@@ -193,7 +193,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 100.0f;
break;
case paramResonance:
parameter.hints = PARAMETER_IS_AUTOMABLE; // modified x100
parameter.hints = kParameterIsAutomable; // modified x100
parameter.name = "VCF Resonance";
parameter.symbol = "resonance";
parameter.unit = "%";
@@ -202,7 +202,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 95.0f;
break;
case paramEnvMod:
parameter.hints = PARAMETER_IS_AUTOMABLE; // modified x100
parameter.hints = kParameterIsAutomable; // modified x100
parameter.name = "Env Mod";
parameter.symbol = "env_mod";
parameter.unit = "%";
@@ -211,7 +211,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 100.0f;
break;
case paramDecay:
parameter.hints = PARAMETER_IS_AUTOMABLE; // was 0.000009 <-> 0.0005, log
parameter.hints = kParameterIsAutomable; // was 0.000009 <-> 0.0005, log
parameter.name = "Decay";
parameter.symbol = "decay";
parameter.unit = "%";
@@ -220,7 +220,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 100.0f;
break;
case paramAccent:
parameter.hints = PARAMETER_IS_AUTOMABLE; // modified x100
parameter.hints = kParameterIsAutomable; // modified x100
parameter.name = "Accent";
parameter.symbol = "accent";
parameter.unit = "%";
@@ -229,7 +229,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 100.0f;
break;
case paramVolume:
parameter.hints = PARAMETER_IS_AUTOMABLE; // modified x100
parameter.hints = kParameterIsAutomable; // modified x100
parameter.name = "Volume";
parameter.symbol = "volume";
parameter.unit = "%";
@@ -355,7 +355,10 @@ void DistrhoPluginNekobi::d_run(const float**, float** outputs, uint32_t frames,
/* process any ready events */
while (curEventIndex < midiEventCount && framesDone == midiEvents[curEventIndex].frame)
{
nekobee_handle_raw_event(&fSynth, midiEvents[curEventIndex].size, midiEvents[curEventIndex].buf);
if (midiEvents[curEventIndex].size > MidiEvent::kDataSize)
continue;
nekobee_handle_raw_event(&fSynth, midiEvents[curEventIndex].size, midiEvents[curEventIndex].data);
curEventIndex++;
}


+ 3
- 0
plugins/Nekobi/DistrhoUINekobi.cpp View File

@@ -29,6 +29,9 @@ DistrhoUINekobi::DistrhoUINekobi()
// FIXME
fNeko.setTimerSpeed(5);

// set UI size
setSize(DistrhoArtworkNekobi::backgroundWidth, DistrhoArtworkNekobi::backgroundHeight);

// background
fImgBackground = Image(DistrhoArtworkNekobi::backgroundData, DistrhoArtworkNekobi::backgroundWidth, DistrhoArtworkNekobi::backgroundHeight, GL_BGR);



+ 0
- 13
plugins/Nekobi/DistrhoUINekobi.hpp View File

@@ -46,19 +46,6 @@ public:
DistrhoUINekobi();

protected:
// -------------------------------------------------------------------
// Information

uint d_getWidth() const noexcept override
{
return DistrhoArtworkNekobi::backgroundWidth;
}

uint d_getHeight() const noexcept override
{
return DistrhoArtworkNekobi::backgroundHeight;
}

// -------------------------------------------------------------------
// DSP Callbacks



Loading…
Cancel
Save