|
function wrap(input mini maxi)
|
function wrap(input mini maxi) // the function declaration misses some ,
(
while (input < mini) (
input += mini; // creates infinte loop when 0 and i think it is wrong
);
while (input >= maxi) (
input -= maxi;
);
input;
);
Thank you very much for creating cookdsp it helped me a lot
cookdsp/cookdsp/scaling.jsfx-inc
Line 395 in 174d878
function wrap(input mini maxi) // the function declaration misses some ,
(
while (input < mini) (
input += mini; // creates infinte loop when 0 and i think it is wrong
);
while (input >= maxi) (
input -= maxi;
);
input;
);
Thank you very much for creating cookdsp it helped me a lot