Compare commits
No commits in common. "9dc5b2354a33545314f481ade5924c81c785dfe1" and "99e416249d0646cdb1221dd2722661c15941975f" have entirely different histories.
9dc5b2354a
...
99e416249d
2 changed files with 2 additions and 7 deletions
|
|
@ -443,9 +443,7 @@ BEGIN {
|
|||
|
||||
function BANANA(d,c, p) {
|
||||
p -= B0[d,c]
|
||||
p = 1+p*p*(B2[d,c] + p*(B3[d,c] + p*B4[d,c]))
|
||||
if (p>2) p = 2
|
||||
return p
|
||||
return 1+p*p*(B2[d,c] + p*(B3[d,c] + p*B4[d,c]))
|
||||
}
|
||||
|
||||
function isPulser() {
|
||||
|
|
|
|||
|
|
@ -36,10 +36,7 @@ struct banana {
|
|||
static double get_banana(struct banana* c, double phase)
|
||||
{
|
||||
double p = phase - c->b0;
|
||||
p = ((p * c->b4 + c->b3) * p + c->b2) * p * p + 1;
|
||||
if (p > 2)
|
||||
p = 2;
|
||||
return p;
|
||||
return ((p * c->b4 + c->b3) * p + c->b2) * p * p + 1;
|
||||
}
|
||||
|
||||
static int set_banana(const char *arg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue