/[svn]/gigedit/trunk/src/dimregionedit.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/dimregionedit.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1138 by persson, Sat Mar 31 09:33:40 2007 UTC revision 1151 by schoenebeck, Sun Apr 8 13:45:45 2007 UTC
# Line 104  DimRegionEdit::DimRegionEdit() : Line 104  DimRegionEdit::DimRegionEdit() :
104      eGainPlus6("Gain +6dB", eGain, 6 * -655360),      eGainPlus6("Gain +6dB", eGain, 6 * -655360),
105      eSampleLoops("SampleLoops", 0, 1)      eSampleLoops("SampleLoops", 0, 1)
106  {  {
107      for (int i = 0 ; i < 5 ; i++) {      for (int i = 0 ; i < 7 ; i++) {
108          table[i] = new Gtk::Table(3, 1);          table[i] = new Gtk::Table(3, 1);
109          table[i]->set_col_spacings(5);          table[i]->set_col_spacings(7);
110      }      }
111    
112      pageno = 0;      pageno = 0;
113      rowno = 0;      rowno = 0;
114      firstRowInBlock = 0;      firstRowInBlock = 0;
115    
116        addHeader("General (mandatory):");
117      addString("Sample", lSample, wSample);      addString("Sample", lSample, wSample);
118      //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);
119      tooltips.set_tip(*wSample, "drop a sample here");      tooltips.set_tip(*wSample, "drop a sample here");
120      addHeader("EG1");      addProp(eUnityNote);
121        addHeader("Optional Settings:");
122        addProp(eSampleStartOffset);
123        addProp(ePan);
124        addProp(eChannelOffset);
125        addHeader("Loops:");
126        addProp(eSampleLoops);
127        addHeader("Crossfade:");
128        addProp(eCrossfade_in_start);
129        addProp(eCrossfade_in_end);
130        addProp(eCrossfade_out_start);
131        addProp(eCrossfade_out_end);
132    
133        nextPage();
134    
135        addHeader("General Amplitude Settings:");
136        addProp(eGain);
137        addProp(eGainPlus6);
138        addProp(eAttenuationController);
139        addProp(eInvertAttenuationController);
140        addProp(eAttenuationControllerThreshold);
141        addHeader("EG1 (Amplitude Envelope):");
142      addProp(eEG1PreAttack);      addProp(eEG1PreAttack);
143      addProp(eEG1Attack);      addProp(eEG1Attack);
144      addProp(eEG1Decay1);      addProp(eEG1Decay1);
# Line 130  DimRegionEdit::DimRegionEdit() : Line 152  DimRegionEdit::DimRegionEdit() :
152      addProp(eEG1ControllerAttackInfluence);      addProp(eEG1ControllerAttackInfluence);
153      addProp(eEG1ControllerDecayInfluence);      addProp(eEG1ControllerDecayInfluence);
154      addProp(eEG1ControllerReleaseInfluence);      addProp(eEG1ControllerReleaseInfluence);
155      addHeader("LFO1");  
156        nextPage();
157    
158        addHeader("LFO1 (Amplitude Oscillator):");
159      addProp(eLFO1Frequency);      addProp(eLFO1Frequency);
160      addProp(eLFO1InternalDepth);      addProp(eLFO1InternalDepth);
161      addProp(eLFO1ControlDepth);      addProp(eLFO1ControlDepth);
# Line 151  DimRegionEdit::DimRegionEdit() : Line 176  DimRegionEdit::DimRegionEdit() :
176      addProp(eLFO1Sync);      addProp(eLFO1Sync);
177    
178      nextPage();      nextPage();
     addHeader("EG2");  
     addProp(eEG2PreAttack);  
     addProp(eEG2Attack);  
     addProp(eEG2Decay1);  
     addProp(eEG2Decay2);  
     addProp(eEG2InfiniteSustain);  
     addProp(eEG2Sustain);  
     addProp(eEG2Release);  
     addProp(eEG2Controller);  
     addProp(eEG2ControllerInvert);  
     addProp(eEG2ControllerAttackInfluence);  
     addProp(eEG2ControllerDecayInfluence);  
     addProp(eEG2ControllerReleaseInfluence);  
     addHeader("LFO2");  
     addProp(eLFO2Frequency);  
     addProp(eLFO2InternalDepth);  
     addProp(eLFO2ControlDepth);  
     {  
         char* choices[] = { "internal", "modwheel", "foot",  
                             "internal+modwheel", "internal+foot", 0 };  
         static const gig::lfo2_ctrl_t values[] = {  
             gig::lfo2_ctrl_internal,  
             gig::lfo2_ctrl_modwheel,  
             gig::lfo2_ctrl_foot,  
             gig::lfo2_ctrl_internal_modwheel,  
             gig::lfo2_ctrl_internal_foot  
         };  
         eLFO2Controller.set_choices(choices, values);  
     }  
     addProp(eLFO2Controller);  
     addProp(eLFO2FlipPhase);  
     addProp(eLFO2Sync);  
   
     nextPage();  
179    
180      addHeader("EG3");      addHeader("General Filter Settings:");
     addProp(eEG3Attack);  
     addProp(eEG3Depth);  
     addHeader("LFO3");  
     addProp(eLFO3Frequency);  
     addProp(eLFO3InternalDepth);  
     addProp(eLFO3ControlDepth);  
     {  
         char* choices[] = { "internal", "modwheel", "aftertouch",  
                             "internal+modwheel", "internal+aftertouch", 0 };  
         static const gig::lfo3_ctrl_t values[] = {  
             gig::lfo3_ctrl_internal,  
             gig::lfo3_ctrl_modwheel,  
             gig::lfo3_ctrl_aftertouch,  
             gig::lfo3_ctrl_internal_modwheel,  
             gig::lfo3_ctrl_internal_aftertouch  
         };  
         eLFO3Controller.set_choices(choices, values);  
     }  
     addProp(eLFO3Controller);  
     addProp(eLFO3Sync);  
     addHeader("VCF");  
181      addProp(eVCFEnabled);      addProp(eVCFEnabled);
182      {      {
183          char* choices[] = { "lowpass", "lowpassturbo", "bandpass",          char* choices[] = { "lowpass", "lowpassturbo", "bandpass",
# Line 275  DimRegionEdit::DimRegionEdit() : Line 245  DimRegionEdit::DimRegionEdit() :
245    
246      nextPage();      nextPage();
247    
248        addHeader("EG2 (Filter Cutoff Envelope):");
249        addProp(eEG2PreAttack);
250        addProp(eEG2Attack);
251        addProp(eEG2Decay1);
252        addProp(eEG2Decay2);
253        addProp(eEG2InfiniteSustain);
254        addProp(eEG2Sustain);
255        addProp(eEG2Release);
256        addProp(eEG2Controller);
257        addProp(eEG2ControllerInvert);
258        addProp(eEG2ControllerAttackInfluence);
259        addProp(eEG2ControllerDecayInfluence);
260        addProp(eEG2ControllerReleaseInfluence);
261        addHeader("LFO2 (Filter Cutoff Oscillator):");
262        addProp(eLFO2Frequency);
263        addProp(eLFO2InternalDepth);
264        addProp(eLFO2ControlDepth);
265        {
266            char* choices[] = { "internal", "modwheel", "foot",
267                                "internal+modwheel", "internal+foot", 0 };
268            static const gig::lfo2_ctrl_t values[] = {
269                gig::lfo2_ctrl_internal,
270                gig::lfo2_ctrl_modwheel,
271                gig::lfo2_ctrl_foot,
272                gig::lfo2_ctrl_internal_modwheel,
273                gig::lfo2_ctrl_internal_foot
274            };
275            eLFO2Controller.set_choices(choices, values);
276        }
277        addProp(eLFO2Controller);
278        addProp(eLFO2FlipPhase);
279        addProp(eLFO2Sync);
280    
281        nextPage();
282    
283        addHeader("General Pitch Settings:");
284        addProp(eFineTune);
285        addProp(ePitchTrack);
286        addHeader("EG3 (Pitch Envelope):");
287        addProp(eEG3Attack);
288        addProp(eEG3Depth);
289        addHeader("LFO3 (Pitch Oscillator):");
290        addProp(eLFO3Frequency);
291        addProp(eLFO3InternalDepth);
292        addProp(eLFO3ControlDepth);
293        {
294            char* choices[] = { "internal", "modwheel", "aftertouch",
295                                "internal+modwheel", "internal+aftertouch", 0 };
296            static const gig::lfo3_ctrl_t values[] = {
297                gig::lfo3_ctrl_internal,
298                gig::lfo3_ctrl_modwheel,
299                gig::lfo3_ctrl_aftertouch,
300                gig::lfo3_ctrl_internal_modwheel,
301                gig::lfo3_ctrl_internal_aftertouch
302            };
303            eLFO3Controller.set_choices(choices, values);
304        }
305        addProp(eLFO3Controller);
306        addProp(eLFO3Sync);
307    
308        nextPage();
309    
310      eVelocityResponseCurve.set_choices(curve_type_texts, curve_type_values);      eVelocityResponseCurve.set_choices(curve_type_texts, curve_type_values);
311      addProp(eVelocityResponseCurve);      addProp(eVelocityResponseCurve);
312      addProp(eVelocityResponseDepth);      addProp(eVelocityResponseDepth);
# Line 284  DimRegionEdit::DimRegionEdit() : Line 316  DimRegionEdit::DimRegionEdit() :
316      addProp(eReleaseVelocityResponseCurve);      addProp(eReleaseVelocityResponseCurve);
317      addProp(eReleaseVelocityResponseDepth);      addProp(eReleaseVelocityResponseDepth);
318      addProp(eReleaseTriggerDecay);      addProp(eReleaseTriggerDecay);
     addProp(eCrossfade_in_start);  
     addProp(eCrossfade_in_end);  
     addProp(eCrossfade_out_start);  
     addProp(eCrossfade_out_end);  
     addProp(ePitchTrack);  
319      {      {
320          char* choices[] = { "none", "effect4depth", "effect5depth", 0 };          char* choices[] = { "none", "effect4depth", "effect5depth", 0 };
321          static const gig::dim_bypass_ctrl_t values[] = {          static const gig::dim_bypass_ctrl_t values[] = {
# Line 299  DimRegionEdit::DimRegionEdit() : Line 326  DimRegionEdit::DimRegionEdit() :
326          eDimensionBypass.set_choices(choices, values);          eDimensionBypass.set_choices(choices, values);
327      }      }
328      addProp(eDimensionBypass);      addProp(eDimensionBypass);
     addProp(ePan);  
329      addProp(eSelfMask);      addProp(eSelfMask);
     addProp(eAttenuationController);  
     addProp(eInvertAttenuationController);  
     addProp(eAttenuationControllerThreshold);  
     addProp(eChannelOffset);  
330      addProp(eSustainDefeat);      addProp(eSustainDefeat);
   
     nextPage();  
331      addProp(eMSDecode);      addProp(eMSDecode);
332      addProp(eSampleStartOffset);  
     addProp(eUnityNote);  
     addProp(eFineTune);  
     addProp(eGain);  
     addProp(eGainPlus6);  
     addProp(eSampleLoops);  
333      nextPage();      nextPage();
334    
335    
336      eEG1InfiniteSustain.signal_toggled().connect(      eEG1InfiniteSustain.signal_toggled().connect(
337          sigc::mem_fun(*this, &DimRegionEdit::EG1InfiniteSustain_toggled) );          sigc::mem_fun(*this, &DimRegionEdit::EG1InfiniteSustain_toggled) );
338      eEG2InfiniteSustain.signal_toggled().connect(      eEG2InfiniteSustain.signal_toggled().connect(
# Line 349  DimRegionEdit::DimRegionEdit() : Line 365  DimRegionEdit::DimRegionEdit() :
365      eCrossfade_out_end.signal_value_changed().connect(      eCrossfade_out_end.signal_value_changed().connect(
366          sigc::mem_fun(*this, &DimRegionEdit::crossfade4_changed));          sigc::mem_fun(*this, &DimRegionEdit::crossfade4_changed));
367    
368      append_page(*table[0], "EG1");      append_page(*table[0], "Sample");
369      append_page(*table[1], "EG2");      append_page(*table[1], "Amplitude (1)");
370      append_page(*table[2], "EG3");      append_page(*table[2], "Amplitude (2)");
371      append_page(*table[3], "Velocity");      append_page(*table[3], "Filter (1)");
372      append_page(*table[4], "Misc");      append_page(*table[4], "Filter (2)");
373        append_page(*table[5], "Pitch");
374        append_page(*table[6], "Misc");
375  }  }
376    
377  DimRegionEdit::~DimRegionEdit()  DimRegionEdit::~DimRegionEdit()

Legend:
Removed from v.1138  
changed lines
  Added in v.1151

  ViewVC Help
Powered by ViewVC