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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1117 - (hide annotations) (download) (as text)
Sat Mar 24 13:05:58 2007 UTC (17 years, 1 month ago) by persson
File MIME type: text/x-c++hdr
File size: 5760 byte(s)
* added +6dB parameter to DimRegionEdit
* preparations for improved instrument properties dialog

1 persson 1100 /* -*- 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 persson 1117 typedef BoolEntry<gig::DimensionRegion> DimregBoolEntry;
33    
34 persson 1100 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 persson 1117 DimregBoolEntry eEG1InfiniteSustain;
52 persson 1100 NumEntryPermille eEG1Sustain;
53     NumEntryTemp<double> eEG1Release;
54 persson 1117 DimregBoolEntry eEG1Hold;
55 persson 1100 ChoiceEntryLeverageCtrl eEG1Controller;
56 persson 1117 DimregBoolEntry eEG1ControllerInvert;
57 persson 1100 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 persson 1117 DimregBoolEntry eLFO1FlipPhase;
65     DimregBoolEntry eLFO1Sync;
66 persson 1100 NumEntryPermille eEG2PreAttack;
67     NumEntryTemp<double> eEG2Attack;
68     NumEntryTemp<double> eEG2Decay1;
69     NumEntryTemp<double> eEG2Decay2;
70 persson 1117 DimregBoolEntry eEG2InfiniteSustain;
71 persson 1100 NumEntryPermille eEG2Sustain;
72     NumEntryTemp<double> eEG2Release;
73     ChoiceEntryLeverageCtrl eEG2Controller;
74 persson 1117 DimregBoolEntry eEG2ControllerInvert;
75 persson 1100 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 persson 1117 DimregBoolEntry eLFO2FlipPhase;
83     DimregBoolEntry eLFO2Sync;
84 persson 1100 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 persson 1117 DimregBoolEntry eLFO3Sync;
91     DimregBoolEntry eVCFEnabled;
92 persson 1100 ChoiceEntry<gig::vcf_type_t> eVCFType;
93     ChoiceEntry<gig::vcf_cutoff_ctrl_t> eVCFCutoffController;
94 persson 1117 DimregBoolEntry eVCFCutoffControllerInvert;
95 persson 1100 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 persson 1117 DimregBoolEntry eVCFResonanceDynamic;
101 persson 1100 ChoiceEntry<gig::vcf_res_ctrl_t> eVCFResonanceController;
102 persson 1117 DimregBoolEntry eVCFKeyboardTracking;
103 persson 1100 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 persson 1117 DimregBoolEntry ePitchTrack;
115 persson 1100 ChoiceEntry<gig::dim_bypass_ctrl_t> eDimensionBypass;
116     NumEntryTemp<int8_t> ePan;
117 persson 1117 DimregBoolEntry eSelfMask;
118 persson 1100 ChoiceEntryLeverageCtrl eAttenuationController;
119 persson 1117 DimregBoolEntry eInvertAttenuationController;
120 persson 1100 NumEntryTemp<uint8_t> eAttenuationControllerThreshold;
121     NumEntryTemp<uint8_t> eChannelOffset;
122 persson 1117 DimregBoolEntry eSustainDefeat;
123     DimregBoolEntry eMSDecode;
124 persson 1100 NumEntryTemp<uint16_t> eSampleStartOffset;
125     NoteEntry eUnityNote;
126     NumEntryX<int16_t> eFineTune;
127     NumEntryGain eGain;
128 persson 1117 BoolEntryPlus6 eGainPlus6;
129 persson 1100 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

  ViewVC Help
Powered by ViewVC