1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="GENERATOR" CONTENT="Mozilla/4.03 [en] (X11; I; IRIX 6.3 IP32) [Netscape]">
<TITLE>IPOW</TITLE>
</HEAD>
<BODY>
<CENTER><A NAME="ipow"></A>
<HR><B><A HREF="../REFER.html">QUICK-REF</A></B> - <B><A HREF="../TITLE.html"><FONT SIZE=+1>C</FONT>soundManual</A></B>
- <B><A HREF="CONVERTERS.html">Top of this section</A></B> - <A HREF="value.html">Previous</A>
- <A HREF="../CONTENTS.html">Contents</A> - <A HREF="../INDEX.html">Index</A>
- <A HREF="rnd.html">Next</A>
<HR></CENTER>
<H2>
ipow, kpow, apow</H2>
<PRE> ir <B>ipow</B> iarg, kpow
kr <B>kpow</B> karg, kpow, [inorm]
ar <B>apow</B> aarg, kpow, [inorm]</PRE>
<HR>
<H4>
<U>DESCRIPTION</U></H4>
Computes xarg to the power of <I>kpow</I> and scales the result by <I>inorm</I>.
<H4>
<U>INITIALIZATION</U></H4>
<I>inorm</I> - 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!
<P><I>iarg</I> - If you are using <B>ipow</B> this is the base.
<H4>
<U>PERFORMANCE</U></H4>
<I>karg</I> - If you are using <B>kpow</B> this is the base.
<P><I>aarg</I> - If you are using <B>apow</B> this is the base.
<H4>
<U>EXAMPLE:</U></H4>
<PRE>1. i2t2 <B>ipow</B> 2,2 ; Computes 2^2.
2. kline <B>line</B> 0, 1, 4
kexp <B>kpow</B> kline, 2, 4</PRE>
This feeds a linear function to <B>kpow</B> and scales that to the line's
peak value. The output will be an exponential curve with the same range
as the input line.
<PRE>3. iamp <B>ipow</B> 10, 2
a1 <B>oscil</B> iamp, 100, 1
a2 <B>apow</B> a1, 2, iamp
<B>out</B> a2</PRE>
This will output a sine with its negative part folded over the amp axis.
The peak value will be iamp = 10^2 = 100.
</BODY>
<CENTER><P>
<HR><B><A HREF="../REFER.html">QUICK-REF</A></B> - <B><A HREF="../TITLE.html"><FONT SIZE=+1>C</FONT>soundManual</A></B>
- <B><A HREF="CONVERTERS.html">Top of this section</A></B> - <A HREF="value.html">Previous</A>
- <A HREF="../CONTENTS.html">Contents</A> - <A HREF="../INDEX.html">Index</A>
- <A HREF="rnd.html">Next</A>
<HR></CENTER>
<P><CENTER>
<B><I><FONT COLOR="#006600">HTML Csound Manual - <FONT SIZE=-1>©
Jean Piché & Peter J. Nix, 1994-97</FONT></FONT></I></B>
</CENTER>
</HTML>
|