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