inorm (optional, default=1) -- 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!
Performance
aarg, iarg, karg -- the base.
ipow, kpow -- the exponent.
Note
Use ˆ with caution in arithmetical statements, as the precedence may not be correct. New in Csound version 3.493.
Examples
Here is an example of the pow opcode. It uses the file pow.csd.
<CsoundSynthesizer><CsOptions>; Select audio/midi flags here according to platform-odac ;;;realtime audio out;-iadc ;;;uncomment -iadc if RT audio input is needed too; For Non-realtime ouput leave only the line below:;-o pow.wav ; output to audio file</CsOptions><CsInstruments>sr=44100ksmps=32nchnls=20dbfs=1instr1; Lo-Fi soundkpow=10;exponentkbaseline1,p3,1.4;vary the basekQuantizepowkbase,kpowkQuantize=kQuantize*0.5;half the number of steps for each side of a bipolar signalprintk2kQuantizeasigdiskin2"fox.wav",1,0,1;loop the foxasig=round(asig*kQuantize)/kQuantize;quantize and scale audio signaloutsasig,asigendin</CsInstruments><CsScore>i1019.2e</CsScore></CsoundSynthesizer>