Browse Source

add more plugin metadata

audio_region_bpm_change_fix
Alexandros Theodotou 7 months ago
parent
commit
8404219e88
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 4
      data/plugins/compressor.dsp.in
  2. 4
      data/plugins/cubic_distortion.dsp.in
  3. 6
      data/plugins/gate_stereo.dsp.in
  4. 1
      data/plugins/generated/compressor.lv2/compressor.cpp
  5. 1
      data/plugins/generated/compressor.lv2/compressor.ttl
  6. 3
      data/plugins/generated/gate_stereo.lv2/gate_stereo.cpp
  7. 18
      data/plugins/generated/gate_stereo.lv2/gate_stereo.ttl
  8. 6
      data/plugins/generated/parametric_eq.lv2/parametric_eq.cpp
  9. 10
      data/plugins/generated/parametric_eq.lv2/parametric_eq.ttl
  10. 1
      data/plugins/generated/peak_limiter.lv2/peak_limiter.cpp
  11. 6
      data/plugins/generated/peak_limiter.lv2/peak_limiter.ttl
  12. 3
      data/plugins/generated/phaser.lv2/phaser.cpp
  13. 5
      data/plugins/generated/phaser.lv2/phaser.ttl
  14. 2
      data/plugins/generated/wah4.lv2/wah4.cpp
  15. 2
      data/plugins/generated/wah4.lv2/wah4.ttl
  16. 2
      data/plugins/highpass_filter.dsp.in
  17. 2
      data/plugins/lowpass_filter.dsp.in
  18. 7
      data/plugins/parametric_eq.dsp.in
  19. 2
      data/plugins/peak_limiter.dsp.in
  20. 2
      data/plugins/phaser.dsp.in
  21. 3
      data/plugins/wah4.dsp.in
  22. 6
      data/plugins/zita_rev1.dsp.in
  23. 4
      inc/audio/port_identifier.h
  24. 4
      inc/utils/types.h
  25. 6
      src/plugins/carla_native_plugin.c
  26. 23
      src/plugins/plugin_gtk.c

4
data/plugins/compressor.dsp.in

@ -11,12 +11,12 @@ declare license "AGPL-3.0-or-later"; @@ -11,12 +11,12 @@ declare license "AGPL-3.0-or-later";
import ("stdfaust.lib");
import ("zrythm-utils.lib");
ratio = hslider ("[1] Ratio", 1, 1, 20, 0.1);
ratio = hslider ("[1] Ratio [tooltip:Compression ratio]", 1, 1, 20, 0.1);
thresh = hslider ("[2] Threshold [unit:Hz]", -20, -50, 0, 0.1);
att = hslider ("[3] Attack [unit:ms]", 10, 1, 200, 1);
rel = hslider ("[4] Release [unit:ms]", 10, 1, 200, 1);
mix = hslider(
"[5] Mix [unit:percentage] [tooltip: Mix amount]",
"[5] Mix [unit:percentage] [tooltip:Mix amount]",
50, 0, 100, 0.1);
res = co.compressor_stereo (ratio, thresh, att / 1000, rel / 1000);

4
data/plugins/cubic_distortion.dsp.in

@ -42,6 +42,6 @@ process = _ : el.cubicnl_nodc(drive:fl.smooth(0.999),offset:fl.smooth(0.999)) @@ -42,6 +42,6 @@ process = _ : el.cubicnl_nodc(drive:fl.smooth(0.999),offset:fl.smooth(0.999))
cnl_group(x) = vgroup("CUBIC NONLINEARITY cubicnl [tooltip: Reference:
https://ccrma.stanford.edu/~jos/pasp/Cubic_Soft_Clipper.html]", x);
slider_group(x) = cnl_group(hgroup("[1]", x));
drive = slider_group(hslider("[1] Drive [tooltip: Amount of distortion]", 0, 0, 1, 0.01));
offset = slider_group(hslider("[2] Offset [tooltip: Brings in even harmonics]", 0, 0, 1, 0.01));
drive = slider_group(hslider("[1] Drive [tooltip:Amount of distortion]", 0, 0, 1, 0.01));
offset = slider_group(hslider("[2] Offset [tooltip:Brings in even harmonics]", 0, 0, 1, 0.01));
};

