Update DPF
This commit is contained in:
parent
706773aa70
commit
5bd920f121
2
dpf
2
dpf
|
@ -1 +1 @@
|
||||||
Subproject commit dc9b23badba6b2c0f3f1143c96df352da2209f98
|
Subproject commit 03ddba518eebedc08710123e3e3a83b18662da15
|
|
@ -168,7 +168,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
|
||||||
switch (index)
|
switch (index)
|
||||||
{
|
{
|
||||||
case paramWaveform:
|
case paramWaveform:
|
||||||
parameter.hints = PARAMETER_IS_AUTOMABLE|PARAMETER_IS_BOOLEAN;
|
parameter.hints = kParameterIsAutomable|kParameterIsBoolean;
|
||||||
parameter.name = "Waveform";
|
parameter.name = "Waveform";
|
||||||
parameter.symbol = "waveform";
|
parameter.symbol = "waveform";
|
||||||
parameter.ranges.def = 0.0f;
|
parameter.ranges.def = 0.0f;
|
||||||
|
@ -176,7 +176,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
|
||||||
parameter.ranges.max = 1.0f;
|
parameter.ranges.max = 1.0f;
|
||||||
break;
|
break;
|
||||||
case paramTuning:
|
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.name = "Tuning";
|
||||||
parameter.symbol = "tuning";
|
parameter.symbol = "tuning";
|
||||||
parameter.ranges.def = 0.0f;
|
parameter.ranges.def = 0.0f;
|
||||||
|
@ -184,7 +184,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
|
||||||
parameter.ranges.max = 12.0f;
|
parameter.ranges.max = 12.0f;
|
||||||
break;
|
break;
|
||||||
case paramCutoff:
|
case paramCutoff:
|
||||||
parameter.hints = PARAMETER_IS_AUTOMABLE; // modified x2.5
|
parameter.hints = kParameterIsAutomable; // modified x2.5
|
||||||
parameter.name = "Cutoff";
|
parameter.name = "Cutoff";
|
||||||
parameter.symbol = "cutoff";
|
parameter.symbol = "cutoff";
|
||||||
parameter.unit = "%";
|
parameter.unit = "%";
|
||||||
|
@ -193,7 +193,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
|
||||||
parameter.ranges.max = 100.0f;
|
parameter.ranges.max = 100.0f;
|
||||||
break;
|
break;
|
||||||
case paramResonance:
|
case paramResonance:
|
||||||
parameter.hints = PARAMETER_IS_AUTOMABLE; // modified x100
|
parameter.hints = kParameterIsAutomable; // modified x100
|
||||||
parameter.name = "VCF Resonance";
|
parameter.name = "VCF Resonance";
|
||||||
parameter.symbol = "resonance";
|
parameter.symbol = "resonance";
|
||||||
parameter.unit = "%";
|
parameter.unit = "%";
|
||||||
|
@ -202,7 +202,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
|
||||||
parameter.ranges.max = 95.0f;
|
parameter.ranges.max = 95.0f;
|
||||||
break;
|
break;
|
||||||
case paramEnvMod:
|
case paramEnvMod:
|
||||||
parameter.hints = PARAMETER_IS_AUTOMABLE; // modified x100
|
parameter.hints = kParameterIsAutomable; // modified x100
|
||||||
parameter.name = "Env Mod";
|
parameter.name = "Env Mod";
|
||||||
parameter.symbol = "env_mod";
|
parameter.symbol = "env_mod";
|
||||||
parameter.unit = "%";
|
parameter.unit = "%";
|
||||||
|
@ -211,7 +211,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
|
||||||
parameter.ranges.max = 100.0f;
|
parameter.ranges.max = 100.0f;
|
||||||
break;
|
break;
|
||||||
case paramDecay:
|
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.name = "Decay";
|
||||||
parameter.symbol = "decay";
|
parameter.symbol = "decay";
|
||||||
parameter.unit = "%";
|
parameter.unit = "%";
|
||||||
|
@ -220,7 +220,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
|
||||||
parameter.ranges.max = 100.0f;
|
parameter.ranges.max = 100.0f;
|
||||||
break;
|
break;
|
||||||
case paramAccent:
|
case paramAccent:
|
||||||
parameter.hints = PARAMETER_IS_AUTOMABLE; // modified x100
|
parameter.hints = kParameterIsAutomable; // modified x100
|
||||||
parameter.name = "Accent";
|
parameter.name = "Accent";
|
||||||
parameter.symbol = "accent";
|
parameter.symbol = "accent";
|
||||||
parameter.unit = "%";
|
parameter.unit = "%";
|
||||||
|
@ -229,7 +229,7 @@ void DistrhoPluginNekobi::d_initParameter(uint32_t index, Parameter& parameter)
|
||||||
parameter.ranges.max = 100.0f;
|
parameter.ranges.max = 100.0f;
|
||||||
break;
|
break;
|
||||||
case paramVolume:
|
case paramVolume:
|
||||||
parameter.hints = PARAMETER_IS_AUTOMABLE; // modified x100
|
parameter.hints = kParameterIsAutomable; // modified x100
|
||||||
parameter.name = "Volume";
|
parameter.name = "Volume";
|
||||||
parameter.symbol = "volume";
|
parameter.symbol = "volume";
|
||||||
parameter.unit = "%";
|
parameter.unit = "%";
|
||||||
|
@ -355,7 +355,10 @@ void DistrhoPluginNekobi::d_run(const float**, float** outputs, uint32_t frames,
|
||||||
/* process any ready events */
|
/* process any ready events */
|
||||||
while (curEventIndex < midiEventCount && framesDone == midiEvents[curEventIndex].frame)
|
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++;
|
curEventIndex++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,9 @@ DistrhoUINekobi::DistrhoUINekobi()
|
||||||
// FIXME
|
// FIXME
|
||||||
fNeko.setTimerSpeed(5);
|
fNeko.setTimerSpeed(5);
|
||||||
|
|
||||||
|
// set UI size
|
||||||
|
setSize(DistrhoArtworkNekobi::backgroundWidth, DistrhoArtworkNekobi::backgroundHeight);
|
||||||
|
|
||||||
// background
|
// background
|
||||||
fImgBackground = Image(DistrhoArtworkNekobi::backgroundData, DistrhoArtworkNekobi::backgroundWidth, DistrhoArtworkNekobi::backgroundHeight, GL_BGR);
|
fImgBackground = Image(DistrhoArtworkNekobi::backgroundData, DistrhoArtworkNekobi::backgroundWidth, DistrhoArtworkNekobi::backgroundHeight, GL_BGR);
|
||||||
|
|
||||||
|
|
|
@ -46,19 +46,6 @@ public:
|
||||||
DistrhoUINekobi();
|
DistrhoUINekobi();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// -------------------------------------------------------------------
|
|
||||||
// Information
|
|
||||||
|
|
||||||
uint d_getWidth() const noexcept override
|
|
||||||
{
|
|
||||||
return DistrhoArtworkNekobi::backgroundWidth;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint d_getHeight() const noexcept override
|
|
||||||
{
|
|
||||||
return DistrhoArtworkNekobi::backgroundHeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
// DSP Callbacks
|
// DSP Callbacks
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue