shithub: soundpipe

ref: 95e6f8be0c1c450fc3800b6dd57e7d63212ea42c
dir: /tangled/scale.c/

View raw version
#line 23 "scale.org"
#include "scale.h"
#line 37 "scale.org"
SKFLT sk_scale(SKFLT in, SKFLT min, SKFLT max)
{

    return in * (max - min) + min;
}
#line 54 "scale.org"
SKFLT sk_biscale(SKFLT in, SKFLT min, SKFLT max)
{
    return min + (in + 1.0) * 0.5 * (max - min);
}
#line 23 "scale.org"