style (whitespace)
This commit is contained in:
parent
08602e69bc
commit
2dc7487a90
1 changed files with 9 additions and 9 deletions
|
@ -7,13 +7,13 @@ static unsigned int mirand = 1;
|
||||||
|
|
||||||
static float
|
static float
|
||||||
whitenoise() {
|
whitenoise() {
|
||||||
union either {
|
union either {
|
||||||
float f;
|
float f;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
} white;
|
} white;
|
||||||
mirand *= 16807;
|
mirand *= 16807;
|
||||||
white.i = (mirand & 0x007FFFFF) | 0x40000000;
|
white.i = (mirand & 0x007FFFFF) | 0x40000000;
|
||||||
return white.f - 3;
|
return white.f - 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* used to resemble https://github.com/swh/ladspa/blob/master/util/biquad.h */
|
/* used to resemble https://github.com/swh/ladspa/blob/master/util/biquad.h */
|
||||||
|
@ -77,8 +77,8 @@ static bq_t
|
||||||
biquad_run(biquad *bq, bq_t x) {
|
biquad_run(biquad *bq, bq_t x) {
|
||||||
bq_t y;
|
bq_t y;
|
||||||
|
|
||||||
y = bq->b0 * x + bq->b1 * bq->x1 + bq->b2 * bq->x2
|
y = bq->b0*x + bq->b1*bq->x1 + bq->b2*bq->x2
|
||||||
+ bq->a1 * bq->y1 + bq->a2 * bq->y2;
|
+ bq->a1*bq->y1 + bq->a2*bq->y2;
|
||||||
bq->x2 = bq->x1;
|
bq->x2 = bq->x1;
|
||||||
bq->x1 = x;
|
bq->x1 = x;
|
||||||
bq->y2 = bq->y1;
|
bq->y2 = bq->y1;
|
||||||
|
|
Loading…
Reference in a new issue