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

Contents of /gigedit/trunk/src/gigedit/dimregionedit.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1359 - (show annotations) (download) (as text)
Sun Sep 30 18:30:52 2007 UTC (16 years, 6 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 7229 byte(s)
* fixed couple other parameters which were silently ignored by the sampler
  on a live-editing session with LS (parameter "Gain" and various velocity
  response parameters for attenuation, filter cutoff frequency and EG
  release time)

1 /* -*- c++ -*-
2 * Copyright (C) 2006, 2007 Andreas Persson
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2, or (at
7 * your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with program; see the file COPYING. If not, write to the Free
16 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17 * 02110-1301 USA.
18 */
19
20 #ifndef GIGEDIT_DIMREGIONEDIT_H
21 #define GIGEDIT_DIMREGIONEDIT_H
22
23 #include <gig.h>
24
25 #include <gtkmm/entry.h>
26 #include <gtkmm/label.h>
27 #include <gtkmm/notebook.h>
28 #include <gtkmm/table.h>
29 #include <gtkmm/tooltips.h>
30
31 #include "paramedit.h"
32
33 class DimRegionEdit : public Gtk::Notebook
34 {
35 public:
36 DimRegionEdit();
37 virtual ~DimRegionEdit();
38 void set_dim_region(gig::DimensionRegion* d);
39 bool set_sample(gig::Sample* sample);
40 Gtk::Entry* wSample;
41 sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed();
42 sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed();
43 sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& signal_sample_ref_changed();
44
45 protected:
46 sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal;
47 sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal;
48 sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/> sample_ref_changed_signal;
49 sigc::signal<void> instrument_changed;
50
51 gig::DimensionRegion* dimregion;
52
53 Gtk::Tooltips tooltips;
54
55 Gtk::Table* table[7];
56
57 Gtk::Label* lSample;
58
59 NumEntryPermille eEG1PreAttack;
60 NumEntryTemp<double> eEG1Attack;
61 NumEntryTemp<double> eEG1Decay1;
62 NumEntryTemp<double> eEG1Decay2;
63 BoolEntry eEG1InfiniteSustain;
64 NumEntryPermille eEG1Sustain;
65 NumEntryTemp<double> eEG1Release;
66 BoolEntry eEG1Hold;
67 ChoiceEntryLeverageCtrl eEG1Controller;
68 BoolEntry eEG1ControllerInvert;
69 NumEntryTemp<uint8_t> eEG1ControllerAttackInfluence;
70 NumEntryTemp<uint8_t> eEG1ControllerDecayInfluence;
71 NumEntryTemp<uint8_t> eEG1ControllerReleaseInfluence;
72 NumEntryTemp<double> eLFO1Frequency;
73 NumEntryTemp<uint16_t> eLFO1InternalDepth;
74 NumEntryTemp<uint16_t> eLFO1ControlDepth;
75 ChoiceEntry<gig::lfo1_ctrl_t> eLFO1Controller;
76 BoolEntry eLFO1FlipPhase;
77 BoolEntry eLFO1Sync;
78 NumEntryPermille eEG2PreAttack;
79 NumEntryTemp<double> eEG2Attack;
80 NumEntryTemp<double> eEG2Decay1;
81 NumEntryTemp<double> eEG2Decay2;
82 BoolEntry eEG2InfiniteSustain;
83 NumEntryPermille eEG2Sustain;
84 NumEntryTemp<double> eEG2Release;
85 ChoiceEntryLeverageCtrl eEG2Controller;
86 BoolEntry eEG2ControllerInvert;
87 NumEntryTemp<uint8_t> eEG2ControllerAttackInfluence;
88 NumEntryTemp<uint8_t> eEG2ControllerDecayInfluence;
89 NumEntryTemp<uint8_t> eEG2ControllerReleaseInfluence;
90 NumEntryTemp<double> eLFO2Frequency;
91 NumEntryTemp<uint16_t> eLFO2InternalDepth;
92 NumEntryTemp<uint16_t> eLFO2ControlDepth;
93 ChoiceEntry<gig::lfo2_ctrl_t> eLFO2Controller;
94 BoolEntry eLFO2FlipPhase;
95 BoolEntry eLFO2Sync;
96 NumEntryTemp<double> eEG3Attack;
97 NumEntryTemp<int16_t> eEG3Depth;
98 NumEntryTemp<double> eLFO3Frequency;
99 NumEntryTemp<int16_t> eLFO3InternalDepth;
100 NumEntryTemp<int16_t> eLFO3ControlDepth;
101 ChoiceEntry<gig::lfo3_ctrl_t> eLFO3Controller;
102 BoolEntry eLFO3Sync;
103 BoolEntry eVCFEnabled;
104 ChoiceEntry<gig::vcf_type_t> eVCFType;
105 ChoiceEntry<gig::vcf_cutoff_ctrl_t> eVCFCutoffController;
106 BoolEntry eVCFCutoffControllerInvert;
107 NumEntryTemp<uint8_t> eVCFCutoff;
108 ChoiceEntry<gig::curve_type_t> eVCFVelocityCurve;
109 NumEntryTemp<uint8_t> eVCFVelocityScale;
110 NumEntryTemp<uint8_t> eVCFVelocityDynamicRange;
111 NumEntryTemp<uint8_t> eVCFResonance;
112 BoolEntry eVCFResonanceDynamic;
113 ChoiceEntry<gig::vcf_res_ctrl_t> eVCFResonanceController;
114 BoolEntry eVCFKeyboardTracking;
115 NumEntryTemp<uint8_t> eVCFKeyboardTrackingBreakpoint;
116 ChoiceEntry<gig::curve_type_t> eVelocityResponseCurve;
117 NumEntryTemp<uint8_t> eVelocityResponseDepth;
118 NumEntryTemp<uint8_t> eVelocityResponseCurveScaling;
119 ChoiceEntry<gig::curve_type_t> eReleaseVelocityResponseCurve;
120 NumEntryTemp<uint8_t> eReleaseVelocityResponseDepth;
121 NumEntryTemp<uint8_t> eReleaseTriggerDecay;
122 NumEntryTemp<uint8_t> eCrossfade_in_start;
123 NumEntryTemp<uint8_t> eCrossfade_in_end;
124 NumEntryTemp<uint8_t> eCrossfade_out_start;
125 NumEntryTemp<uint8_t> eCrossfade_out_end;
126 BoolEntry ePitchTrack;
127 ChoiceEntry<gig::dim_bypass_ctrl_t> eDimensionBypass;
128 NumEntryTemp<int8_t> ePan;
129 BoolEntry eSelfMask;
130 ChoiceEntryLeverageCtrl eAttenuationController;
131 BoolEntry eInvertAttenuationController;
132 NumEntryTemp<uint8_t> eAttenuationControllerThreshold;
133 NumEntryTemp<uint8_t> eChannelOffset;
134 BoolEntry eSustainDefeat;
135 BoolEntry eMSDecode;
136 NumEntryTemp<uint16_t> eSampleStartOffset;
137 NoteEntry eUnityNote;
138 NumEntryTemp<int16_t> eFineTune;
139 NumEntryGain eGain;
140 BoolEntryPlus6 eGainPlus6;
141 BoolEntry eSampleLoopEnabled;
142 NumEntryTemp<uint32_t> eSampleLoopStart;
143 NumEntryTemp<uint32_t> eSampleLoopLength;
144 ChoiceEntry<uint32_t> eSampleLoopType;
145 BoolEntry eSampleLoopInfinite;
146 NumEntryTemp<uint32_t> eSampleLoopPlayCount;
147
148 sigc::connection connection_eVCFCutoffController;
149 sigc::connection connection_eVCFVelocityCurve;
150 sigc::connection connection_eVCFVelocityScale;
151 sigc::connection connection_eVCFVelocityDynamicRange;
152 sigc::connection connection_eVelocityResponseCurve;
153 sigc::connection connection_eVelocityResponseDepth;
154 sigc::connection connection_eVelocityResponseCurveScaling;
155 sigc::connection connection_eReleaseVelocityResponseCurve;
156 sigc::connection connection_eReleaseVelocityResponseDepth;
157 sigc::connection connection_eGain;
158
159 int rowno;
160 int pageno;
161 int firstRowInBlock;
162
163
164 void addProp(BoolEntry& boolentry);
165 void addProp(BoolEntryPlus6& boolentry);
166 void addProp(LabelWidget& labelwidget);
167 void addString(const char* labelText, Gtk::Label*& label,
168 Gtk::Entry*& widget);
169 void addHeader(const char* text);
170 void nextPage();
171
172 void VCFEnabled_toggled();
173 void VCFCutoffController_changed();
174 void VCFResonanceController_changed();
175 void EG1InfiniteSustain_toggled();
176 void EG2InfiniteSustain_toggled();
177 void EG1Controller_changed();
178 void EG2Controller_changed();
179 void AttenuationController_changed();
180 void LFO1Controller_changed();
181 void LFO2Controller_changed();
182 void LFO3Controller_changed();
183 void crossfade1_changed();
184 void crossfade2_changed();
185 void crossfade3_changed();
186 void crossfade4_changed();
187 void loop_enabled_toggled();
188 void loop_infinite_toggled();
189
190 void updateLoopElements();
191 };
192
193 #endif

  ViewVC Help
Powered by ViewVC