1 |
/* |
/* |
2 |
* Copyright (C) 2006-2008 Andreas Persson |
* Copyright (C) 2006-2011 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
20 |
#include "dimregionedit.h" |
#include "dimregionedit.h" |
21 |
|
|
22 |
#include "global.h" |
#include "global.h" |
23 |
|
#include "compat.h" |
24 |
|
|
25 |
DimRegionEdit::DimRegionEdit() : |
DimRegionEdit::DimRegionEdit() : |
26 |
eEG1PreAttack("Pre-attack", 0, 100, 2), |
eEG1PreAttack(_("Pre-attack"), 0, 100, 2), |
27 |
eEG1Attack("Attack", 0, 60, 3), |
eEG1Attack(_("Attack"), 0, 60, 3), |
28 |
eEG1Decay1("Decay 1", 0.005, 60, 3), |
eEG1Decay1(_("Decay 1"), 0.005, 60, 3), |
29 |
eEG1Decay2("Decay 2", 0, 60, 3), |
eEG1Decay2(_("Decay 2"), 0, 60, 3), |
30 |
eEG1InfiniteSustain("Infinite sustain"), |
eEG1InfiniteSustain(_("Infinite sustain")), |
31 |
eEG1Sustain("Sustain", 0, 100, 2), |
eEG1Sustain(_("Sustain"), 0, 100, 2), |
32 |
eEG1Release("Release", 0, 60, 3), |
eEG1Release(_("Release"), 0, 60, 3), |
33 |
eEG1Hold("Hold"), |
eEG1Hold(_("Hold")), |
34 |
eEG1Controller("Controller"), |
eEG1Controller(_("Controller")), |
35 |
eEG1ControllerInvert("Controller invert"), |
eEG1ControllerInvert(_("Controller invert")), |
36 |
eEG1ControllerAttackInfluence("Controller attack influence", 0, 3), |
eEG1ControllerAttackInfluence(_("Controller attack influence"), 0, 3), |
37 |
eEG1ControllerDecayInfluence("Controller decay influence", 0, 3), |
eEG1ControllerDecayInfluence(_("Controller decay influence"), 0, 3), |
38 |
eEG1ControllerReleaseInfluence("Controller release influence", 0, 3), |
eEG1ControllerReleaseInfluence(_("Controller release influence"), 0, 3), |
39 |
eLFO1Frequency("Frequency", 0.1, 10, 2), |
eLFO1Frequency(_("Frequency"), 0.1, 10, 2), |
40 |
eLFO1InternalDepth("Internal depth", 0, 1200), |
eLFO1InternalDepth(_("Internal depth"), 0, 1200), |
41 |
eLFO1ControlDepth("Control depth", 0, 1200), |
eLFO1ControlDepth(_("Control depth"), 0, 1200), |
42 |
eLFO1Controller("Controller"), |
eLFO1Controller(_("Controller")), |
43 |
eLFO1FlipPhase("Flip phase"), |
eLFO1FlipPhase(_("Flip phase")), |
44 |
eLFO1Sync("Sync"), |
eLFO1Sync(_("Sync")), |
45 |
eEG2PreAttack("Pre-attack", 0, 100, 2), |
eEG2PreAttack(_("Pre-attack"), 0, 100, 2), |
46 |
eEG2Attack("Attack", 0, 60, 3), |
eEG2Attack(_("Attack"), 0, 60, 3), |
47 |
eEG2Decay1("Decay 1", 0.005, 60, 3), |
eEG2Decay1(_("Decay 1"), 0.005, 60, 3), |
48 |
eEG2Decay2("Decay 2", 0, 60, 3), |
eEG2Decay2(_("Decay 2"), 0, 60, 3), |
49 |
eEG2InfiniteSustain("Infinite sustain"), |
eEG2InfiniteSustain(_("Infinite sustain")), |
50 |
eEG2Sustain("Sustain", 0, 100, 2), |
eEG2Sustain(_("Sustain"), 0, 100, 2), |
51 |
eEG2Release("Release", 0, 60, 3), |
eEG2Release(_("Release"), 0, 60, 3), |
52 |
eEG2Controller("Controller"), |
eEG2Controller(_("Controller")), |
53 |
eEG2ControllerInvert("Controller invert"), |
eEG2ControllerInvert(_("Controller invert")), |
54 |
eEG2ControllerAttackInfluence("Controller attack influence", 0, 3), |
eEG2ControllerAttackInfluence(_("Controller attack influence"), 0, 3), |
55 |
eEG2ControllerDecayInfluence("Controller decay influence", 0, 3), |
eEG2ControllerDecayInfluence(_("Controller decay influence"), 0, 3), |
56 |
eEG2ControllerReleaseInfluence("Controller release influence", 0, 3), |
eEG2ControllerReleaseInfluence(_("Controller release influence"), 0, 3), |
57 |
eLFO2Frequency("Frequency", 0.1, 10, 2), |
eLFO2Frequency(_("Frequency"), 0.1, 10, 2), |
58 |
eLFO2InternalDepth("Internal depth", 0, 1200), |
eLFO2InternalDepth(_("Internal depth"), 0, 1200), |
59 |
eLFO2ControlDepth("Control depth", 0, 1200), |
eLFO2ControlDepth(_("Control depth"), 0, 1200), |
60 |
eLFO2Controller("Controller"), |
eLFO2Controller(_("Controller")), |
61 |
eLFO2FlipPhase("Flip phase"), |
eLFO2FlipPhase(_("Flip phase")), |
62 |
eLFO2Sync("Sync"), |
eLFO2Sync(_("Sync")), |
63 |
eEG3Attack("Attack", 0, 10, 3), |
eEG3Attack(_("Attack"), 0, 10, 3), |
64 |
eEG3Depth("Depth", -1200, 1200), |
eEG3Depth(_("Depth"), -1200, 1200), |
65 |
eLFO3Frequency("Frequency", 0.1, 10, 2), |
eLFO3Frequency(_("Frequency"), 0.1, 10, 2), |
66 |
eLFO3InternalDepth("Internal depth", 0, 1200), |
eLFO3InternalDepth(_("Internal depth"), 0, 1200), |
67 |
eLFO3ControlDepth("Control depth", 0, 1200), |
eLFO3ControlDepth(_("Control depth"), 0, 1200), |
68 |
eLFO3Controller("Controller"), |
eLFO3Controller(_("Controller")), |
69 |
eLFO3Sync("Sync"), |
eLFO3Sync(_("Sync")), |
70 |
eVCFEnabled("Enabled"), |
eVCFEnabled(_("Enabled")), |
71 |
eVCFType("Type"), |
eVCFType(_("Type")), |
72 |
eVCFCutoffController("Cutoff controller"), |
eVCFCutoffController(_("Cutoff controller")), |
73 |
eVCFCutoffControllerInvert("Cutoff controller invert"), |
eVCFCutoffControllerInvert(_("Cutoff controller invert")), |
74 |
eVCFCutoff("Cutoff"), |
eVCFCutoff(_("Cutoff")), |
75 |
eVCFVelocityCurve("Velocity curve"), |
eVCFVelocityCurve(_("Velocity curve")), |
76 |
eVCFVelocityScale("Velocity scale"), |
eVCFVelocityScale(_("Velocity scale")), |
77 |
eVCFVelocityDynamicRange("Velocity dynamic range", 0, 4), |
eVCFVelocityDynamicRange(_("Velocity dynamic range"), 0, 4), |
78 |
eVCFResonance("Resonance"), |
eVCFResonance(_("Resonance")), |
79 |
eVCFResonanceDynamic("Resonance dynamic"), |
eVCFResonanceDynamic(_("Resonance dynamic")), |
80 |
eVCFResonanceController("Resonance controller"), |
eVCFResonanceController(_("Resonance controller")), |
81 |
eVCFKeyboardTracking("Keyboard tracking"), |
eVCFKeyboardTracking(_("Keyboard tracking")), |
82 |
eVCFKeyboardTrackingBreakpoint("Keyboard tracking breakpoint"), |
eVCFKeyboardTrackingBreakpoint(_("Keyboard tracking breakpoint")), |
83 |
eVelocityResponseCurve("Velocity response curve"), |
eVelocityResponseCurve(_("Velocity response curve")), |
84 |
eVelocityResponseDepth("Velocity response depth", 0, 4), |
eVelocityResponseDepth(_("Velocity response depth"), 0, 4), |
85 |
eVelocityResponseCurveScaling("Velocity response curve scaling"), |
eVelocityResponseCurveScaling(_("Velocity response curve scaling")), |
86 |
eReleaseVelocityResponseCurve("Release velocity response curve"), |
eReleaseVelocityResponseCurve(_("Release velocity response curve")), |
87 |
eReleaseVelocityResponseDepth("Release velocity response depth", 0, 4), |
eReleaseVelocityResponseDepth(_("Release velocity response depth"), 0, 4), |
88 |
eReleaseTriggerDecay("Release trigger decay", 0, 8), |
eReleaseTriggerDecay(_("Release trigger decay"), 0, 8), |
89 |
eCrossfade_in_start("Crossfade-in start"), |
eCrossfade_in_start(_("Crossfade-in start")), |
90 |
eCrossfade_in_end("Crossfade-in end"), |
eCrossfade_in_end(_("Crossfade-in end")), |
91 |
eCrossfade_out_start("Crossfade-out start"), |
eCrossfade_out_start(_("Crossfade-out start")), |
92 |
eCrossfade_out_end("Crossfade-out end"), |
eCrossfade_out_end(_("Crossfade-out end")), |
93 |
ePitchTrack("Pitch track"), |
ePitchTrack(_("Pitch track")), |
94 |
eDimensionBypass("Dimension bypass"), |
eDimensionBypass(_("Dimension bypass")), |
95 |
ePan("Pan", -64, 63), |
ePan(_("Pan"), -64, 63), |
96 |
eSelfMask("Self mask"), |
eSelfMask(_("Self mask")), |
97 |
eAttenuationController("Attenuation controller"), |
eAttenuationController(_("Attenuation controller")), |
98 |
eInvertAttenuationController("Invert attenuation controller"), |
eInvertAttenuationController(_("Invert attenuation controller")), |
99 |
eAttenuationControllerThreshold("Attenuation controller threshold"), |
eAttenuationControllerThreshold(_("Attenuation controller threshold")), |
100 |
eChannelOffset("Channel offset", 0, 9), |
eChannelOffset(_("Channel offset"), 0, 9), |
101 |
eSustainDefeat("Sustain defeat"), |
eSustainDefeat(_("Sustain defeat")), |
102 |
eMSDecode("MS decode"), |
eMSDecode(_("MS decode")), |
103 |
eSampleStartOffset("Sample start offset", 0, 2000), |
eSampleStartOffset(_("Sample start offset"), 0, 2000), |
104 |
eUnityNote("Unity note"), |
eUnityNote(_("Unity note")), |
105 |
eFineTune("Fine tune", -49, 50), |
eFineTune(_("Fine tune"), -49, 50), |
106 |
eGain("Gain", -96, 0, 2, -655360), |
eGain(_("Gain"), -96, 0, 2, -655360), |
107 |
eGainPlus6("Gain +6dB", eGain, 6 * -655360), |
eGainPlus6(_("Gain +6dB"), eGain, 6 * -655360), |
108 |
eSampleLoopEnabled("Enabled"), |
eSampleLoopEnabled(_("Enabled")), |
109 |
eSampleLoopStart("Loop start positon"), |
eSampleLoopStart(_("Loop start positon")), |
110 |
eSampleLoopLength("Loop size"), |
eSampleLoopLength(_("Loop size")), |
111 |
eSampleLoopType("Loop type"), |
eSampleLoopType(_("Loop type")), |
112 |
eSampleLoopInfinite("Infinite loop"), |
eSampleLoopInfinite(_("Infinite loop")), |
113 |
eSampleLoopPlayCount("Playback count", 1), |
eSampleLoopPlayCount(_("Playback count"), 1), |
114 |
update_model(0) |
update_model(0) |
115 |
{ |
{ |
116 |
connect(eEG1PreAttack, &gig::DimensionRegion::EG1PreAttack); |
connect(eEG1PreAttack, &gig::DimensionRegion::EG1PreAttack); |
266 |
firstRowInBlock = 0; |
firstRowInBlock = 0; |
267 |
|
|
268 |
addHeader(_("Mandatory Settings")); |
addHeader(_("Mandatory Settings")); |
269 |
addString("Sample", lSample, wSample); |
addString(_("Sample"), lSample, wSample); |
270 |
//TODO: the following would break drag&drop: wSample->property_editable().set_value(false); or this: wSample->set_editable(false); |
//TODO: the following would break drag&drop: wSample->property_editable().set_value(false); or this: wSample->set_editable(false); |
271 |
|
#ifdef OLD_TOOLTIPS |
272 |
tooltips.set_tip(*wSample, _("Drop a sample here")); |
tooltips.set_tip(*wSample, _("Drop a sample here")); |
273 |
|
#else |
274 |
|
wSample->set_tooltip_text(_("Drop a sample here")); |
275 |
|
#endif |
276 |
addProp(eUnityNote); |
addProp(eUnityNote); |
277 |
addHeader(_("Optional Settings")); |
addHeader(_("Optional Settings")); |
278 |
addProp(eSampleStartOffset); |
addProp(eSampleStartOffset); |
279 |
addProp(eChannelOffset); |
addProp(eChannelOffset); |
280 |
addHeader("Loops"); |
addHeader(_("Loops")); |
281 |
addProp(eSampleLoopEnabled); |
addProp(eSampleLoopEnabled); |
282 |
addProp(eSampleLoopStart); |
addProp(eSampleLoopStart); |
283 |
addProp(eSampleLoopLength); |
addProp(eSampleLoopLength); |
284 |
{ |
{ |
285 |
const char* choices[] = { "normal", "bidirectional", "backward", 0 }; |
const char* choices[] = { _("normal"), _("bidirectional"), _("backward"), 0 }; |
286 |
static const uint32_t values[] = { |
static const uint32_t values[] = { |
287 |
gig::loop_type_normal, |
gig::loop_type_normal, |
288 |
gig::loop_type_bidirectional, |
gig::loop_type_bidirectional, |
322 |
addProp(eLFO1InternalDepth); |
addProp(eLFO1InternalDepth); |
323 |
addProp(eLFO1ControlDepth); |
addProp(eLFO1ControlDepth); |
324 |
{ |
{ |
325 |
const char* choices[] = { "internal", "modwheel", "breath", |
const char* choices[] = { _("internal"), _("modwheel"), _("breath"), |
326 |
"internal+modwheel", "internal+breath", 0 }; |
_("internal+modwheel"), _("internal+breath"), 0 }; |
327 |
static const gig::lfo1_ctrl_t values[] = { |
static const gig::lfo1_ctrl_t values[] = { |
328 |
gig::lfo1_ctrl_internal, |
gig::lfo1_ctrl_internal, |
329 |
gig::lfo1_ctrl_modwheel, |
gig::lfo1_ctrl_modwheel, |
336 |
addProp(eLFO1Controller); |
addProp(eLFO1Controller); |
337 |
addProp(eLFO1FlipPhase); |
addProp(eLFO1FlipPhase); |
338 |
addProp(eLFO1Sync); |
addProp(eLFO1Sync); |
339 |
addHeader("Crossfade"); |
addHeader(_("Crossfade")); |
340 |
addProp(eAttenuationController); |
addProp(eAttenuationController); |
341 |
addProp(eInvertAttenuationController); |
addProp(eInvertAttenuationController); |
342 |
addProp(eAttenuationControllerThreshold); |
addProp(eAttenuationControllerThreshold); |
350 |
addHeader(_("General Filter Settings")); |
addHeader(_("General Filter Settings")); |
351 |
addProp(eVCFEnabled); |
addProp(eVCFEnabled); |
352 |
{ |
{ |
353 |
const char* choices[] = { "lowpass", "lowpassturbo", "bandpass", |
const char* choices[] = { _("lowpass"), _("lowpassturbo"), _("bandpass"), |
354 |
"highpass", "bandreject", 0 }; |
_("highpass"), _("bandreject"), 0 }; |
355 |
static const gig::vcf_type_t values[] = { |
static const gig::vcf_type_t values[] = { |
356 |
gig::vcf_type_lowpass, |
gig::vcf_type_lowpass, |
357 |
gig::vcf_type_lowpassturbo, |
gig::vcf_type_lowpassturbo, |
363 |
} |
} |
364 |
addProp(eVCFType); |
addProp(eVCFType); |
365 |
{ |
{ |
366 |
const char* choices[] = { "none", "none2", "modwheel", "effect1", "effect2", |
const char* choices[] = { _("none"), _("none2"), _("modwheel"), _("effect1"), _("effect2"), |
367 |
"breath", "foot", "sustainpedal", "softpedal", |
_("breath"), _("foot"), _("sustainpedal"), _("softpedal"), |
368 |
"genpurpose7", "genpurpose8", "aftertouch", 0 }; |
_("genpurpose7"), _("genpurpose8"), _("aftertouch"), 0 }; |
369 |
static const gig::vcf_cutoff_ctrl_t values[] = { |
static const gig::vcf_cutoff_ctrl_t values[] = { |
370 |
gig::vcf_cutoff_ctrl_none, |
gig::vcf_cutoff_ctrl_none, |
371 |
gig::vcf_cutoff_ctrl_none2, |
gig::vcf_cutoff_ctrl_none2, |
385 |
addProp(eVCFCutoffController); |
addProp(eVCFCutoffController); |
386 |
addProp(eVCFCutoffControllerInvert); |
addProp(eVCFCutoffControllerInvert); |
387 |
addProp(eVCFCutoff); |
addProp(eVCFCutoff); |
388 |
const char* curve_type_texts[] = { "nonlinear", "linear", "special", 0 }; |
const char* curve_type_texts[] = { _("nonlinear"), _("linear"), _("special"), 0 }; |
389 |
static const gig::curve_type_t curve_type_values[] = { |
static const gig::curve_type_t curve_type_values[] = { |
390 |
gig::curve_type_nonlinear, |
gig::curve_type_nonlinear, |
391 |
gig::curve_type_linear, |
gig::curve_type_linear, |
398 |
addProp(eVCFResonance); |
addProp(eVCFResonance); |
399 |
addProp(eVCFResonanceDynamic); |
addProp(eVCFResonanceDynamic); |
400 |
{ |
{ |
401 |
const char* choices[] = { "none", "genpurpose3", "genpurpose4", |
const char* choices[] = { _("none"), _("genpurpose3"), _("genpurpose4"), |
402 |
"genpurpose5", "genpurpose6", 0 }; |
_("genpurpose5"), _("genpurpose6"), 0 }; |
403 |
static const gig::vcf_res_ctrl_t values[] = { |
static const gig::vcf_res_ctrl_t values[] = { |
404 |
gig::vcf_res_ctrl_none, |
gig::vcf_res_ctrl_none, |
405 |
gig::vcf_res_ctrl_genpurpose3, |
gig::vcf_res_ctrl_genpurpose3, |
433 |
addProp(eLFO2InternalDepth); |
addProp(eLFO2InternalDepth); |
434 |
addProp(eLFO2ControlDepth); |
addProp(eLFO2ControlDepth); |
435 |
{ |
{ |
436 |
const char* choices[] = { "internal", "modwheel", "foot", |
const char* choices[] = { _("internal"), _("modwheel"), _("foot"), |
437 |
"internal+modwheel", "internal+foot", 0 }; |
_("internal+modwheel"), _("internal+foot"), 0 }; |
438 |
static const gig::lfo2_ctrl_t values[] = { |
static const gig::lfo2_ctrl_t values[] = { |
439 |
gig::lfo2_ctrl_internal, |
gig::lfo2_ctrl_internal, |
440 |
gig::lfo2_ctrl_modwheel, |
gig::lfo2_ctrl_modwheel, |
461 |
addProp(eLFO3InternalDepth); |
addProp(eLFO3InternalDepth); |
462 |
addProp(eLFO3ControlDepth); |
addProp(eLFO3ControlDepth); |
463 |
{ |
{ |
464 |
const char* choices[] = { "internal", "modwheel", "aftertouch", |
const char* choices[] = { _("internal"), _("modwheel"), _("aftertouch"), |
465 |
"internal+modwheel", "internal+aftertouch", 0 }; |
_("internal+modwheel"), _("internal+aftertouch"), 0 }; |
466 |
static const gig::lfo3_ctrl_t values[] = { |
static const gig::lfo3_ctrl_t values[] = { |
467 |
gig::lfo3_ctrl_internal, |
gig::lfo3_ctrl_internal, |
468 |
gig::lfo3_ctrl_modwheel, |
gig::lfo3_ctrl_modwheel, |
487 |
addProp(eReleaseVelocityResponseDepth); |
addProp(eReleaseVelocityResponseDepth); |
488 |
addProp(eReleaseTriggerDecay); |
addProp(eReleaseTriggerDecay); |
489 |
{ |
{ |
490 |
const char* choices[] = { "none", "effect4depth", "effect5depth", 0 }; |
const char* choices[] = { _("none"), _("effect4depth"), _("effect5depth"), 0 }; |
491 |
static const gig::dim_bypass_ctrl_t values[] = { |
static const gig::dim_bypass_ctrl_t values[] = { |
492 |
gig::dim_bypass_ctrl_none, |
gig::dim_bypass_ctrl_none, |
493 |
gig::dim_bypass_ctrl_94, |
gig::dim_bypass_ctrl_94, |
544 |
eSampleLoopInfinite.signal_value_changed().connect( |
eSampleLoopInfinite.signal_value_changed().connect( |
545 |
sigc::mem_fun(*this, &DimRegionEdit::loop_infinite_toggled)); |
sigc::mem_fun(*this, &DimRegionEdit::loop_infinite_toggled)); |
546 |
|
|
547 |
append_page(*table[0], "Sample"); |
append_page(*table[0], _("Sample")); |
548 |
append_page(*table[1], "Amplitude (1)"); |
append_page(*table[1], _("Amplitude (1)")); |
549 |
append_page(*table[2], "Amplitude (2)"); |
append_page(*table[2], _("Amplitude (2)")); |
550 |
append_page(*table[3], "Filter (1)"); |
append_page(*table[3], _("Filter (1)")); |
551 |
append_page(*table[4], "Filter (2)"); |
append_page(*table[4], _("Filter (2)")); |
552 |
append_page(*table[5], "Pitch"); |
append_page(*table[5], _("Pitch")); |
553 |
append_page(*table[6], "Misc"); |
append_page(*table[6], _("Misc")); |
554 |
} |
} |
555 |
|
|
556 |
DimRegionEdit::~DimRegionEdit() |
DimRegionEdit::~DimRegionEdit() |
561 |
Gtk::Entry*& widget) |
Gtk::Entry*& widget) |
562 |
{ |
{ |
563 |
label = new Gtk::Label(Glib::ustring(labelText) + ":"); |
label = new Gtk::Label(Glib::ustring(labelText) + ":"); |
564 |
label->set_alignment(Gtk::ALIGN_LEFT); |
label->set_alignment(Gtk::ALIGN_START); |
565 |
|
|
566 |
table[pageno]->attach(*label, 1, 2, rowno, rowno + 1, |
table[pageno]->attach(*label, 1, 2, rowno, rowno + 1, |
567 |
Gtk::FILL, Gtk::SHRINK); |
Gtk::FILL, Gtk::SHRINK); |
587 |
str += "</b>"; |
str += "</b>"; |
588 |
Gtk::Label* label = new Gtk::Label(str); |
Gtk::Label* label = new Gtk::Label(str); |
589 |
label->set_use_markup(); |
label->set_use_markup(); |
590 |
label->set_alignment(Gtk::ALIGN_LEFT); |
label->set_alignment(Gtk::ALIGN_START); |
591 |
table[pageno]->attach(*label, 0, 3, rowno, rowno + 1, |
table[pageno]->attach(*label, 0, 3, rowno, rowno + 1, |
592 |
Gtk::FILL, Gtk::SHRINK); |
Gtk::FILL, Gtk::SHRINK); |
593 |
rowno++; |
rowno++; |
735 |
d->pSample ? d->pSample->LoopPlayCount : 0); |
d->pSample ? d->pSample->LoopPlayCount : 0); |
736 |
update_model--; |
update_model--; |
737 |
|
|
738 |
wSample->set_text(d->pSample ? d->pSample->pInfo->Name.c_str() : "NULL"); |
wSample->set_text(d->pSample ? d->pSample->pInfo->Name.c_str() : _("NULL")); |
739 |
|
|
740 |
update_loop_elements(); |
update_loop_elements(); |
741 |
VCFEnabled_toggled(); |
VCFEnabled_toggled(); |
798 |
eVCFCutoffControllerInvert.set_sensitive(hasController); |
eVCFCutoffControllerInvert.set_sensitive(hasController); |
799 |
eVCFCutoff.set_sensitive(!hasController); |
eVCFCutoff.set_sensitive(!hasController); |
800 |
eVCFResonanceDynamic.set_sensitive(!hasController); |
eVCFResonanceDynamic.set_sensitive(!hasController); |
801 |
eVCFVelocityScale.label.set_text(hasController ? "Minimum cutoff:" : |
eVCFVelocityScale.label.set_text(hasController ? _("Minimum cutoff:") : |
802 |
"Velocity scale:"); |
_("Velocity scale:")); |
803 |
} |
} |
804 |
|
|
805 |
void DimRegionEdit::VCFResonanceController_changed() |
void DimRegionEdit::VCFResonanceController_changed() |