1 |
/* |
/* |
2 |
* Copyright (C) 2006, 2007 Andreas Persson |
* Copyright (C) 2006-2014 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 |
|
VelocityCurve::VelocityCurve(double (gig::DimensionRegion::*getter)(uint8_t)) : |
26 |
|
getter(getter), dimreg(0) { |
27 |
|
set_size_request(80, 80); |
28 |
|
} |
29 |
|
|
30 |
|
#if (GTKMM_MAJOR_VERSION == 2 && GTKMM_MINOR_VERSION < 90) || GTKMM_MAJOR_VERSION < 2 |
31 |
|
bool VelocityCurve::on_expose_event(GdkEventExpose* e) { |
32 |
|
const Cairo::RefPtr<Cairo::Context>& cr = |
33 |
|
get_window()->create_cairo_context(); |
34 |
|
#if 0 |
35 |
|
} |
36 |
|
#endif |
37 |
|
#else |
38 |
|
bool VelocityCurve::on_draw(const Cairo::RefPtr<Cairo::Context>& cr) { |
39 |
|
#endif |
40 |
|
if (dimreg) { |
41 |
|
int w = get_width(); |
42 |
|
int h = get_height(); |
43 |
|
|
44 |
|
for (int pass = 0 ; pass < 2 ; pass++) { |
45 |
|
for (double x = 0 ; x <= w ; x++) { |
46 |
|
int vel = int(x * (127 - 1e-10) / w + 1); |
47 |
|
double y = (1 - (dimreg->*getter)(vel)) * (h - 3) + 1.5; |
48 |
|
|
49 |
|
if (x < 1e-10) { |
50 |
|
cr->move_to(x, y); |
51 |
|
} else { |
52 |
|
cr->line_to(x, y); |
53 |
|
} |
54 |
|
} |
55 |
|
if (pass == 0) { |
56 |
|
cr->line_to(w, h); |
57 |
|
cr->line_to(0, h); |
58 |
|
cr->set_source_rgba(0.5, 0.44, 1.0, is_sensitive() ? 0.2 : 0.1); |
59 |
|
cr->fill(); |
60 |
|
} else { |
61 |
|
cr->set_line_width(3); |
62 |
|
cr->set_source_rgba(0.5, 0.44, 1.0, is_sensitive() ? 1.0 : 0.3); |
63 |
|
cr->stroke(); |
64 |
|
} |
65 |
|
} |
66 |
|
} |
67 |
|
return true; |
68 |
|
} |
69 |
|
|
70 |
|
|
71 |
|
CrossfadeCurve::CrossfadeCurve() : dimreg(0) { |
72 |
|
set_size_request(280, 80); |
73 |
|
} |
74 |
|
|
75 |
|
#if (GTKMM_MAJOR_VERSION == 2 && GTKMM_MINOR_VERSION < 90) || GTKMM_MAJOR_VERSION < 2 |
76 |
|
bool CrossfadeCurve::on_expose_event(GdkEventExpose* e) { |
77 |
|
const Cairo::RefPtr<Cairo::Context>& cr = |
78 |
|
get_window()->create_cairo_context(); |
79 |
|
#if 0 |
80 |
|
} |
81 |
|
#endif |
82 |
|
#else |
83 |
|
bool CrossfadeCurve::on_draw(const Cairo::RefPtr<Cairo::Context>& cr) { |
84 |
|
#endif |
85 |
|
if (dimreg) { |
86 |
|
cr->translate(1.5, 0); |
87 |
|
|
88 |
|
// first, draw curves for the other layers |
89 |
|
gig::Region* region = dimreg->GetParent(); |
90 |
|
int dimregno; |
91 |
|
for (dimregno = 0 ; dimregno < region->DimensionRegions ; dimregno++) { |
92 |
|
if (region->pDimensionRegions[dimregno] == dimreg) { |
93 |
|
break; |
94 |
|
} |
95 |
|
} |
96 |
|
int bitcount = 0; |
97 |
|
for (int dim = 0 ; dim < region->Dimensions ; dim++) { |
98 |
|
if (region->pDimensionDefinitions[dim].dimension == |
99 |
|
gig::dimension_layer) { |
100 |
|
int mask = |
101 |
|
~(((1 << region->pDimensionDefinitions[dim].bits) - 1) << |
102 |
|
bitcount); |
103 |
|
int c = dimregno & mask; // mask away the layer dimension |
104 |
|
|
105 |
|
for (int i = 0 ; i < region->pDimensionDefinitions[dim].zones ; |
106 |
|
i++) { |
107 |
|
gig::DimensionRegion* d = |
108 |
|
region->pDimensionRegions[c + (i << bitcount)]; |
109 |
|
if (d != dimreg) { |
110 |
|
draw_one_curve(cr, d, false); |
111 |
|
} |
112 |
|
} |
113 |
|
break; |
114 |
|
} |
115 |
|
bitcount += region->pDimensionDefinitions[dim].bits; |
116 |
|
} |
117 |
|
|
118 |
|
// then, draw the currently selected layer |
119 |
|
draw_one_curve(cr, dimreg, is_sensitive()); |
120 |
|
} |
121 |
|
return true; |
122 |
|
} |
123 |
|
|
124 |
|
void CrossfadeCurve::draw_one_curve(const Cairo::RefPtr<Cairo::Context>& cr, |
125 |
|
const gig::DimensionRegion* d, |
126 |
|
bool sensitive) { |
127 |
|
int w = get_width(); |
128 |
|
int h = get_height(); |
129 |
|
|
130 |
|
if (d->Crossfade.out_end) { |
131 |
|
for (int pass = 0 ; pass < 2 ; pass++) { |
132 |
|
cr->move_to(d->Crossfade.in_start / 127.0 * (w - 3), h); |
133 |
|
cr->line_to(d->Crossfade.in_end / 127.0 * (w - 3), 1.5); |
134 |
|
cr->line_to(d->Crossfade.out_start / 127.0 * (w - 3), 1.5); |
135 |
|
cr->line_to(d->Crossfade.out_end / 127.0 * (w - 3), h); |
136 |
|
|
137 |
|
if (pass == 0) { |
138 |
|
cr->set_source_rgba(0.5, 0.44, 1.0, sensitive ? 0.2 : 0.1); |
139 |
|
cr->fill(); |
140 |
|
} else { |
141 |
|
cr->set_line_width(3); |
142 |
|
cr->set_source_rgba(0.5, 0.44, 1.0, sensitive ? 1.0 : 0.3); |
143 |
|
cr->stroke(); |
144 |
|
} |
145 |
|
} |
146 |
|
} |
147 |
|
} |
148 |
|
|
149 |
|
|
150 |
DimRegionEdit::DimRegionEdit() : |
DimRegionEdit::DimRegionEdit() : |
151 |
eEG1PreAttack("Pre-attack", 0, 100, 2), |
velocity_curve(&gig::DimensionRegion::GetVelocityAttenuation), |
152 |
eEG1Attack("Attack", 0, 60, 3), |
release_curve(&gig::DimensionRegion::GetVelocityRelease), |
153 |
eEG1Decay1("Decay 1", 0.005, 60, 3), |
cutoff_curve(&gig::DimensionRegion::GetVelocityCutoff), |
154 |
eEG1Decay2("Decay 2", 0, 60, 3), |
eEG1PreAttack(_("Pre-attack"), 0, 100, 2), |
155 |
eEG1InfiniteSustain("Infinite sustain"), |
eEG1Attack(_("Attack"), 0, 60, 3), |
156 |
eEG1Sustain("Sustain", 0, 100, 2), |
eEG1Decay1(_("Decay 1"), 0.005, 60, 3), |
157 |
eEG1Release("Release", 0, 60, 3), |
eEG1Decay2(_("Decay 2"), 0, 60, 3), |
158 |
eEG1Hold("Hold"), |
eEG1InfiniteSustain(_("Infinite sustain")), |
159 |
eEG1Controller("Controller"), |
eEG1Sustain(_("Sustain"), 0, 100, 2), |
160 |
eEG1ControllerInvert("Controller invert"), |
eEG1Release(_("Release"), 0, 60, 3), |
161 |
eEG1ControllerAttackInfluence("Controller attack influence", 0, 3), |
eEG1Hold(_("Hold")), |
162 |
eEG1ControllerDecayInfluence("Controller decay influence", 0, 3), |
eEG1Controller(_("Controller")), |
163 |
eEG1ControllerReleaseInfluence("Controller release influence", 0, 3), |
eEG1ControllerInvert(_("Controller invert")), |
164 |
eLFO1Frequency("Frequency", 0.1, 10, 2), |
eEG1ControllerAttackInfluence(_("Controller attack influence"), 0, 3), |
165 |
eLFO1InternalDepth("Internal depth", 0, 1200), |
eEG1ControllerDecayInfluence(_("Controller decay influence"), 0, 3), |
166 |
eLFO1ControlDepth("Control depth", 0, 1200), |
eEG1ControllerReleaseInfluence(_("Controller release influence"), 0, 3), |
167 |
eLFO1Controller("Controller"), |
eLFO1Frequency(_("Frequency"), 0.1, 10, 2), |
168 |
eLFO1FlipPhase("Flip phase"), |
eLFO1InternalDepth(_("Internal depth"), 0, 1200), |
169 |
eLFO1Sync("Sync"), |
eLFO1ControlDepth(_("Control depth"), 0, 1200), |
170 |
eEG2PreAttack("Pre-attack", 0, 100, 2), |
eLFO1Controller(_("Controller")), |
171 |
eEG2Attack("Attack", 0, 60, 3), |
eLFO1FlipPhase(_("Flip phase")), |
172 |
eEG2Decay1("Decay 1", 0.005, 60, 3), |
eLFO1Sync(_("Sync")), |
173 |
eEG2Decay2("Decay 2", 0, 60, 3), |
eEG2PreAttack(_("Pre-attack"), 0, 100, 2), |
174 |
eEG2InfiniteSustain("Infinite sustain"), |
eEG2Attack(_("Attack"), 0, 60, 3), |
175 |
eEG2Sustain("Sustain", 0, 100, 2), |
eEG2Decay1(_("Decay 1"), 0.005, 60, 3), |
176 |
eEG2Release("Release", 0, 60, 3), |
eEG2Decay2(_("Decay 2"), 0, 60, 3), |
177 |
eEG2Controller("Controller"), |
eEG2InfiniteSustain(_("Infinite sustain")), |
178 |
eEG2ControllerInvert("Controller invert"), |
eEG2Sustain(_("Sustain"), 0, 100, 2), |
179 |
eEG2ControllerAttackInfluence("Controller attack influence", 0, 3), |
eEG2Release(_("Release"), 0, 60, 3), |
180 |
eEG2ControllerDecayInfluence("Controller decay influence", 0, 3), |
eEG2Controller(_("Controller")), |
181 |
eEG2ControllerReleaseInfluence("Controller release influence", 0, 3), |
eEG2ControllerInvert(_("Controller invert")), |
182 |
eLFO2Frequency("Frequency", 0.1, 10, 2), |
eEG2ControllerAttackInfluence(_("Controller attack influence"), 0, 3), |
183 |
eLFO2InternalDepth("Internal depth", 0, 1200), |
eEG2ControllerDecayInfluence(_("Controller decay influence"), 0, 3), |
184 |
eLFO2ControlDepth("Control depth", 0, 1200), |
eEG2ControllerReleaseInfluence(_("Controller release influence"), 0, 3), |
185 |
eLFO2Controller("Controller"), |
eLFO2Frequency(_("Frequency"), 0.1, 10, 2), |
186 |
eLFO2FlipPhase("Flip phase"), |
eLFO2InternalDepth(_("Internal depth"), 0, 1200), |
187 |
eLFO2Sync("Sync"), |
eLFO2ControlDepth(_("Control depth"), 0, 1200), |
188 |
eEG3Attack("Attack", 0, 10, 3), |
eLFO2Controller(_("Controller")), |
189 |
eEG3Depth("Depth", -1200, 1200), |
eLFO2FlipPhase(_("Flip phase")), |
190 |
eLFO3Frequency("Frequency", 0.1, 10, 2), |
eLFO2Sync(_("Sync")), |
191 |
eLFO3InternalDepth("Internal depth", 0, 1200), |
eEG3Attack(_("Attack"), 0, 10, 3), |
192 |
eLFO3ControlDepth("Control depth", 0, 1200), |
eEG3Depth(_("Depth"), -1200, 1200), |
193 |
eLFO3Controller("Controller"), |
eLFO3Frequency(_("Frequency"), 0.1, 10, 2), |
194 |
eLFO3Sync("Sync"), |
eLFO3InternalDepth(_("Internal depth"), 0, 1200), |
195 |
eVCFEnabled("Enabled"), |
eLFO3ControlDepth(_("Control depth"), 0, 1200), |
196 |
eVCFType("Type"), |
eLFO3Controller(_("Controller")), |
197 |
eVCFCutoffController("Cutoff controller"), |
eLFO3Sync(_("Sync")), |
198 |
eVCFCutoffControllerInvert("Cutoff controller invert"), |
eVCFEnabled(_("Enabled")), |
199 |
eVCFCutoff("Cutoff"), |
eVCFType(_("Type")), |
200 |
eVCFVelocityCurve("Velocity curve"), |
eVCFCutoffController(_("Cutoff controller")), |
201 |
eVCFVelocityScale("Velocity scale"), |
eVCFCutoffControllerInvert(_("Cutoff controller invert")), |
202 |
eVCFVelocityDynamicRange("Velocity dynamic range", 0, 4), |
eVCFCutoff(_("Cutoff")), |
203 |
eVCFResonance("Resonance"), |
eVCFVelocityCurve(_("Velocity curve")), |
204 |
eVCFResonanceDynamic("Resonance dynamic"), |
eVCFVelocityScale(_("Velocity scale")), |
205 |
eVCFResonanceController("Resonance controller"), |
eVCFVelocityDynamicRange(_("Velocity dynamic range"), 0, 4), |
206 |
eVCFKeyboardTracking("Keyboard tracking"), |
eVCFResonance(_("Resonance")), |
207 |
eVCFKeyboardTrackingBreakpoint("Keyboard tracking breakpoint"), |
eVCFResonanceDynamic(_("Resonance dynamic")), |
208 |
eVelocityResponseCurve("Velocity response curve"), |
eVCFResonanceController(_("Resonance controller")), |
209 |
eVelocityResponseDepth("Velocity response depth", 0, 4), |
eVCFKeyboardTracking(_("Keyboard tracking")), |
210 |
eVelocityResponseCurveScaling("Velocity response curve scaling"), |
eVCFKeyboardTrackingBreakpoint(_("Keyboard tracking breakpoint")), |
211 |
eReleaseVelocityResponseCurve("Release velocity response curve"), |
eVelocityResponseCurve(_("Velocity response curve")), |
212 |
eReleaseVelocityResponseDepth("Release velocity response depth", 0, 4), |
eVelocityResponseDepth(_("Velocity response depth"), 0, 4), |
213 |
eReleaseTriggerDecay("Release trigger decay", 0, 8), |
eVelocityResponseCurveScaling(_("Velocity response curve scaling")), |
214 |
eCrossfade_in_start("Crossfade-in start"), |
eReleaseVelocityResponseCurve(_("Release velocity response curve")), |
215 |
eCrossfade_in_end("Crossfade-in end"), |
eReleaseVelocityResponseDepth(_("Release velocity response depth"), 0, 4), |
216 |
eCrossfade_out_start("Crossfade-out start"), |
eReleaseTriggerDecay(_("Release trigger decay"), 0, 8), |
217 |
eCrossfade_out_end("Crossfade-out end"), |
eCrossfade_in_start(_("Crossfade-in start")), |
218 |
ePitchTrack("Pitch track"), |
eCrossfade_in_end(_("Crossfade-in end")), |
219 |
eDimensionBypass("Dimension bypass"), |
eCrossfade_out_start(_("Crossfade-out start")), |
220 |
ePan("Pan", -64, 63), |
eCrossfade_out_end(_("Crossfade-out end")), |
221 |
eSelfMask("Self mask"), |
ePitchTrack(_("Pitch track")), |
222 |
eAttenuationController("Attenuation controller"), |
eDimensionBypass(_("Dimension bypass")), |
223 |
eInvertAttenuationController("Invert attenuation controller"), |
ePan(_("Pan"), -64, 63), |
224 |
eAttenuationControllerThreshold("Attenuation controller threshold"), |
eSelfMask(_("One note/voice per key (a.k.a \"Self mask\")")), |
225 |
eChannelOffset("Channel offset", 0, 9), |
eAttenuationController(_("Attenuation controller")), |
226 |
eSustainDefeat("Sustain defeat"), |
eInvertAttenuationController(_("Invert attenuation controller")), |
227 |
eMSDecode("MS decode"), |
eAttenuationControllerThreshold(_("Attenuation controller threshold")), |
228 |
eSampleStartOffset("Sample start offset", 0, 2000), |
eChannelOffset(_("Channel offset"), 0, 9), |
229 |
eUnityNote("Unity note"), |
eSustainDefeat(_("Ignore Hold Pedal (a.k.a. \"Sustain defeat\")")), |
230 |
eFineTune("Fine tune", -49, 50), |
eMSDecode(_("MS decode")), |
231 |
eGain("Gain", -96, 0, 2, -655360), |
eSampleStartOffset(_("Sample start offset"), 0, 2000), |
232 |
eGainPlus6("Gain +6dB", eGain, 6 * -655360), |
eUnityNote(_("Unity note")), |
233 |
eSampleLoopEnabled("Enabled"), |
eFineTune(_("Fine tune"), -49, 50), |
234 |
eSampleLoopStart("Loop start positon"), |
eGain(_("Gain"), -96, 0, 2, -655360), |
235 |
eSampleLoopLength("Loop size"), |
eGainPlus6(_("Gain +6dB"), eGain, 6 * -655360), |
236 |
eSampleLoopType("Loop type"), |
eSampleLoopEnabled(_("Enabled")), |
237 |
eSampleLoopInfinite("Infinite loop"), |
eSampleLoopStart(_("Loop start positon")), |
238 |
eSampleLoopPlayCount("Playback count", 1), |
eSampleLoopLength(_("Loop size")), |
239 |
|
eSampleLoopType(_("Loop type")), |
240 |
|
eSampleLoopInfinite(_("Infinite loop")), |
241 |
|
eSampleLoopPlayCount(_("Playback count"), 1), |
242 |
update_model(0) |
update_model(0) |
243 |
{ |
{ |
244 |
connect(eEG1PreAttack, &gig::DimensionRegion::EG1PreAttack); |
connect(eEG1PreAttack, &gig::DimensionRegion::EG1PreAttack); |
394 |
firstRowInBlock = 0; |
firstRowInBlock = 0; |
395 |
|
|
396 |
addHeader(_("Mandatory Settings")); |
addHeader(_("Mandatory Settings")); |
397 |
addString("Sample", lSample, wSample); |
addString(_("Sample"), lSample, wSample); |
398 |
//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); |
399 |
tooltips.set_tip(*wSample, _("Drop a sample here")); |
#ifdef OLD_TOOLTIPS |
400 |
|
tooltips.set_tip(*wSample, _("Drag & drop a sample here")); |
401 |
|
#else |
402 |
|
wSample->set_tooltip_text(_("Drag & drop a sample here")); |
403 |
|
#endif |
404 |
addProp(eUnityNote); |
addProp(eUnityNote); |
405 |
addHeader(_("Optional Settings")); |
addHeader(_("Optional Settings")); |
406 |
addProp(eSampleStartOffset); |
addProp(eSampleStartOffset); |
407 |
addProp(eChannelOffset); |
addProp(eChannelOffset); |
408 |
addHeader("Loops"); |
addHeader(_("Loops")); |
409 |
addProp(eSampleLoopEnabled); |
addProp(eSampleLoopEnabled); |
410 |
addProp(eSampleLoopStart); |
addProp(eSampleLoopStart); |
411 |
addProp(eSampleLoopLength); |
addProp(eSampleLoopLength); |
412 |
{ |
{ |
413 |
const char* choices[] = { "normal", "bidirectional", "backward", 0 }; |
const char* choices[] = { _("normal"), _("bidirectional"), _("backward"), 0 }; |
414 |
static const uint32_t values[] = { |
static const uint32_t values[] = { |
415 |
gig::loop_type_normal, |
gig::loop_type_normal, |
416 |
gig::loop_type_bidirectional, |
gig::loop_type_bidirectional, |
450 |
addProp(eLFO1InternalDepth); |
addProp(eLFO1InternalDepth); |
451 |
addProp(eLFO1ControlDepth); |
addProp(eLFO1ControlDepth); |
452 |
{ |
{ |
453 |
const char* choices[] = { "internal", "modwheel", "breath", |
const char* choices[] = { _("internal"), _("modwheel"), _("breath"), |
454 |
"internal+modwheel", "internal+breath", 0 }; |
_("internal+modwheel"), _("internal+breath"), 0 }; |
455 |
static const gig::lfo1_ctrl_t values[] = { |
static const gig::lfo1_ctrl_t values[] = { |
456 |
gig::lfo1_ctrl_internal, |
gig::lfo1_ctrl_internal, |
457 |
gig::lfo1_ctrl_modwheel, |
gig::lfo1_ctrl_modwheel, |
464 |
addProp(eLFO1Controller); |
addProp(eLFO1Controller); |
465 |
addProp(eLFO1FlipPhase); |
addProp(eLFO1FlipPhase); |
466 |
addProp(eLFO1Sync); |
addProp(eLFO1Sync); |
467 |
addHeader("Crossfade"); |
addHeader(_("Crossfade")); |
468 |
addProp(eAttenuationController); |
addProp(eAttenuationController); |
469 |
addProp(eInvertAttenuationController); |
addProp(eInvertAttenuationController); |
470 |
addProp(eAttenuationControllerThreshold); |
addProp(eAttenuationControllerThreshold); |
473 |
addProp(eCrossfade_out_start); |
addProp(eCrossfade_out_start); |
474 |
addProp(eCrossfade_out_end); |
addProp(eCrossfade_out_end); |
475 |
|
|
476 |
|
Gtk::Frame* frame = new Gtk::Frame; |
477 |
|
frame->add(crossfade_curve); |
478 |
|
table[pageno]->attach(*frame, 1, 3, rowno, rowno + 1, |
479 |
|
Gtk::SHRINK, Gtk::SHRINK); |
480 |
|
rowno++; |
481 |
|
|
482 |
|
eCrossfade_in_start.signal_value_changed().connect( |
483 |
|
sigc::mem_fun(crossfade_curve, &CrossfadeCurve::queue_draw)); |
484 |
|
eCrossfade_in_end.signal_value_changed().connect( |
485 |
|
sigc::mem_fun(crossfade_curve, &CrossfadeCurve::queue_draw)); |
486 |
|
eCrossfade_out_start.signal_value_changed().connect( |
487 |
|
sigc::mem_fun(crossfade_curve, &CrossfadeCurve::queue_draw)); |
488 |
|
eCrossfade_out_end.signal_value_changed().connect( |
489 |
|
sigc::mem_fun(crossfade_curve, &CrossfadeCurve::queue_draw)); |
490 |
|
|
491 |
nextPage(); |
nextPage(); |
492 |
|
|
493 |
addHeader(_("General Filter Settings")); |
addHeader(_("General Filter Settings")); |
494 |
addProp(eVCFEnabled); |
addProp(eVCFEnabled); |
495 |
{ |
{ |
496 |
const char* choices[] = { "lowpass", "lowpassturbo", "bandpass", |
const char* choices[] = { _("lowpass"), _("lowpassturbo"), _("bandpass"), |
497 |
"highpass", "bandreject", 0 }; |
_("highpass"), _("bandreject"), 0 }; |
498 |
static const gig::vcf_type_t values[] = { |
static const gig::vcf_type_t values[] = { |
499 |
gig::vcf_type_lowpass, |
gig::vcf_type_lowpass, |
500 |
gig::vcf_type_lowpassturbo, |
gig::vcf_type_lowpassturbo, |
506 |
} |
} |
507 |
addProp(eVCFType); |
addProp(eVCFType); |
508 |
{ |
{ |
509 |
const char* choices[] = { "none", "none2", "modwheel", "effect1", "effect2", |
const char* choices[] = { _("none"), _("none2"), _("modwheel"), _("effect1"), _("effect2"), |
510 |
"breath", "foot", "sustainpedal", "softpedal", |
_("breath"), _("foot"), _("sustainpedal"), _("softpedal"), |
511 |
"genpurpose7", "genpurpose8", "aftertouch", 0 }; |
_("genpurpose7"), _("genpurpose8"), _("aftertouch"), 0 }; |
512 |
static const gig::vcf_cutoff_ctrl_t values[] = { |
static const gig::vcf_cutoff_ctrl_t values[] = { |
513 |
gig::vcf_cutoff_ctrl_none, |
gig::vcf_cutoff_ctrl_none, |
514 |
gig::vcf_cutoff_ctrl_none2, |
gig::vcf_cutoff_ctrl_none2, |
528 |
addProp(eVCFCutoffController); |
addProp(eVCFCutoffController); |
529 |
addProp(eVCFCutoffControllerInvert); |
addProp(eVCFCutoffControllerInvert); |
530 |
addProp(eVCFCutoff); |
addProp(eVCFCutoff); |
531 |
const char* curve_type_texts[] = { "nonlinear", "linear", "special", 0 }; |
const char* curve_type_texts[] = { _("nonlinear"), _("linear"), _("special"), 0 }; |
532 |
static const gig::curve_type_t curve_type_values[] = { |
static const gig::curve_type_t curve_type_values[] = { |
533 |
gig::curve_type_nonlinear, |
gig::curve_type_nonlinear, |
534 |
gig::curve_type_linear, |
gig::curve_type_linear, |
538 |
addProp(eVCFVelocityCurve); |
addProp(eVCFVelocityCurve); |
539 |
addProp(eVCFVelocityScale); |
addProp(eVCFVelocityScale); |
540 |
addProp(eVCFVelocityDynamicRange); |
addProp(eVCFVelocityDynamicRange); |
541 |
|
|
542 |
|
eVCFCutoffController.signal_value_changed().connect( |
543 |
|
sigc::mem_fun(cutoff_curve, &VelocityCurve::queue_draw)); |
544 |
|
eVCFVelocityCurve.signal_value_changed().connect( |
545 |
|
sigc::mem_fun(cutoff_curve, &VelocityCurve::queue_draw)); |
546 |
|
eVCFVelocityScale.signal_value_changed().connect( |
547 |
|
sigc::mem_fun(cutoff_curve, &VelocityCurve::queue_draw)); |
548 |
|
eVCFVelocityDynamicRange.signal_value_changed().connect( |
549 |
|
sigc::mem_fun(cutoff_curve, &VelocityCurve::queue_draw)); |
550 |
|
|
551 |
|
frame = new Gtk::Frame; |
552 |
|
frame->add(cutoff_curve); |
553 |
|
table[pageno]->attach(*frame, 1, 3, rowno, rowno + 1, |
554 |
|
Gtk::SHRINK, Gtk::SHRINK); |
555 |
|
rowno++; |
556 |
|
|
557 |
addProp(eVCFResonance); |
addProp(eVCFResonance); |
558 |
addProp(eVCFResonanceDynamic); |
addProp(eVCFResonanceDynamic); |
559 |
{ |
{ |
560 |
const char* choices[] = { "none", "genpurpose3", "genpurpose4", |
const char* choices[] = { _("none"), _("genpurpose3"), _("genpurpose4"), |
561 |
"genpurpose5", "genpurpose6", 0 }; |
_("genpurpose5"), _("genpurpose6"), 0 }; |
562 |
static const gig::vcf_res_ctrl_t values[] = { |
static const gig::vcf_res_ctrl_t values[] = { |
563 |
gig::vcf_res_ctrl_none, |
gig::vcf_res_ctrl_none, |
564 |
gig::vcf_res_ctrl_genpurpose3, |
gig::vcf_res_ctrl_genpurpose3, |
574 |
|
|
575 |
nextPage(); |
nextPage(); |
576 |
|
|
577 |
addHeader(_("Filter Cutoff Envelope (EG2)")); |
lEG2 = addHeader(_("Filter Cutoff Envelope (EG2)")); |
578 |
addProp(eEG2PreAttack); |
addProp(eEG2PreAttack); |
579 |
addProp(eEG2Attack); |
addProp(eEG2Attack); |
580 |
addProp(eEG2Decay1); |
addProp(eEG2Decay1); |
587 |
addProp(eEG2ControllerAttackInfluence); |
addProp(eEG2ControllerAttackInfluence); |
588 |
addProp(eEG2ControllerDecayInfluence); |
addProp(eEG2ControllerDecayInfluence); |
589 |
addProp(eEG2ControllerReleaseInfluence); |
addProp(eEG2ControllerReleaseInfluence); |
590 |
addHeader(_("Filter Cutoff Oscillator (LFO2)")); |
lLFO2 = addHeader(_("Filter Cutoff Oscillator (LFO2)")); |
591 |
addProp(eLFO2Frequency); |
addProp(eLFO2Frequency); |
592 |
addProp(eLFO2InternalDepth); |
addProp(eLFO2InternalDepth); |
593 |
addProp(eLFO2ControlDepth); |
addProp(eLFO2ControlDepth); |
594 |
{ |
{ |
595 |
const char* choices[] = { "internal", "modwheel", "foot", |
const char* choices[] = { _("internal"), _("modwheel"), _("foot"), |
596 |
"internal+modwheel", "internal+foot", 0 }; |
_("internal+modwheel"), _("internal+foot"), 0 }; |
597 |
static const gig::lfo2_ctrl_t values[] = { |
static const gig::lfo2_ctrl_t values[] = { |
598 |
gig::lfo2_ctrl_internal, |
gig::lfo2_ctrl_internal, |
599 |
gig::lfo2_ctrl_modwheel, |
gig::lfo2_ctrl_modwheel, |
620 |
addProp(eLFO3InternalDepth); |
addProp(eLFO3InternalDepth); |
621 |
addProp(eLFO3ControlDepth); |
addProp(eLFO3ControlDepth); |
622 |
{ |
{ |
623 |
const char* choices[] = { "internal", "modwheel", "aftertouch", |
const char* choices[] = { _("internal"), _("modwheel"), _("aftertouch"), |
624 |
"internal+modwheel", "internal+aftertouch", 0 }; |
_("internal+modwheel"), _("internal+aftertouch"), 0 }; |
625 |
static const gig::lfo3_ctrl_t values[] = { |
static const gig::lfo3_ctrl_t values[] = { |
626 |
gig::lfo3_ctrl_internal, |
gig::lfo3_ctrl_internal, |
627 |
gig::lfo3_ctrl_modwheel, |
gig::lfo3_ctrl_modwheel, |
636 |
|
|
637 |
nextPage(); |
nextPage(); |
638 |
|
|
639 |
|
addHeader(_("Velocity Response")); |
640 |
eVelocityResponseCurve.set_choices(curve_type_texts, curve_type_values); |
eVelocityResponseCurve.set_choices(curve_type_texts, curve_type_values); |
641 |
addProp(eVelocityResponseCurve); |
addProp(eVelocityResponseCurve); |
642 |
addProp(eVelocityResponseDepth); |
addProp(eVelocityResponseDepth); |
643 |
addProp(eVelocityResponseCurveScaling); |
addProp(eVelocityResponseCurveScaling); |
644 |
|
|
645 |
|
eVelocityResponseCurve.signal_value_changed().connect( |
646 |
|
sigc::mem_fun(velocity_curve, &VelocityCurve::queue_draw)); |
647 |
|
eVelocityResponseDepth.signal_value_changed().connect( |
648 |
|
sigc::mem_fun(velocity_curve, &VelocityCurve::queue_draw)); |
649 |
|
eVelocityResponseCurveScaling.signal_value_changed().connect( |
650 |
|
sigc::mem_fun(velocity_curve, &VelocityCurve::queue_draw)); |
651 |
|
|
652 |
|
frame = new Gtk::Frame; |
653 |
|
frame->add(velocity_curve); |
654 |
|
table[pageno]->attach(*frame, 1, 3, rowno, rowno + 1, |
655 |
|
Gtk::SHRINK, Gtk::SHRINK); |
656 |
|
rowno++; |
657 |
|
|
658 |
|
addHeader(_("Release Velocity Response")); |
659 |
eReleaseVelocityResponseCurve.set_choices(curve_type_texts, |
eReleaseVelocityResponseCurve.set_choices(curve_type_texts, |
660 |
curve_type_values); |
curve_type_values); |
661 |
addProp(eReleaseVelocityResponseCurve); |
addProp(eReleaseVelocityResponseCurve); |
662 |
addProp(eReleaseVelocityResponseDepth); |
addProp(eReleaseVelocityResponseDepth); |
663 |
|
|
664 |
|
eReleaseVelocityResponseCurve.signal_value_changed().connect( |
665 |
|
sigc::mem_fun(release_curve, &VelocityCurve::queue_draw)); |
666 |
|
eReleaseVelocityResponseDepth.signal_value_changed().connect( |
667 |
|
sigc::mem_fun(release_curve, &VelocityCurve::queue_draw)); |
668 |
|
frame = new Gtk::Frame; |
669 |
|
frame->add(release_curve); |
670 |
|
table[pageno]->attach(*frame, 1, 3, rowno, rowno + 1, |
671 |
|
Gtk::SHRINK, Gtk::SHRINK); |
672 |
|
rowno++; |
673 |
|
|
674 |
addProp(eReleaseTriggerDecay); |
addProp(eReleaseTriggerDecay); |
675 |
{ |
{ |
676 |
const char* choices[] = { "none", "effect4depth", "effect5depth", 0 }; |
const char* choices[] = { _("none"), _("effect4depth"), _("effect5depth"), 0 }; |
677 |
static const gig::dim_bypass_ctrl_t values[] = { |
static const gig::dim_bypass_ctrl_t values[] = { |
678 |
gig::dim_bypass_ctrl_none, |
gig::dim_bypass_ctrl_none, |
679 |
gig::dim_bypass_ctrl_94, |
gig::dim_bypass_ctrl_94, |
682 |
eDimensionBypass.set_choices(choices, values); |
eDimensionBypass.set_choices(choices, values); |
683 |
} |
} |
684 |
addProp(eDimensionBypass); |
addProp(eDimensionBypass); |
685 |
|
eSelfMask.widget.set_tooltip_text(_("If enabled: high velocity notes will stop low velocity notes at the same note, that way you can save voices that wouldn't be audible anyway.")); |
686 |
addProp(eSelfMask); |
addProp(eSelfMask); |
687 |
|
eSustainDefeat.widget.set_tooltip_text(_("If enabled: sustain pedal will not hold a note.")); |
688 |
addProp(eSustainDefeat); |
addProp(eSustainDefeat); |
689 |
|
eMSDecode.widget.set_tooltip_text(_("Gigastudio specific flag: defines if Mid Side Recordings should be decoded.")); |
690 |
addProp(eMSDecode); |
addProp(eMSDecode); |
691 |
|
|
692 |
nextPage(); |
nextPage(); |
733 |
eSampleLoopInfinite.signal_value_changed().connect( |
eSampleLoopInfinite.signal_value_changed().connect( |
734 |
sigc::mem_fun(*this, &DimRegionEdit::loop_infinite_toggled)); |
sigc::mem_fun(*this, &DimRegionEdit::loop_infinite_toggled)); |
735 |
|
|
736 |
append_page(*table[0], "Sample"); |
append_page(*table[0], _("Sample")); |
737 |
append_page(*table[1], "Amplitude (1)"); |
append_page(*table[1], _("Amplitude (1)")); |
738 |
append_page(*table[2], "Amplitude (2)"); |
append_page(*table[2], _("Amplitude (2)")); |
739 |
append_page(*table[3], "Filter (1)"); |
append_page(*table[3], _("Filter (1)")); |
740 |
append_page(*table[4], "Filter (2)"); |
append_page(*table[4], _("Filter (2)")); |
741 |
append_page(*table[5], "Pitch"); |
append_page(*table[5], _("Pitch")); |
742 |
append_page(*table[6], "Misc"); |
append_page(*table[6], _("Misc")); |
743 |
} |
} |
744 |
|
|
745 |
DimRegionEdit::~DimRegionEdit() |
DimRegionEdit::~DimRegionEdit() |
750 |
Gtk::Entry*& widget) |
Gtk::Entry*& widget) |
751 |
{ |
{ |
752 |
label = new Gtk::Label(Glib::ustring(labelText) + ":"); |
label = new Gtk::Label(Glib::ustring(labelText) + ":"); |
753 |
label->set_alignment(Gtk::ALIGN_LEFT); |
label->set_alignment(Gtk::ALIGN_START); |
754 |
|
|
755 |
table[pageno]->attach(*label, 1, 2, rowno, rowno + 1, |
table[pageno]->attach(*label, 1, 2, rowno, rowno + 1, |
756 |
Gtk::FILL, Gtk::SHRINK); |
Gtk::FILL, Gtk::SHRINK); |
763 |
rowno++; |
rowno++; |
764 |
} |
} |
765 |
|
|
766 |
void DimRegionEdit::addHeader(const char* text) |
Gtk::Label* DimRegionEdit::addHeader(const char* text) |
767 |
{ |
{ |
768 |
if (firstRowInBlock < rowno - 1) |
if (firstRowInBlock < rowno - 1) |
769 |
{ |
{ |
776 |
str += "</b>"; |
str += "</b>"; |
777 |
Gtk::Label* label = new Gtk::Label(str); |
Gtk::Label* label = new Gtk::Label(str); |
778 |
label->set_use_markup(); |
label->set_use_markup(); |
779 |
label->set_alignment(Gtk::ALIGN_LEFT); |
label->set_alignment(Gtk::ALIGN_START); |
780 |
table[pageno]->attach(*label, 0, 3, rowno, rowno + 1, |
table[pageno]->attach(*label, 0, 3, rowno, rowno + 1, |
781 |
Gtk::FILL, Gtk::SHRINK); |
Gtk::FILL, Gtk::SHRINK); |
782 |
rowno++; |
rowno++; |
783 |
firstRowInBlock = rowno; |
firstRowInBlock = rowno; |
784 |
|
return label; |
785 |
} |
} |
786 |
|
|
787 |
void DimRegionEdit::nextPage() |
void DimRegionEdit::nextPage() |
824 |
void DimRegionEdit::set_dim_region(gig::DimensionRegion* d) |
void DimRegionEdit::set_dim_region(gig::DimensionRegion* d) |
825 |
{ |
{ |
826 |
dimregion = d; |
dimregion = d; |
827 |
|
velocity_curve.set_dim_region(d); |
828 |
|
release_curve.set_dim_region(d); |
829 |
|
cutoff_curve.set_dim_region(d); |
830 |
|
crossfade_curve.set_dim_region(d); |
831 |
|
|
832 |
set_sensitive(d); |
set_sensitive(d); |
833 |
if (!d) return; |
if (!d) return; |
834 |
|
|
|
// TODO: Here is where we decide which dimregions that are going |
|
|
// to be modified when the user changes a parameter. For now, just |
|
|
// choose the shown dimregion. |
|
|
dimregs.clear(); |
|
|
dimregs.insert(d); |
|
|
|
|
835 |
update_model++; |
update_model++; |
836 |
eEG1PreAttack.set_value(d->EG1PreAttack); |
eEG1PreAttack.set_value(d->EG1PreAttack); |
837 |
eEG1Attack.set_value(d->EG1Attack); |
eEG1Attack.set_value(d->EG1Attack); |
928 |
d->pSample ? d->pSample->LoopPlayCount : 0); |
d->pSample ? d->pSample->LoopPlayCount : 0); |
929 |
update_model--; |
update_model--; |
930 |
|
|
931 |
wSample->set_text(d->pSample ? d->pSample->pInfo->Name.c_str() : "NULL"); |
wSample->set_text(d->pSample ? gig_to_utf8(d->pSample->pInfo->Name) : |
932 |
|
_("NULL")); |
933 |
|
|
934 |
update_loop_elements(); |
update_loop_elements(); |
935 |
VCFEnabled_toggled(); |
VCFEnabled_toggled(); |
944 |
eVCFVelocityCurve.set_sensitive(sensitive); |
eVCFVelocityCurve.set_sensitive(sensitive); |
945 |
eVCFVelocityScale.set_sensitive(sensitive); |
eVCFVelocityScale.set_sensitive(sensitive); |
946 |
eVCFVelocityDynamicRange.set_sensitive(sensitive); |
eVCFVelocityDynamicRange.set_sensitive(sensitive); |
947 |
|
cutoff_curve.set_sensitive(sensitive); |
948 |
eVCFResonance.set_sensitive(sensitive); |
eVCFResonance.set_sensitive(sensitive); |
949 |
eVCFResonanceController.set_sensitive(sensitive); |
eVCFResonanceController.set_sensitive(sensitive); |
950 |
eVCFKeyboardTracking.set_sensitive(sensitive); |
eVCFKeyboardTracking.set_sensitive(sensitive); |
951 |
eVCFKeyboardTrackingBreakpoint.set_sensitive(sensitive); |
eVCFKeyboardTrackingBreakpoint.set_sensitive(sensitive); |
952 |
|
lEG2->set_sensitive(sensitive); |
953 |
eEG2PreAttack.set_sensitive(sensitive); |
eEG2PreAttack.set_sensitive(sensitive); |
954 |
eEG2Attack.set_sensitive(sensitive); |
eEG2Attack.set_sensitive(sensitive); |
955 |
eEG2Decay1.set_sensitive(sensitive); |
eEG2Decay1.set_sensitive(sensitive); |
960 |
eEG2ControllerAttackInfluence.set_sensitive(sensitive); |
eEG2ControllerAttackInfluence.set_sensitive(sensitive); |
961 |
eEG2ControllerDecayInfluence.set_sensitive(sensitive); |
eEG2ControllerDecayInfluence.set_sensitive(sensitive); |
962 |
eEG2ControllerReleaseInfluence.set_sensitive(sensitive); |
eEG2ControllerReleaseInfluence.set_sensitive(sensitive); |
963 |
|
lLFO2->set_sensitive(sensitive); |
964 |
eLFO2Frequency.set_sensitive(sensitive); |
eLFO2Frequency.set_sensitive(sensitive); |
965 |
eLFO2InternalDepth.set_sensitive(sensitive); |
eLFO2InternalDepth.set_sensitive(sensitive); |
966 |
eLFO2ControlDepth.set_sensitive(sensitive); |
eLFO2ControlDepth.set_sensitive(sensitive); |
993 |
eVCFCutoffControllerInvert.set_sensitive(hasController); |
eVCFCutoffControllerInvert.set_sensitive(hasController); |
994 |
eVCFCutoff.set_sensitive(!hasController); |
eVCFCutoff.set_sensitive(!hasController); |
995 |
eVCFResonanceDynamic.set_sensitive(!hasController); |
eVCFResonanceDynamic.set_sensitive(!hasController); |
996 |
eVCFVelocityScale.label.set_text(hasController ? "Minimum cutoff:" : |
eVCFVelocityScale.label.set_text(hasController ? _("Minimum cutoff:") : |
997 |
"Velocity scale:"); |
_("Velocity scale:")); |
998 |
} |
} |
999 |
|
|
1000 |
void DimRegionEdit::VCFResonanceController_changed() |
void DimRegionEdit::VCFResonanceController_changed() |
1037 |
eCrossfade_in_end.set_sensitive(hasController); |
eCrossfade_in_end.set_sensitive(hasController); |
1038 |
eCrossfade_out_start.set_sensitive(hasController); |
eCrossfade_out_start.set_sensitive(hasController); |
1039 |
eCrossfade_out_end.set_sensitive(hasController); |
eCrossfade_out_end.set_sensitive(hasController); |
1040 |
|
crossfade_curve.set_sensitive(hasController); |
1041 |
} |
} |
1042 |
|
|
1043 |
void DimRegionEdit::LFO1Controller_changed() |
void DimRegionEdit::LFO1Controller_changed() |
1151 |
update_model--; |
update_model--; |
1152 |
} |
} |
1153 |
|
|
1154 |
bool DimRegionEdit::set_sample(gig::Sample* sample) |
bool DimRegionEdit::set_sample(gig::Sample* sample, bool copy_sample_unity, bool copy_sample_tune, bool copy_sample_loop) |
1155 |
{ |
{ |
1156 |
if (dimregion) { |
if (dimregion) { |
1157 |
//TODO: we should better move the code from MainWindow::on_sample_label_drop_drag_data_received() here |
//TODO: we should better move the code from MainWindow::on_sample_label_drop_drag_data_received() here |
1159 |
// currently commented because we're sending a similar signal in MainWindow::on_sample_label_drop_drag_data_received() |
// currently commented because we're sending a similar signal in MainWindow::on_sample_label_drop_drag_data_received() |
1160 |
//dimreg_to_be_changed_signal.emit(dimregion); |
//dimreg_to_be_changed_signal.emit(dimregion); |
1161 |
|
|
1162 |
gig::Sample* oldref = dimregion->pSample; |
// make sure stereo samples always are the same in both |
1163 |
dimregion->pSample = sample; |
// dimregs in the samplechannel dimension |
1164 |
|
int nbDimregs = 1; |
1165 |
|
gig::DimensionRegion* d[2] = { dimregion, 0 }; |
1166 |
|
if (sample->Channels == 2) { |
1167 |
|
gig::Region* region = dimregion->GetParent(); |
1168 |
|
|
1169 |
|
int bitcount = 0; |
1170 |
|
int stereo_bit = 0; |
1171 |
|
for (int dim = 0 ; dim < region->Dimensions ; dim++) { |
1172 |
|
if (region->pDimensionDefinitions[dim].dimension == gig::dimension_samplechannel) { |
1173 |
|
stereo_bit = 1 << bitcount; |
1174 |
|
break; |
1175 |
|
} |
1176 |
|
bitcount += region->pDimensionDefinitions[dim].bits; |
1177 |
|
} |
1178 |
|
|
1179 |
|
if (stereo_bit) { |
1180 |
|
int dimregno; |
1181 |
|
for (dimregno = 0 ; dimregno < region->DimensionRegions ; dimregno++) { |
1182 |
|
if (region->pDimensionRegions[dimregno] == dimregion) { |
1183 |
|
break; |
1184 |
|
} |
1185 |
|
} |
1186 |
|
d[0] = region->pDimensionRegions[dimregno & ~stereo_bit]; |
1187 |
|
d[1] = region->pDimensionRegions[dimregno | stereo_bit]; |
1188 |
|
nbDimregs = 2; |
1189 |
|
} |
1190 |
|
} |
1191 |
|
|
1192 |
// copy sample information from Sample to DimensionRegion |
gig::Sample* oldref = dimregion->pSample; |
1193 |
|
|
1194 |
dimregion->UnityNote = sample->MIDIUnityNote; |
for (int i = 0 ; i < nbDimregs ; i++) { |
1195 |
dimregion->FineTune = sample->FineTune; |
d[i]->pSample = sample; |
1196 |
|
|
1197 |
int loops = sample->Loops ? 1 : 0; |
// copy sample information from Sample to DimensionRegion |
1198 |
while (dimregion->SampleLoops > loops) { |
if (copy_sample_unity) |
1199 |
dimregion->DeleteSampleLoop(&dimregion->pSampleLoops[0]); |
d[i]->UnityNote = sample->MIDIUnityNote; |
1200 |
} |
if (copy_sample_tune) |
1201 |
while (dimregion->SampleLoops < sample->Loops) { |
d[i]->FineTune = sample->FineTune; |
1202 |
DLS::sample_loop_t loop; |
if (copy_sample_loop) { |
1203 |
dimregion->AddSampleLoop(&loop); |
int loops = sample->Loops ? 1 : 0; |
1204 |
} |
while (d[i]->SampleLoops > loops) { |
1205 |
if (loops) { |
d[i]->DeleteSampleLoop(&d[i]->pSampleLoops[0]); |
1206 |
dimregion->pSampleLoops[0].Size = sizeof(DLS::sample_loop_t); |
} |
1207 |
dimregion->pSampleLoops[0].LoopType = sample->LoopType; |
while (d[i]->SampleLoops < sample->Loops) { |
1208 |
dimregion->pSampleLoops[0].LoopStart = sample->LoopStart; |
DLS::sample_loop_t loop; |
1209 |
dimregion->pSampleLoops[0].LoopLength = sample->LoopEnd - sample->LoopStart + 1; |
d[i]->AddSampleLoop(&loop); |
1210 |
|
} |
1211 |
|
if (loops) { |
1212 |
|
d[i]->pSampleLoops[0].Size = sizeof(DLS::sample_loop_t); |
1213 |
|
d[i]->pSampleLoops[0].LoopType = sample->LoopType; |
1214 |
|
d[i]->pSampleLoops[0].LoopStart = sample->LoopStart; |
1215 |
|
d[i]->pSampleLoops[0].LoopLength = sample->LoopEnd - sample->LoopStart + 1; |
1216 |
|
} |
1217 |
|
} |
1218 |
} |
} |
1219 |
|
|
1220 |
// update ui |
// update ui |
1221 |
update_model++; |
update_model++; |
1222 |
wSample->set_text(dimregion->pSample->pInfo->Name); |
wSample->set_text(gig_to_utf8(dimregion->pSample->pInfo->Name)); |
1223 |
eUnityNote.set_value(dimregion->UnityNote); |
eUnityNote.set_value(dimregion->UnityNote); |
1224 |
eFineTune.set_value(dimregion->FineTune); |
eFineTune.set_value(dimregion->FineTune); |
1225 |
eSampleLoopEnabled.set_value(dimregion->SampleLoops); |
eSampleLoopEnabled.set_value(dimregion->SampleLoops); |