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

« back to all changes in this revision

Viewing changes to plugins/ladspa_effect/caps/Scape.cc

  • 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:
61
61
void
62
62
Scape::one_cycle (int frames)
63
63
{
64
 
        d_sample * s = ports[0];
 
64
        sample_t * s = ports[0];
65
65
 
66
66
        // double one_over_n = 1 / (double) frames;
67
67
 
76
76
        dry = dry * dry;
77
77
        double blend = getport(5);
78
78
 
79
 
        d_sample * dl = ports[6];
80
 
        d_sample * dr = ports[7];
 
79
        sample_t * dl = ports[6];
 
80
        sample_t * dr = ports[7];
81
81
 
82
82
        DSP::FPTruncateMode truncate;
83
83
 
116
116
                /* sample loop */
117
117
                for (int i = 0; i < n; ++i)
118
118
                {
119
 
                        d_sample x = s[i] + normal;
 
119
                        sample_t x = s[i] + normal;
120
120
 
121
 
                        d_sample x1 = delay.get_at (t1);
122
 
                        d_sample x2 = delay.get_at (t2);
 
121
                        sample_t x1 = delay.get_at (t1);
 
122
                        sample_t x2 = delay.get_at (t2);
123
123
 
124
124
                        delay.put (x + fb * x1 + normal);
125
125
                        x = dry * x + .2 * svf[0].process (x) + .6 * svf[3].process(x);
130
130
                        x1 = hipass[1].process (x1);
131
131
                        x2 = hipass[2].process (x2);
132
132
 
133
 
                        d_sample x1l, x1r, x2l, x2r;
 
133
                        sample_t x1l, x1r, x2l, x2r;
134
134
                        x1l = fabs (lfo[0].get());
135
135
                        x1r = 1 - x1l;
136
136
                        x2r = fabs (lfo[1].get());