ref: 9778d9a660d6d138e0ac40502efb80c85bc417bd
parent: c25d5b5c805acb93bb8736fac522ccecf22a5831
author: Paul Brossier <piem@piem.org>
date: Wed Mar 13 09:25:01 EDT 2013
src/spectral/phasevoc.c: indent
--- a/src/spectral/phasevoc.c
+++ b/src/spectral/phasevoc.c
@@ -111,12 +111,12 @@
const smpl_t * datanew, uint_t win_s, uint_t hop_s)
{
uint_t i;
- for (i=0;i<win_s-hop_s;i++)
+ for (i = 0; i < win_s - hop_s; i++)
data[i] = dataold[i];
- for (i=0;i<hop_s;i++)
- data[win_s-hop_s+i] = datanew[i];
- for (i=0;i<win_s-hop_s;i++)
- dataold[i] = data[i+hop_s];
+ for (i = 0; i < hop_s; i++)
+ data[win_s - hop_s + i] = datanew[i];
+ for (i = 0; i < win_s - hop_s; i++)
+ dataold[i] = data[i + hop_s];
}
static void aubio_pvoc_addsynth(const smpl_t * synth, smpl_t * synthold,
@@ -123,18 +123,18 @@
smpl_t * synthnew, uint_t win_s, uint_t hop_s)
{
uint_t i;
- smpl_t scale = 2*hop_s/(win_s+.0);
+ smpl_t scale = 2 * hop_s / (win_s + .0);
/* add new synth to old one and put result in synthnew */
- for (i=0;i<hop_s;i++)
- synthnew[i] = synthold[i]+synth[i]*scale;
+ for (i = 0; i < hop_s; i++)
+ synthnew[i] = synthold[i] + synth[i] * scale;
/* shift synthold */
- for (i=0;i<win_s-2*hop_s;i++)
- synthold[i] = synthold[i+hop_s];
+ for (i = 0; i < win_s - 2 * hop_s; i++)
+ synthold[i] = synthold[i + hop_s];
/* erase last frame in synthold */
- for (i=win_s-hop_s;i<win_s;i++)
- synthold[i-hop_s]=0.;
+ for (i = win_s - hop_s; i < win_s; i++)
+ synthold[i - hop_s] = 0.;
/* additive synth */
- for (i=0;i<win_s-hop_s;i++)
- synthold[i] += synth[i+hop_s]*scale;
+ for (i = 0; i < win_s - hop_s; i++)
+ synthold[i] += synth[i + hop_s] * scale;
}