The Alternative Csound Reference Manual
Previous |  | Next

# GEN16

GEN16 -- Creates a table from a starting value to an ending value.

## Description

Creates a table from beg value to end value of dur steps.

## Syntax

f # time size 16 beg dur type end

## Initialization

size -- number of points in the table. Must be a power of 2 or a power-of-2 plus 1 (see f statement). The normal value is power-of-2 plus 1.

beg -- starting value

dur -- number of segments

type -- if 0, a straight line is produced. If non-zero, then GEN16 creates the following curve, for dur steps:

beg + (end - beg) * (1 - exp( i*type/(dur-1) )) / (1 - exp(type))

end -- value after dur segments

| Note
| If type > 0, there is a slowly rising, fast decaying (convex) curve, while if type < 0, the curve is fast rising, slowly decaying (concave). See also transeg.

## Credits

Author: John ffitch
University of Bath, Codemist. Ltd.
Bath, UK
October, 2000

New in Csound version 4.09

Previous | Home | Next
GEN15 | Up | GEN17