QUICK-REF - CsoundManual - Top of this section - Previous - Contents - Index - Next 

ipow, kpow, apow

        ir      ipow    iarg, kpow
        kr      kpow    karg, kpow, [inorm]
        ar      apow    aarg, kpow, [inorm]

DESCRIPTION

Computes xarg to the power of kpow and scales the result by inorm.

INITIALIZATION

inorm - The number to divide the result (default to 1). This is especially useful if you are doing powers of a- or k- signals where samples out of range are extremely common!

iarg - If you are using ipow this is the base.

PERFORMANCE

karg - If you are using kpow this is the base.

aarg - If you are using apow this is the base.

EXAMPLE:

1.      i2t2    ipow    2,2             ; Computes 2^2.
2.      kline   line    0, 1, 4
        kexp    kpow    kline, 2, 4
This feeds a linear function to kpow and scales that to the line's peak value. The output will be an exponential curve with the same range as the input line.
3.      iamp    ipow    10, 2
        a1      oscil   iamp, 100, 1
        a2      apow    a1, 2, iamp
                out     a2
This will output a sine with its negative part folded over the amp axis. The peak value will be iamp = 10^2 = 100.


QUICK-REF - CsoundManual - Top of this section - Previous - Contents - Index - Next 

HTML Csound Manual - © Jean Piché & Peter J. Nix, 1994-97