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

« back to all changes in this revision

Viewing changes to plugins/ladspa_effect/caps/dsp/ToneStack.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:
92
92
                                c = 2 * _fs;
93
93
                        }
94
94
 
95
 
                void activate (d_sample ** ports)
 
95
                void activate (sample_t ** ports)
96
96
                        {
97
97
                                filter.reset();
98
98
                        }
99
99
 
100
100
                /* pass in pointer to ports and relative index of first eq band control */
101
 
                void start_cycle (d_sample ** ports, int bassindex = 1)
 
101
                void start_cycle (sample_t ** ports, int bassindex = 1)
102
102
                {
103
103
                        int m = clamp<int> ((int) *ports[0], 0, n_presets - 1);
104
104
                        if (m != model)
151
151
                                filter.reset();
152
152
                        }
153
153
 
154
 
                inline void updatecoefs (d_sample ** ports) 
 
154
                inline void updatecoefs (sample_t ** ports) 
155
155
                        {
156
156
                                /* range checks on input */
157
157
                                double b = clamp<double> (*ports[0], 0, 1);
185
185
                        } 
186
186
 
187
187
                // actualy do the DFII filtering, one sample at a time
188
 
                inline d_sample process (d_sample x)
 
188
                inline sample_t process (sample_t x)
189
189
                        {
190
190
                                return filter.process (x);
191
191
                        }
224
224
                void init (double _fs)
225
225
                        { }
226
226
 
227
 
                void activate (d_sample ** ports)
 
227
                void activate (sample_t ** ports)
228
228
                        {
229
229
                                filter.reset();
230
230
                        }
237
237
                                bp = blah;
238
238
                }
239
239
 
240
 
                void updatecoefs (d_sample ** ports)
 
240
                void updatecoefs (sample_t ** ports)
241
241
                        {
242
242
                                double b = min (Steps - 1, max (*ports[0] * (Steps - 1), 0));
243
243
                                double m = min (Steps - 1, max (*ports[1] * (Steps - 1), 0));
258
258
                        }
259
259
 
260
260
                // actualy do the DFII filtering, one sample at a time
261
 
                inline d_sample process (d_sample x)
 
261
                inline sample_t process (sample_t x)
262
262
                        {
263
263
                                return filter.process (x);
264
264
                        }