6
data/plugins/gate_stereo.dsp.in

@ -14,7 +14,7 @@ import ("zrythm-utils.lib"); @@ -14,7 +14,7 @@ import ("zrythm-utils.lib");
process = _,_ : ef.gate_stereo (thresh, att, hold, rel)
with {
thresh = hslider ("[1] Threshold [unit:dB]", -30, -120, 0, 0.1);
att = hslider ("[2] Attack [scale:log]", 10, 10, 10000, 1) / 1000;
hold = hslider ("[3] Hold [scale:log]", 200, 1, 1000, 1) / 1000;
rel = hslider ("[4] Release [scale:log]", 100, 1, 1000, 1) / 1000;
att = hslider ("[2] Attack [unit:ms] [scale:log]", 10, 10, 10000, 1) / 1000;
hold = hslider ("[3] Hold [unit:ms] [scale:log]", 200, 1, 1000, 1) / 1000;
rel = hslider ("[4] Release [unit:ms] [scale:log]", 100, 1, 1000, 1) / 1000;
};

1
data/plugins/generated/compressor.lv2/compressor.cpp

@ -804,6 +804,7 @@ class compressor : public dsp { @@ -804,6 +804,7 @@ class compressor : public dsp {
virtual void buildUserInterface(UI* ui_interface) {
ui_interface->openVerticalBox("Compressor");
ui_interface->declare(&fHslider2, "1", "");
ui_interface->declare(&fHslider2, "tooltip", "Compression ratio");
ui_interface->addHorizontalSlider("Ratio", &fHslider2, FAUSTFLOAT(1.0f), FAUSTFLOAT(1.0f), FAUSTFLOAT(20.0f), FAUSTFLOAT(0.100000001f));
ui_interface->declare(&fHslider3, "2", "");
ui_interface->declare(&fHslider3, "unit", "Hz");

1
data/plugins/generated/compressor.lv2/compressor.ttl

@ -30,6 +30,7 @@ @@ -30,6 +30,7 @@
lv2:default 1 ;
lv2:minimum 1 ;
lv2:maximum 20 ;
rdfs:comment "Compression ratio" ;
] , [
a lv2:InputPort ;
a lv2:ControlPort ;

3
data/plugins/generated/gate_stereo.lv2/gate_stereo.cpp

@ -811,12 +811,15 @@ class gate_stereo : public dsp { @@ -811,12 +811,15 @@ class gate_stereo : public dsp {
ui_interface->addHorizontalSlider("Threshold", &fHslider3, FAUSTFLOAT(-30.0f), FAUSTFLOAT(-120.0f), FAUSTFLOAT(0.0f), FAUSTFLOAT(0.100000001f));
ui_interface->declare(&fHslider0, "2", "");
ui_interface->declare(&fHslider0, "scale", "log");
ui_interface->declare(&fHslider0, "unit", "ms");
ui_interface->addHorizontalSlider("Attack", &fHslider0, FAUSTFLOAT(10.0f), FAUSTFLOAT(10.0f), FAUSTFLOAT(10000.0f), FAUSTFLOAT(1.0f));
ui_interface->declare(&fHslider2, "3", "");
ui_interface->declare(&fHslider2, "scale", "log");
ui_interface->declare(&fHslider2, "unit", "ms");
ui_interface->addHorizontalSlider("Hold", &fHslider2, FAUSTFLOAT(200.0f), FAUSTFLOAT(1.0f), FAUSTFLOAT(1000.0f), FAUSTFLOAT(1.0f));
ui_interface->declare(&fHslider1, "4", "");
ui_interface->declare(&fHslider1, "scale", "log");
ui_interface->declare(&fHslider1, "unit", "ms");
ui_interface->addHorizontalSlider("Release", &fHslider1, FAUSTFLOAT(100.0f), FAUSTFLOAT(1.0f), FAUSTFLOAT(1000.0f), FAUSTFLOAT(1.0f));
ui_interface->closeBox();
}

18
data/plugins/generated/gate_stereo.lv2/gate_stereo.ttl

@ -48,6 +48,12 @@ @@ -48,6 +48,12 @@
lv2:minimum 10 ;
lv2:maximum 10000 ;
lv2:portProperty epp:logarithmic ;
units:unit [
a units:Unit ;
units:name "ms" ;
units:symbol "ms" ;
units:render "%f ms"
] ;
] , [
a lv2:InputPort ;
a lv2:ControlPort ;
@ -60,6 +66,12 @@ @@ -60,6 +66,12 @@
lv2:minimum 1 ;
lv2:maximum 1000 ;
lv2:portProperty epp:logarithmic ;
units:unit [
a units:Unit ;
units:name "ms" ;
units:symbol "ms" ;
units:render "%f ms"
] ;
] , [
a lv2:InputPort ;
a lv2:ControlPort ;
@ -72,6 +84,12 @@ @@ -72,6 +84,12 @@
lv2:minimum 1 ;
lv2:maximum 1000 ;
lv2:portProperty epp:logarithmic ;
units:unit [
a units:Unit ;
units:name "ms" ;
units:symbol "ms" ;
units:render "%f ms"
] ;
] , [
a lv2:InputPort ;
a lv2:AudioPort ;

6
data/plugins/generated/parametric_eq.lv2/parametric_eq.cpp

@ -944,7 +944,7 @@ class parametric_eq : public dsp { @@ -944,7 +944,7 @@ class parametric_eq : public dsp {
ui_interface->declare(&fHslider0, "style", "knob");
ui_interface->declare(&fHslider0, "tooltip", "Transition-frequency from boost (cut) to unity gain");
ui_interface->declare(&fHslider0, "unit", "Hz");
ui_interface->addHorizontalSlider("Low Shelf Transition Frequency", &fHslider0, FAUSTFLOAT(200.0f), FAUSTFLOAT(10.0f), FAUSTFLOAT(5000.0f), FAUSTFLOAT(1.0f));
ui_interface->addHorizontalSlider("Low Shelf Frequency", &fHslider0, FAUSTFLOAT(200.0f), FAUSTFLOAT(10.0f), FAUSTFLOAT(5000.0f), FAUSTFLOAT(1.0f));
ui_interface->closeBox();
ui_interface->declare(0, "2", "");
ui_interface->declare(0, "tooltip", "Parametric Equalizer sections from filters.lib");
@ -962,7 +962,7 @@ class parametric_eq : public dsp { @@ -962,7 +962,7 @@ class parametric_eq : public dsp {
ui_interface->declare(&fHslider4, "2", "");
ui_interface->declare(&fHslider4, "scale", "log");
ui_interface->declare(&fHslider4, "style", "knob");
ui_interface->declare(&fHslider4, "tooltip", "Quality factor (Q) of the peak = center-frequency/bandwidth");
ui_interface->declare(&fHslider4, "tooltip", "Quality factor (Q) of the peak = center-frequency/bandwidth");
ui_interface->addHorizontalSlider("Peak Q", &fHslider4, FAUSTFLOAT(1.0f), FAUSTFLOAT(1.0f), FAUSTFLOAT(20.0f), FAUSTFLOAT(0.00999999978f));
ui_interface->closeBox();
ui_interface->declare(0, "3", "");
@ -978,7 +978,7 @@ class parametric_eq : public dsp { @@ -978,7 +978,7 @@ class parametric_eq : public dsp {
ui_interface->declare(&fHslider5, "style", "knob");
ui_interface->declare(&fHslider5, "tooltip", "Transition-frequency from boost (cut) to unity gain");
ui_interface->declare(&fHslider5, "unit", "Hz");
ui_interface->addHorizontalSlider("High Shelf Transition Frequency", &fHslider5, FAUSTFLOAT(8000.0f), FAUSTFLOAT(20.0f), FAUSTFLOAT(18000.0f), FAUSTFLOAT(1.0f));
ui_interface->addHorizontalSlider("High Shelf Frequency", &fHslider5, FAUSTFLOAT(8000.0f), FAUSTFLOAT(20.0f), FAUSTFLOAT(18000.0f), FAUSTFLOAT(1.0f));
ui_interface->closeBox();
ui_interface->closeBox();
}

10
data/plugins/generated/parametric_eq.lv2/parametric_eq.ttl

@ -41,8 +41,8 @@ @@ -41,8 +41,8 @@
a lv2:InputPort ;
a lv2:ControlPort ;
lv2:index 1 ;
lv2:symbol "Low_Shelf_Transition_Frequency_1" ;
lv2:name "Low Shelf Transition Frequency" ;
lv2:symbol "Low_Shelf_Frequency_1" ;
lv2:name "Low Shelf Frequency" ;
lv2:portProperty epp:hasStrictBounds ;
epp:rangeSteps 4990 ;
lv2:default 200 ;
@ -104,7 +104,7 @@ @@ -104,7 +104,7 @@
lv2:minimum 1 ;
lv2:maximum 20 ;
lv2:portProperty epp:logarithmic ;
rdfs:comment "Quality factor (Q) of the peak = center-frequency/bandwidth" ;
rdfs:comment "Quality factor (Q) of the peak = center-frequency/bandwidth" ;
] , [
a lv2:InputPort ;
a lv2:ControlPort ;
@ -127,8 +127,8 @@ @@ -127,8 +127,8 @@
a lv2:InputPort ;
a lv2:ControlPort ;
lv2:index 6 ;
lv2:symbol "High_Shelf_Transition_Frequency_6" ;
lv2:name "High Shelf Transition Frequency" ;
lv2:symbol "High_Shelf_Frequency_6" ;
lv2:name "High Shelf Frequency" ;
lv2:portProperty epp:hasStrictBounds ;
epp:rangeSteps 17980 ;
lv2:default 8000 ;

1
data/plugins/generated/peak_limiter.lv2/peak_limiter.cpp

@ -834,6 +834,7 @@ class peak_limiter : public dsp { @@ -834,6 +834,7 @@ class peak_limiter : public dsp {
ui_interface->addHorizontalSlider("Threshold", &fHslider2, FAUSTFLOAT(-6.0f), FAUSTFLOAT(-6.0f), FAUSTFLOAT(0.0f), FAUSTFLOAT(0.100000001f));
ui_interface->declare(&fHslider0, "2", "");
ui_interface->declare(&fHslider0, "tooltip", "Attack time in microseconds");
ui_interface->declare(&fHslider0, "unit", "us");
ui_interface->addHorizontalSlider("Attack", &fHslider0, FAUSTFLOAT(800.0f), FAUSTFLOAT(20.0f), FAUSTFLOAT(800.0f), FAUSTFLOAT(1.0f));
ui_interface->declare(&fHslider1, "3", "");
ui_interface->declare(&fHslider1, "tooltip", "Release time in ms");

6
data/plugins/generated/peak_limiter.lv2/peak_limiter.ttl

@ -60,6 +60,12 @@ @@ -60,6 +60,12 @@
lv2:minimum 20 ;
lv2:maximum 800 ;
rdfs:comment "Attack time in microseconds" ;
units:unit [
a units:Unit ;
units:name "us" ;
units:symbol "us" ;
units:render "%f us"
] ;
] , [
a lv2:InputPort ;
a lv2:ControlPort ;

3
data/plugins/generated/phaser.lv2/phaser.cpp

@ -918,7 +918,8 @@ class phaser : public dsp { @@ -918,7 +918,8 @@ class phaser : public dsp {
ui_interface->addHorizontalSlider("Max Notch1 Freq", &fHslider6, FAUSTFLOAT(800.0f), FAUSTFLOAT(20.0f), FAUSTFLOAT(10000.0f), FAUSTFLOAT(1.0f));
ui_interface->declare(&fHslider0, "4", "");
ui_interface->declare(&fHslider0, "style", "knob");
ui_interface->addHorizontalSlider("Notch Freq Ratio: NotchFreq(n+1)/NotchFreq(n)", &fHslider0, FAUSTFLOAT(1.5f), FAUSTFLOAT(1.10000002f), FAUSTFLOAT(4.0f), FAUSTFLOAT(0.00100000005f));
ui_interface->declare(&fHslider0, "tooltip", "NotchFreq(n+1)/NotchFreq(n)");
ui_interface->addHorizontalSlider("Notch Freq Ratio", &fHslider0, FAUSTFLOAT(1.5f), FAUSTFLOAT(1.10000002f), FAUSTFLOAT(4.0f), FAUSTFLOAT(0.00100000005f));
ui_interface->closeBox();
ui_interface->declare(0, "3", "");
ui_interface->openHorizontalBox("0x00");

5
data/plugins/generated/phaser.lv2/phaser.ttl

@ -138,13 +138,14 @@ @@ -138,13 +138,14 @@
a lv2:InputPort ;
a lv2:ControlPort ;
lv2:index 8 ;
lv2:symbol "Notch_Freq_Ratio__NotchFreq_n_1__NotchFreq_n__8" ;
lv2:name "Notch Freq Ratio: NotchFreq(n+1)/NotchFreq(n)" ;
lv2:symbol "Notch_Freq_Ratio_8" ;
lv2:name "Notch Freq Ratio" ;
lv2:portProperty epp:hasStrictBounds ;
epp:rangeSteps 2900 ;
lv2:default 1.5 ;
lv2:minimum 1.1 ;
lv2:maximum 4 ;
rdfs:comment "NotchFreq(n+1)/NotchFreq(n)" ;
] , [
a lv2:InputPort ;
a lv2:ControlPort ;

2
data/plugins/generated/wah4.lv2/wah4.cpp

@ -835,7 +835,7 @@ class wah4 : public dsp { @@ -835,7 +835,7 @@ class wah4 : public dsp {
ui_interface->openHorizontalBox("WAH4");
ui_interface->declare(&fHslider0, "1", "");
ui_interface->declare(&fHslider0, "scale", "log");
ui_interface->declare(&fHslider0, "tooltip", "wah resonance frequency in Hz");
ui_interface->declare(&fHslider0, "tooltip", "Wah resonance frequency");
ui_interface->declare(&fHslider0, "unit", "Hz");
ui_interface->addHorizontalSlider("Resonance", &fHslider0, FAUSTFLOAT(200.0f), FAUSTFLOAT(100.0f), FAUSTFLOAT(2000.0f), FAUSTFLOAT(1.0f));
ui_interface->closeBox();

2
data/plugins/generated/wah4.lv2/wah4.ttl

@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
lv2:minimum 100 ;
lv2:maximum 2000 ;
lv2:portProperty epp:logarithmic ;
rdfs:comment "wah resonance frequency in Hz" ;
rdfs:comment "Wah resonance frequency" ;
units:unit [
a units:Unit ;
units:name "Hz" ;

2
data/plugins/highpass_filter.dsp.in

@ -13,7 +13,7 @@ import ("zrythm-utils.lib"); @@ -13,7 +13,7 @@ import ("zrythm-utils.lib");
hp_filter = fi.highpass (2, filter_freq)
with {
filter_freq = hslider ("Frequency [unit:Hz] [scale:log] [tooltip: Transition frequency]", 200, 10, 18000, 1) : si.smoo;
filter_freq = hslider ("Frequency [unit:Hz] [scale:log] [tooltip:Transition frequency]", 200, 10, 18000, 1) : si.smoo;
};
process = par (i, 2, hp_filter);

2
data/plugins/lowpass_filter.dsp.in

@ -13,7 +13,7 @@ import ("zrythm-utils.lib"); @@ -13,7 +13,7 @@ import ("zrythm-utils.lib");
lp_filter = fi.lowpass (2, filter_freq)
with {
filter_freq = hslider ("Frequency [unit:Hz] [scale:log] [tooltip: Transition frequency]", 5000, 10, 18000, 1) : si.smoo;
filter_freq = hslider ("Frequency [unit:Hz] [scale:log] [tooltip:Transition frequency]", 5000, 10, 18000, 1) : si.smoo;
};
process = par (i, 2, lp_filter);

7
data/plugins/parametric_eq.dsp.in

@ -33,7 +33,7 @@ with{ @@ -33,7 +33,7 @@ with{
LL = ls_group(hslider("[0] Low Shelf Gain [unit:dB] [style:knob]
[tooltip: Amount of low-frequency boost or cut in decibels]",0,-40,40,0.1));
FL = ls_group(hslider("[1] Low Shelf Transition Frequency [unit:Hz] [style:knob] [scale:log]
FL = ls_group(hslider("[1] Low Shelf Frequency [unit:Hz] [style:knob] [scale:log]
[tooltip: Transition-frequency from boost (cut) to unity gain]",200,10,5000,1));
pq_group(x) = eq_group(vgroup("[2] Peaking Equalizer[tooltip: Parametric Equalizer
@ -42,14 +42,13 @@ with{ @@ -42,14 +42,13 @@ with{
local boost or cut in decibels]",0,-40,40,0.1));
peak_freq = pq_group(hslider("[1] Peak Frequency [unit:Hz] [style:knob] [tooltip: Peak
Frequency]", 720, 20, 16000, 1)) : si.smooth(0.999);
Q = pq_group(hslider("[2] Peak Q [style:knob] [scale:log] [tooltip: Quality factor
(Q) of the peak = center-frequency/bandwidth]",1, 1, 20, 0.01));
Q = pq_group(hslider("[2] Peak Q [style:knob] [scale:log] [tooltip: Quality factor (Q) of the peak = center-frequency/bandwidth]",1, 1, 20, 0.01));
hs_group(x) = eq_group(vgroup("[3] High Shelf [tooltip: A high shelf provides a boost
or cut above some frequency]",x));
LH = hs_group(hslider("[0] High Shelf Gain [unit:dB] [style:knob] [tooltip: Amount of
high-frequency boost or cut in decibels]",0,-40,40,.1));
FH = hs_group(hslider("[1] High Shelf Transition Frequency [unit:Hz] [style:knob] [scale:log]
FH = hs_group(hslider("[1] High Shelf Frequency [unit:Hz] [style:knob] [scale:log]
[tooltip: Transition-frequency from boost (cut) to unity gain]",8000,20,18000,1));
};

2
data/plugins/peak_limiter.dsp.in

@ -16,7 +16,7 @@ peak_limiter = co.compressor_stereo ( @@ -16,7 +16,7 @@ peak_limiter = co.compressor_stereo (
with {
compression_ratio = hslider ("[0] Ratio", 4, 4, 20, 0.01) : si.smoo;
thresh = hslider ("[1] Threshold [unit:dB] [tooltip: Threshold]", -6, -6, 0, 0.1) : si.smoo;
att = hslider ("[2] Attack [tooltip: Attack time in microseconds]", 800, 20, 800, 1) / 1000000 : si.smoo;
att = hslider ("[2] Attack [unit:us] [tooltip: Attack time in microseconds]", 800, 20, 800, 1) / 1000000 : si.smoo;
rel = hslider ("[3] Release [unit:ms] [tooltip: Release time in ms]", 500, 50, 1100, 1) / 1000 : si.smoo;
};

2
data/plugins/phaser.dsp.in

@ -56,7 +56,7 @@ with{ @@ -56,7 +56,7 @@ with{
100, 20, 5000, 1));
frqmax = nch_group(hslider("[3] Max Notch1 Freq [unit:Hz] [style:knob] [scale:log]",
800, 20, 10000, 1)) : max(frqmin);
fratio = nch_group(hslider("[4] Notch Freq Ratio: NotchFreq(n+1)/NotchFreq(n) [style:knob]",
fratio = nch_group(hslider("[4] Notch Freq Ratio [style:knob] [tooltip:NotchFreq(n+1)/NotchFreq(n)]",
1.5, 1.1, 4, 0.001)) : si.smooth (0.999);
level = lvl_group(hslider("Phaser Output Level [unit:dB]", 0, -60, 10, 0.1)) :

3
data/plugins/wah4.dsp.in

@ -27,8 +27,7 @@ import ("zrythm-utils.lib"); @@ -27,8 +27,7 @@ import ("zrythm-utils.lib");
wah4_demo = ve.wah4(fr : si.smooth (0.999))
with{
wah4_group(x) = hgroup("WAH4 [tooltip: Fourth-order wah effect made using moog_vcf]", x);
fr = wah4_group(hslider("[1] Resonance [scale:log] [unit:Hz] [tooltip: wah resonance
frequency in Hz]", 200,100,2000,1));
fr = wah4_group(hslider("[1] Resonance [scale:log] [unit:Hz] [tooltip:Wah resonance frequency]", 200,100,2000,1));
};
res = sp.stereoize (wah4_demo);

6
data/plugins/zita_rev1.dsp.in

@ -41,13 +41,13 @@ fsmax = 192000.0; // highest sampling rate that will be used @@ -41,13 +41,13 @@ fsmax = 192000.0; // highest sampling rate that will be used
rdel = hslider ("[1] Pre-Delay [unit:ms]", 20, 0, 100, 1);
f1 = hslider ("[2] F1 [unit:Hz]", 200, 50, 1000, 1);
f2 = hslider ("[3] F2 [unit:Hz]", 6000, 1500, 0.49*fsmax, 1);
t60dc = hslider("[4] Low RT60 [unit:s]
t60dc = hslider ("[4] Low RT60 [unit:s]
[tooltip: T60 = time (in seconds) to decay 60dB in low-frequency band]",
3, 1, 8, 0.1);
t60m = hslider("[5] Mid RT60 [unit:s]
t60m = hslider ("[5] Mid RT60 [unit:s]
[tooltip: T60 = time (in seconds) to decay 60dB in middle band]",
2, 1, 8, 0.1);
mix = hslider("[6] Mix [unit:percentage]
mix = hslider ("[6] Mix [unit:percentage]
[tooltip: Mix amount]",
50, 0, 100, 0.1);

4
inc/audio/port_identifier.h

@ -81,6 +81,9 @@ typedef enum PortUnit @@ -81,6 +81,9 @@ typedef enum PortUnit
/** Milliseconds. */
PORT_UNIT_MS,
/** Microseconds. */
PORT_UNIT_US,
} PortUnit;
static const cyaml_strval_t port_unit_strings[] = {
@ -91,6 +94,7 @@ static const cyaml_strval_t port_unit_strings[] = { @@ -91,6 +94,7 @@ static const cyaml_strval_t port_unit_strings[] = {
{ "°", PORT_UNIT_DEGREES},
{ "s", PORT_UNIT_SECONDS},
{ "ms", PORT_UNIT_MS },
{ "μs", PORT_UNIT_US },
};
/**

4
inc/utils/types.h

@ -52,9 +52,13 @@ typedef double curviness_t; @@ -52,9 +52,13 @@ typedef double curviness_t;
/** Signed type for frame index. */
typedef int_fast64_t signed_frame_t;
#define SIGNED_FRAME_FORMAT PRId64
/** Unsigned type for frame index. */
typedef uint_fast64_t unsigned_frame_t;
#define UNSIGNED_FRAME_FORMAT PRIu64
/** Signed millisecond index. */
typedef signed_frame_t signed_ms_t;

6
src/plugins/carla_native_plugin.c

@ -1120,6 +1120,7 @@ set_unit_from_str (Port * port, const char * unit_str) @@ -1120,6 +1120,7 @@ set_unit_from_str (Port * port, const char * unit_str)
SET_UNIT (MS, "ms");
SET_UNIT (DB, "dB");
SET_UNIT (SECONDS, "s");
SET_UNIT (US, "us");
# undef SET_UNIT
}
@ -1359,9 +1360,8 @@ create_ports (CarlaNativePlugin * self, bool loading) @@ -1359,9 +1360,8 @@ create_ports (CarlaNativePlugin * self, bool loading)
port->id.flags |=
PORT_FLAG_AUTOMATABLE;
}
if (
!(native_param->hints
& NATIVE_PARAMETER_IS_ENABLED))
if (!(native_param->hints
& NATIVE_PARAMETER_IS_ENABLED))
{
port->id.flags |=
PORT_FLAG_NOT_ON_GUI;

23
src/plugins/plugin_gtk.c

@ -483,32 +483,19 @@ plugin_gtk_add_control_row ( @@ -483,32 +483,19 @@ plugin_gtk_add_control_row (
{
char name[600];
strcpy (name, _name);
int preformatted = false;
bool preformatted = false;
if (controller && controller->port)
{
PortIdentifier id = controller->port->id;
#define FORMAT_UNIT(caps) \
case PORT_UNIT_##caps: \
sprintf ( \
name, "%s <small>(%s)</small>", _name, \
port_unit_strings[id.unit].str); \
break
switch (id.unit)
if (id.unit > PORT_UNIT_NONE)
{
FORMAT_UNIT (HZ);
FORMAT_UNIT (DB);
FORMAT_UNIT (DEGREES);
FORMAT_UNIT (SECONDS);
FORMAT_UNIT (MS);
default:
break;
sprintf (
name, "%s <small>(%s)</small>", _name,
port_unit_strings[id.unit].str);
}
#undef FORMAT_UNIT
preformatted = true;
}

Loading…
Cancel
Save