Sidebars, GUI layouts, black buttons again, input knob for compressor

(cherry picked from commit bc4c38524486f1e29985f32e0cc42e0907e85a23)
This commit is contained in:
Markus Schmidt
2009-10-17 09:07:33 +02:00
committed by Tobias Doerffel
parent 5f8962d5f2
commit 825e9394d7
3 changed files with 4 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ struct monosynth_metadata: public plugin_metadata<monosynth_metadata>
struct compressor_metadata: public plugin_metadata<compressor_metadata>
{
enum { in_count = 2, out_count = 2, support_midi = false, require_midi = false, rt_capable = true };
enum { param_threshold, param_ratio, param_attack, param_release, param_makeup, param_knee, param_detection, param_stereo_link, param_aweighting, param_compression, param_peak, param_clip, param_bypass, // param_freq, param_bw,
enum { param_threshold, param_ratio, param_attack, param_release, param_makeup, param_knee, param_detection, param_stereo_link, param_aweighting, param_compression, param_peak, param_clip, param_bypass, param_input,// param_freq, param_bw,
param_count };
PLUGIN_NAME_ID_LABEL("compressor", "compressor", "Compressor")
};

View File

@@ -226,6 +226,7 @@ CALF_PORT_PROPS(compressor) = {
{ 0, 0, 1, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_METER | PF_CTLO_LABEL | PF_UNIT_DB | PF_PROP_OUTPUT | PF_PROP_OPTIONAL, NULL, "peak", "Peak Output" },
{ 0, 0, 1, 0, PF_FLOAT | PF_CTL_LED | PF_PROP_OUTPUT | PF_PROP_OPTIONAL, NULL, "clip", "0dB" },
{ 0, 0, 1, 0, PF_BOOL | PF_CTL_TOGGLE, NULL, "bypass", "Bypass" },
{ 1, 0, 64, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_COEF | PF_PROP_NOBOUNDS, NULL, "input", "Input" },
// { 2000, 10,20000, 0, PF_FLOAT | PF_SCALE_LOG | PF_CTL_KNOB | PF_UNIT_HZ | PF_PROP_GRAPH, NULL, "deess_freq", "Frequency" },
// { 0.707, 0.707, 32, 0, PF_FLOAT | PF_SCALE_GAIN | PF_CTL_KNOB | PF_UNIT_COEF, NULL, "deess_res", "Q" },
};

View File

@@ -580,8 +580,8 @@ uint32_t compressor_audio_module::process(uint32_t offset, uint32_t numsamples,
clip -= std::min(clip, numsamples);
while(offset < numsamples) {
float left = ins[0][offset];
float right = ins[1][offset];
float left = ins[0][offset] * *params[param_input];
float right = ins[1][offset] * *params[param_input];
if(aweighting == 1) {
left = awL.process(left);