.TH TRANS 3carl CARL
.SH NAME
trans \- generalized interpolation routine with transition parameter
.SH SYNOPSIS
.B #include <carl/carl.h>
.sp
.B trans(a, alpha, b, n, output) 
.br
.B float a, alpha, b, *output; 
.br
.B int n;
.sp
.SH DESCRIPTION
.B Trans 
computes a transition from 
.I a 
to 
.I b 
in 
.I n 
steps according to
transition parameter 
.I alpha. 
It stores the resulting 
.I n 
values
starting at the location pointed to by 
.I output. 
.I alpha 
= 0 will
yield a straight line; 
.I alpha 
< 0 will yield an exponential
transition, 
.I alpha 
> 0 will yield an inverse exponential
transition, according to the formula:
.sp
.EQ
output sub i ~ = ~ a ~ + ~ { ( b ~ - ~ a ) ( 1 ~ - ~ e sup { { i ~ alpha } over { n ~ - ~ 1 } } ) }
over
{ 1 ~ - ~ e sup alpha }
.EN
.sp
for 0 <= i < n .
.SH AUTHOR
F. R. Moore
.SH FILES
/usr/local/lib/libcarl.a.
.SH SEE ALSO
gen4(1carl),
cmusic(1carl).
