/[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 1225 - (show annotations) (download) (as text)
Sun Jun 10 10:56:11 2007 UTC (16 years, 9 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 6062 byte(s)
moved gigedit sources from src/ -> src/gigedit/

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 Gtk::Entry* wSample;
40
41 protected:
42 gig::DimensionRegion* dimregion;
43
44 Gtk::Tooltips tooltips;
45
46 Gtk::Table* table[7];
47
48 Gtk::Label* lSample;
49
50 NumEntryPermille eEG1PreAttack;
51 NumEntryTemp<double> eEG1Attack;
52 NumEntryTemp<double> eEG1Decay1;
53 NumEntryTemp<double> eEG1Decay2;
54 BoolEntry eEG1InfiniteSustain;
55 NumEntryPermille eEG1Sustain;
56 NumEntryTemp<double> eEG1Release;
57 BoolEntry eEG1Hold;
58 ChoiceEntryLeverageCtrl eEG1Controller;
59 BoolEntry eEG1ControllerInvert;
60 NumEntryTemp<uint8_t> eEG1ControllerAttackInfluence;
61 NumEntryTemp<uint8_t> eEG1ControllerDecayInfluence;
62 NumEntryTemp<uint8_t> eEG1ControllerReleaseInfluence;
63 NumEntryTemp<double> eLFO1Frequency;
64 NumEntryTemp<uint16_t> eLFO1InternalDepth;
65 NumEntryTemp<uint16_t> eLFO1ControlDepth;
66 ChoiceEntry<gig::lfo1_ctrl_t> eLFO1Controller;
67 BoolEntry eLFO1FlipPhase;
68 BoolEntry eLFO1Sync;
69 NumEntryPermille eEG2PreAttack;
70 NumEntryTemp<double> eEG2Attack;
71 NumEntryTemp<double> eEG2Decay1;
72 NumEntryTemp<double> eEG2Decay2;
73 BoolEntry eEG2InfiniteSustain;
74 NumEntryPermille eEG2Sustain;
75 NumEntryTemp<double> eEG2Release;
76 ChoiceEntryLeverageCtrl eEG2Controller;
77 BoolEntry eEG2ControllerInvert;
78 NumEntryTemp<uint8_t> eEG2ControllerAttackInfluence;
79 NumEntryTemp<uint8_t> eEG2ControllerDecayInfluence;
80 NumEntryTemp<uint8_t> eEG2ControllerReleaseInfluence;
81 NumEntryTemp<double> eLFO2Frequency;
82 NumEntryTemp<uint16_t> eLFO2InternalDepth;
83 NumEntryTemp<uint16_t> eLFO2ControlDepth;
84 ChoiceEntry<gig::lfo2_ctrl_t> eLFO2Controller;
85 BoolEntry eLFO2FlipPhase;
86 BoolEntry eLFO2Sync;
87 NumEntryTemp<double> eEG3Attack;
88 NumEntryTemp<int16_t> eEG3Depth;
89 NumEntryTemp<double> eLFO3Frequency;
90 NumEntryTemp<int16_t> eLFO3InternalDepth;
91 NumEntryTemp<int16_t> eLFO3ControlDepth;
92 ChoiceEntry<gig::lfo3_ctrl_t> eLFO3Controller;
93 BoolEntry eLFO3Sync;
94 BoolEntry eVCFEnabled;
95 ChoiceEntry<gig::vcf_type_t> eVCFType;
96 ChoiceEntry<gig::vcf_cutoff_ctrl_t> eVCFCutoffController;
97 BoolEntry eVCFCutoffControllerInvert;
98 NumEntryTemp<uint8_t> eVCFCutoff;
99 ChoiceEntry<gig::curve_type_t> eVCFVelocityCurve;
100 NumEntryTemp<uint8_t> eVCFVelocityScale;
101 NumEntryTemp<uint8_t> eVCFVelocityDynamicRange;
102 NumEntryTemp<uint8_t> eVCFResonance;
103 BoolEntry eVCFResonanceDynamic;
104 ChoiceEntry<gig::vcf_res_ctrl_t> eVCFResonanceController;
105 BoolEntry eVCFKeyboardTracking;
106 NumEntryTemp<uint8_t> eVCFKeyboardTrackingBreakpoint;
107 ChoiceEntry<gig::curve_type_t> eVelocityResponseCurve;
108 NumEntryTemp<uint8_t> eVelocityResponseDepth;
109 NumEntryTemp<uint8_t> eVelocityResponseCurveScaling;
110 ChoiceEntry<gig::curve_type_t> eReleaseVelocityResponseCurve;
111 NumEntryTemp<uint8_t> eReleaseVelocityResponseDepth;
112 NumEntryTemp<uint8_t> eReleaseTriggerDecay;
113 NumEntryTemp<uint8_t> eCrossfade_in_start;
114 NumEntryTemp<uint8_t> eCrossfade_in_end;
115 NumEntryTemp<uint8_t> eCrossfade_out_start;
116 NumEntryTemp<uint8_t> eCrossfade_out_end;
117 BoolEntry ePitchTrack;
118 ChoiceEntry<gig::dim_bypass_ctrl_t> eDimensionBypass;
119 NumEntryTemp<int8_t> ePan;
120 BoolEntry eSelfMask;
121 ChoiceEntryLeverageCtrl eAttenuationController;
122 BoolEntry eInvertAttenuationController;
123 NumEntryTemp<uint8_t> eAttenuationControllerThreshold;
124 NumEntryTemp<uint8_t> eChannelOffset;
125 BoolEntry eSustainDefeat;
126 BoolEntry eMSDecode;
127 NumEntryTemp<uint16_t> eSampleStartOffset;
128 NoteEntry eUnityNote;
129 NumEntryTemp<int16_t> eFineTune;
130 NumEntryGain eGain;
131 BoolEntryPlus6 eGainPlus6;
132 BoolEntry eSampleLoopEnabled;
133 NumEntryTemp<uint32_t> eSampleLoopStart;
134 NumEntryTemp<uint32_t> eSampleLoopLength;
135 ChoiceEntry<uint32_t> eSampleLoopType;
136 BoolEntry eSampleLoopInfinite;
137 NumEntryTemp<uint32_t> eSampleLoopPlayCount;
138
139 int rowno;
140 int pageno;
141 int firstRowInBlock;
142
143
144 void addProp(BoolEntry& boolentry);
145 void addProp(LabelWidget& labelwidget);
146 void addString(const char* labelText, Gtk::Label*& label,
147 Gtk::Entry*& widget);
148 void addHeader(const char* text);
149 void nextPage();
150
151 void VCFEnabled_toggled();
152 void VCFCutoffController_changed();
153 void VCFResonanceController_changed();
154 void EG1InfiniteSustain_toggled();
155 void EG2InfiniteSustain_toggled();
156 void EG1Controller_changed();
157 void EG2Controller_changed();
158 void AttenuationController_changed();
159 void LFO1Controller_changed();
160 void LFO2Controller_changed();
161 void LFO3Controller_changed();
162 void crossfade1_changed();
163 void crossfade2_changed();
164 void crossfade3_changed();
165 void crossfade4_changed();
166 void loop_enabled_toggled();
167 void loop_infinite_toggled();
168
169 void updateLoopElements();
170 };
171
172 #endif

  ViewVC Help
Powered by ViewVC