19 |
|
|
20 |
#include "dimregionedit.h" |
#include "dimregionedit.h" |
21 |
|
|
22 |
|
#include <libintl.h> |
23 |
|
#define _(String) gettext(String) |
24 |
|
|
25 |
DimRegionEdit::DimRegionEdit() : |
DimRegionEdit::DimRegionEdit() : |
26 |
eEG1PreAttack("PreAttack", 0, 100, 2), |
eEG1PreAttack("PreAttack", 0, 100, 2), |
27 |
eEG1Attack("Attack", 0, 60, 3), |
eEG1Attack("Attack", 0, 60, 3), |
112 |
table[i]->set_col_spacings(7); |
table[i]->set_col_spacings(7); |
113 |
} |
} |
114 |
|
|
115 |
|
// set tooltips |
116 |
|
eUnityNote.set_tip( |
117 |
|
_("note this sample is associated with (a.k.a. 'root note')") |
118 |
|
); |
119 |
|
eSampleStartOffset.set_tip(_("sample position at which playback should be started")); |
120 |
|
ePan.set_tip(_("stereo balance (left/right)")); |
121 |
|
eChannelOffset.set_tip( |
122 |
|
_("output channel where the audio signal should be routed to (0 - 9)") |
123 |
|
); |
124 |
|
ePitchTrack.set_tip( |
125 |
|
_("if true: sample will be pitched according to the key position " |
126 |
|
"(this would be disabled for drums for example)") |
127 |
|
); |
128 |
|
|
129 |
pageno = 0; |
pageno = 0; |
130 |
rowno = 0; |
rowno = 0; |
131 |
firstRowInBlock = 0; |
firstRowInBlock = 0; |
132 |
|
|
133 |
addHeader("General (mandatory):"); |
addHeader(_("Mandatory Settings:")); |
134 |
addString("Sample", lSample, wSample); |
addString("Sample", lSample, wSample); |
135 |
//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); |
136 |
tooltips.set_tip(*wSample, "drop a sample here"); |
tooltips.set_tip(*wSample, _("drop a sample here")); |
137 |
addProp(eUnityNote); |
addProp(eUnityNote); |
138 |
addHeader("Optional Settings:"); |
addHeader(_("Optional Settings:")); |
139 |
addProp(eSampleStartOffset); |
addProp(eSampleStartOffset); |
140 |
addProp(ePan); |
addProp(ePan); |
141 |
addProp(eChannelOffset); |
addProp(eChannelOffset); |
149 |
|
|
150 |
nextPage(); |
nextPage(); |
151 |
|
|
152 |
addHeader("General Amplitude Settings:"); |
addHeader(_("General Amplitude Settings:")); |
153 |
addProp(eGain); |
addProp(eGain); |
154 |
addProp(eGainPlus6); |
addProp(eGainPlus6); |
155 |
addProp(eAttenuationController); |
addProp(eAttenuationController); |
156 |
addProp(eInvertAttenuationController); |
addProp(eInvertAttenuationController); |
157 |
addProp(eAttenuationControllerThreshold); |
addProp(eAttenuationControllerThreshold); |
158 |
addHeader("EG1 (Amplitude Envelope):"); |
addHeader(_("Amplitude Envelope (EG1):")); |
159 |
addProp(eEG1PreAttack); |
addProp(eEG1PreAttack); |
160 |
addProp(eEG1Attack); |
addProp(eEG1Attack); |
161 |
addProp(eEG1Decay1); |
addProp(eEG1Decay1); |
172 |
|
|
173 |
nextPage(); |
nextPage(); |
174 |
|
|
175 |
addHeader("LFO1 (Amplitude Oscillator):"); |
addHeader(_("Amplitude Oscillator (LFO1):")); |
176 |
addProp(eLFO1Frequency); |
addProp(eLFO1Frequency); |
177 |
addProp(eLFO1InternalDepth); |
addProp(eLFO1InternalDepth); |
178 |
addProp(eLFO1ControlDepth); |
addProp(eLFO1ControlDepth); |
194 |
|
|
195 |
nextPage(); |
nextPage(); |
196 |
|
|
197 |
addHeader("General Filter Settings:"); |
addHeader(_("General Filter Settings:")); |
198 |
addProp(eVCFEnabled); |
addProp(eVCFEnabled); |
199 |
{ |
{ |
200 |
char* choices[] = { "lowpass", "lowpassturbo", "bandpass", |
char* choices[] = { "lowpass", "lowpassturbo", "bandpass", |
262 |
|
|
263 |
nextPage(); |
nextPage(); |
264 |
|
|
265 |
addHeader("EG2 (Filter Cutoff Envelope):"); |
addHeader(_("Filter Cutoff Envelope (EG2):")); |
266 |
addProp(eEG2PreAttack); |
addProp(eEG2PreAttack); |
267 |
addProp(eEG2Attack); |
addProp(eEG2Attack); |
268 |
addProp(eEG2Decay1); |
addProp(eEG2Decay1); |
275 |
addProp(eEG2ControllerAttackInfluence); |
addProp(eEG2ControllerAttackInfluence); |
276 |
addProp(eEG2ControllerDecayInfluence); |
addProp(eEG2ControllerDecayInfluence); |
277 |
addProp(eEG2ControllerReleaseInfluence); |
addProp(eEG2ControllerReleaseInfluence); |
278 |
addHeader("LFO2 (Filter Cutoff Oscillator):"); |
addHeader(_("Filter Cutoff Oscillator (LFO2):")); |
279 |
addProp(eLFO2Frequency); |
addProp(eLFO2Frequency); |
280 |
addProp(eLFO2InternalDepth); |
addProp(eLFO2InternalDepth); |
281 |
addProp(eLFO2ControlDepth); |
addProp(eLFO2ControlDepth); |
297 |
|
|
298 |
nextPage(); |
nextPage(); |
299 |
|
|
300 |
addHeader("General Pitch Settings:"); |
addHeader(_("General Pitch Settings:")); |
301 |
addProp(eFineTune); |
addProp(eFineTune); |
302 |
addProp(ePitchTrack); |
addProp(ePitchTrack); |
303 |
addHeader("EG3 (Pitch Envelope):"); |
addHeader(_("Pitch Envelope (EG3):")); |
304 |
addProp(eEG3Attack); |
addProp(eEG3Attack); |
305 |
addProp(eEG3Depth); |
addProp(eEG3Depth); |
306 |
addHeader("LFO3 (Pitch Oscillator):"); |
addHeader(_("Pitch Oscillator (LFO3):")); |
307 |
addProp(eLFO3Frequency); |
addProp(eLFO3Frequency); |
308 |
addProp(eLFO3InternalDepth); |
addProp(eLFO3InternalDepth); |
309 |
addProp(eLFO3ControlDepth); |
addProp(eLFO3ControlDepth); |