/[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 1322 - (hide annotations) (download) (as text)
Tue Sep 4 11:04:56 2007 UTC (16 years, 6 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 6671 byte(s)
* as counterpart to latest LS commit: added experimental support to
  synchronize gigedit with LinuxSampler to avoid race conditions / crash
  while modifying data structures and playing the instrument with LS at
  the same time
* packaging fixes: don't use a hard coded path to install the LS plugin
  DLL, trying to substitute the given LS plugin directory by the
  '${libdir}' automake variable (mandatory i.e. for Gentoo ebuild) and
  include plugin/linuxsamplerplugin.h into the release tarball
  ('make dist')
* updated German translation (po/de.po)

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 schoenebeck 1322 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 schoenebeck 1225
45     protected:
46 schoenebeck 1322 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 persson 1261 sigc::signal<void> instrument_changed;
50    
51 schoenebeck 1225 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     int rowno;
149     int pageno;
150     int firstRowInBlock;
151    
152    
153     void addProp(BoolEntry& boolentry);
154 persson 1262 void addProp(BoolEntryPlus6& boolentry);
155 schoenebeck 1225 void addProp(LabelWidget& labelwidget);
156     void addString(const char* labelText, Gtk::Label*& label,
157     Gtk::Entry*& widget);
158     void addHeader(const char* text);
159     void nextPage();
160    
161     void VCFEnabled_toggled();
162     void VCFCutoffController_changed();
163     void VCFResonanceController_changed();
164     void EG1InfiniteSustain_toggled();
165     void EG2InfiniteSustain_toggled();
166     void EG1Controller_changed();
167     void EG2Controller_changed();
168     void AttenuationController_changed();
169     void LFO1Controller_changed();
170     void LFO2Controller_changed();
171     void LFO3Controller_changed();
172     void crossfade1_changed();
173     void crossfade2_changed();
174     void crossfade3_changed();
175     void crossfade4_changed();
176     void loop_enabled_toggled();
177     void loop_infinite_toggled();
178    
179     void updateLoopElements();
180     };
181    
182     #endif

  ViewVC Help
Powered by ViewVC