SETGRAPHXSCALE

From STX Wiki
Jump to navigationJump to search

SETGRAPHXSCALE

Generates a vector of values and assigns it to a graph's x-scale. For xType LINEAR a vector with x[i=0..nx-1] = x0 + i*dx is generated. If xType BARK is used, the linear values are converted to the Bark scale. This function can be used for all graphs supporting a x-scale.

To generate the scale vector, the standard library SPU's XSCALELINEAR and XSCALEBARK are used.

Usage:

SETGRAPHXSCALE graph xType x0 dx nx [ xopt ]

Parameters:
graph
The id of the graph item to set the scale for.
xType
The type of x scale. The macro currently supports linear (LINEAR) and Bark (BARK) scales.
x0
The first x value (minimum).
dx
The x increment.
nx
The number x values.
xopt
Special options for the graph x scale (see the command SET GRAPH X ... for details).
Result:

none

Navigation menu

Personal tools