/[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 1150 by schoenebeck, Sun Apr 8 00:14:17 2007 UTC
# Line 113  DimRegionEdit::DimRegionEdit() : Line 113  DimRegionEdit::DimRegionEdit() :
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");      addHeader("LFO1 (Amplitude Oscillator):");
156      addProp(eLFO1Frequency);      addProp(eLFO1Frequency);
157      addProp(eLFO1InternalDepth);      addProp(eLFO1InternalDepth);
158      addProp(eLFO1ControlDepth);      addProp(eLFO1ControlDepth);
# Line 151  DimRegionEdit::DimRegionEdit() : Line 173  DimRegionEdit::DimRegionEdit() :
173      addProp(eLFO1Sync);      addProp(eLFO1Sync);
174    
175      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);  
176    
177      nextPage();      addHeader("General Filter Settings:");
   
     addHeader("EG3");  
     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");  
178      addProp(eVCFEnabled);      addProp(eVCFEnabled);
179      {      {
180          char* choices[] = { "lowpass", "lowpassturbo", "bandpass",          char* choices[] = { "lowpass", "lowpassturbo", "bandpass",
# Line 272  DimRegionEdit::DimRegionEdit() : Line 239  DimRegionEdit::DimRegionEdit() :
239      addProp(eVCFResonanceController);      addProp(eVCFResonanceController);
240      addProp(eVCFKeyboardTracking);      addProp(eVCFKeyboardTracking);
241      addProp(eVCFKeyboardTrackingBreakpoint);      addProp(eVCFKeyboardTrackingBreakpoint);
242        addHeader("EG2 (Filter Cutoff Envelope):");
243        addProp(eEG2PreAttack);
244        addProp(eEG2Attack);
245        addProp(eEG2Decay1);
246        addProp(eEG2Decay2);
247        addProp(eEG2InfiniteSustain);
248        addProp(eEG2Sustain);
249        addProp(eEG2Release);
250        addProp(eEG2Controller);
251        addProp(eEG2ControllerInvert);
252        addProp(eEG2ControllerAttackInfluence);
253        addProp(eEG2ControllerDecayInfluence);
254        addProp(eEG2ControllerReleaseInfluence);
255        addHeader("LFO2 (Filter Cutoff Oscillator):");
256        addProp(eLFO2Frequency);
257        addProp(eLFO2InternalDepth);
258        addProp(eLFO2ControlDepth);
259        {
260            char* choices[] = { "internal", "modwheel", "foot",
261                                "internal+modwheel", "internal+foot", 0 };
262            static const gig::lfo2_ctrl_t values[] = {
263                gig::lfo2_ctrl_internal,
264                gig::lfo2_ctrl_modwheel,
265                gig::lfo2_ctrl_foot,
266                gig::lfo2_ctrl_internal_modwheel,
267                gig::lfo2_ctrl_internal_foot
268            };
269            eLFO2Controller.set_choices(choices, values);
270        }
271        addProp(eLFO2Controller);
272        addProp(eLFO2FlipPhase);
273        addProp(eLFO2Sync);
274    
275        nextPage();
276    
277        addHeader("General Pitch Settings:");
278        addProp(eFineTune);
279        addProp(ePitchTrack);
280        addHeader("EG3 (Pitch Envelope):");
281        addProp(eEG3Attack);
282        addProp(eEG3Depth);
283        addHeader("LFO3 (Pitch Oscillator):");
284        addProp(eLFO3Frequency);
285        addProp(eLFO3InternalDepth);
286        addProp(eLFO3ControlDepth);
287        {
288            char* choices[] = { "internal", "modwheel", "aftertouch",
289                                "internal+modwheel", "internal+aftertouch", 0 };
290            static const gig::lfo3_ctrl_t values[] = {
291                gig::lfo3_ctrl_internal,
292                gig::lfo3_ctrl_modwheel,
293                gig::lfo3_ctrl_aftertouch,
294                gig::lfo3_ctrl_internal_modwheel,
295                gig::lfo3_ctrl_internal_aftertouch
296            };
297            eLFO3Controller.set_choices(choices, values);
298        }
299        addProp(eLFO3Controller);
300        addProp(eLFO3Sync);
301    
302      nextPage();      nextPage();
303    
# Line 284  DimRegionEdit::DimRegionEdit() : Line 310  DimRegionEdit::DimRegionEdit() :
310      addProp(eReleaseVelocityResponseCurve);      addProp(eReleaseVelocityResponseCurve);
311      addProp(eReleaseVelocityResponseDepth);      addProp(eReleaseVelocityResponseDepth);
312      addProp(eReleaseTriggerDecay);      addProp(eReleaseTriggerDecay);
     addProp(eCrossfade_in_start);  
     addProp(eCrossfade_in_end);  
     addProp(eCrossfade_out_start);  
     addProp(eCrossfade_out_end);  
     addProp(ePitchTrack);  
313      {      {
314          char* choices[] = { "none", "effect4depth", "effect5depth", 0 };          char* choices[] = { "none", "effect4depth", "effect5depth", 0 };
315          static const gig::dim_bypass_ctrl_t values[] = {          static const gig::dim_bypass_ctrl_t values[] = {
# Line 299  DimRegionEdit::DimRegionEdit() : Line 320  DimRegionEdit::DimRegionEdit() :
320          eDimensionBypass.set_choices(choices, values);          eDimensionBypass.set_choices(choices, values);
321      }      }
322      addProp(eDimensionBypass);      addProp(eDimensionBypass);
     addProp(ePan);  
323      addProp(eSelfMask);      addProp(eSelfMask);
     addProp(eAttenuationController);  
     addProp(eInvertAttenuationController);  
     addProp(eAttenuationControllerThreshold);  
     addProp(eChannelOffset);  
324      addProp(eSustainDefeat);      addProp(eSustainDefeat);
   
     nextPage();  
325      addProp(eMSDecode);      addProp(eMSDecode);
326      addProp(eSampleStartOffset);  
     addProp(eUnityNote);  
     addProp(eFineTune);  
     addProp(eGain);  
     addProp(eGainPlus6);  
     addProp(eSampleLoops);  
327      nextPage();      nextPage();
328    
329    
330      eEG1InfiniteSustain.signal_toggled().connect(      eEG1InfiniteSustain.signal_toggled().connect(
331          sigc::mem_fun(*this, &DimRegionEdit::EG1InfiniteSustain_toggled) );          sigc::mem_fun(*this, &DimRegionEdit::EG1InfiniteSustain_toggled) );
332      eEG2InfiniteSustain.signal_toggled().connect(      eEG2InfiniteSustain.signal_toggled().connect(
# Line 349  DimRegionEdit::DimRegionEdit() : Line 359  DimRegionEdit::DimRegionEdit() :
359      eCrossfade_out_end.signal_value_changed().connect(      eCrossfade_out_end.signal_value_changed().connect(
360          sigc::mem_fun(*this, &DimRegionEdit::crossfade4_changed));          sigc::mem_fun(*this, &DimRegionEdit::crossfade4_changed));
361    
362      append_page(*table[0], "EG1");      append_page(*table[0], "Sample");
363      append_page(*table[1], "EG2");      append_page(*table[1], "Amplitude");
364      append_page(*table[2], "EG3");      append_page(*table[2], "Filter");
365      append_page(*table[3], "Velocity");      append_page(*table[3], "Pitch");
366      append_page(*table[4], "Misc");      append_page(*table[4], "Misc");
367  }  }
368    

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

  ViewVC Help
Powered by ViewVC