~ubuntu-branches/ubuntu/trusty/lmms/trusty

« back to all changes in this revision

Viewing changes to plugins/ladspa_effect/caps/Amp.h

  • Committer: Charlie Smotherman
  • Date: 2012-12-05 22:08:38 UTC
  • mfrom: (33.1.7 lmms_0.4.13)
  • Revision ID: cjsmo@cableone.net-20121205220838-09pjfzew9m5023hr
* New  Upstream release.
  - Minor tweaking to ZynAddSubFX, CALF, SWH plugins  and Stefan Fendt's RC
    filters.
  - Added UI fixes: Magnentic effect of knobs and Piano-roll fixes
  - Updated German localization and copyright year
* debian/lmms-common.install:
  - added /usr/share/applications so the lmms.desktop file will correctly
    install (LP: #863366)
  - This should also fix the Software Center not displaying lmms in sound
    and video (LP: #824231)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        public:
50
50
                DSP::TwelveAX7_3 tube;
51
51
                
52
 
                d_sample drive, i_drive;
 
52
                sample_t drive, i_drive;
53
53
 
54
54
                struct {
55
55
                        /* gain (remember current setting and fade to port setting in run) */
78
78
                
79
79
                void init (bool adjust_downsampler = false);
80
80
 
81
 
                inline d_sample power_transfer (d_sample a)
 
81
                inline sample_t power_transfer (sample_t a)
82
82
                        {
83
83
                                return i_drive * (a - drive * fabs (a) * a);
84
84
                        }
98
98
        public:
99
99
                static PortInfo port_info[];
100
100
 
101
 
                d_sample adding_gain;
 
101
                sample_t adding_gain;
102
102
 
103
103
                void init();
104
104
                void activate()
136
136
        public:
137
137
                static PortInfo port_info[];
138
138
 
139
 
                d_sample adding_gain;
 
139
                sample_t adding_gain;
140
140
 
141
141
                void init();
142
142
                void activate()
169
169
class ToneControls 
170
170
{
171
171
        public:
172
 
                d_sample eq_gain[4];
 
172
                sample_t eq_gain[4];
173
173
                DSP::Eq<4> eq;
174
174
                static PreampBand bands[4];
175
175
                
176
176
        public:
177
177
                void init (double _fs);
178
 
                void activate (d_sample **);
 
178
                void activate (sample_t **);
179
179
 
180
180
                inline void 
181
 
                start_cycle (d_sample ** ports, double one_over_n)
 
181
                start_cycle (sample_t ** ports, double one_over_n)
182
182
                        {
183
183
                                for (int i = 0; i < 4; ++i)
184
184
                                {
198
198
                double get_band_gain (int i, double g);
199
199
                void set_band_gain (int i, float g);
200
200
 
201
 
                inline d_sample process (d_sample x)
 
201
                inline sample_t process (sample_t x)
202
202
                        {
203
203
                                return eq.process (x);
204
204
                        }
218
218
        public:
219
219
                static PortInfo port_info[];
220
220
 
221
 
                d_sample adding_gain;
 
221
                sample_t adding_gain;
222
222
 
223
223
                void init();
224
224
                void activate();
248
248
        public:
249
249
                static PortInfo port_info[];
250
250
 
251
 
                d_sample adding_gain;
 
251
                sample_t adding_gain;
252
252
 
253
253
                void init();
254
254
                void activate()
284
284
 
285
285
                DSP::BiQuad filter[3];
286
286
                
287
 
                d_sample cut, tone;
 
287
                sample_t cut, tone;
288
288
 
289
289
                /* supply voltage sag */
290
 
                d_sample supply;
 
290
                sample_t supply;
291
291
                DSP::BiQuad power_cap[2];
292
292
                
293
293
        public:
294
294
                static PortInfo port_info[];
295
295
 
296
 
                d_sample adding_gain;
 
296
                sample_t adding_gain;
297
297
 
298
298
                void init();
299
299
                void activate()
336
336
                template <sample_func_t F, int OVERSAMPLE>
337
337
                        void one_cycle (int frames);
338
338
 
339
 
                d_sample cut, tone;
 
339
                sample_t cut, tone;
340
340
 
341
341
                /* supply voltage sag */
342
 
                d_sample supply;
 
342
                sample_t supply;
343
343
                DSP::BiQuad power_cap[2];
344
344
                
345
345
        public:
346
346
                static PortInfo port_info[];
347
347
 
348
 
                d_sample adding_gain;
 
348
                sample_t adding_gain;
349
349
 
350
350
                void init();
351
351
                void activate()