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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1265 - (hide annotations) (download) (as text)
Sun Jul 29 13:44:59 2007 UTC (16 years, 8 months ago) by persson
File MIME type: text/x-c++hdr
File size: 6332 byte(s)
* added support for 24 bit sample import
* when importing samples, settings for loops and root note are copied
  from the sample files (if they have such settings)

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

  ViewVC Help
Powered by ViewVC