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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (X11; I; IRIX 6.3 IP32) [Netscape]">
<TITLE>RND</TITLE>
</HEAD>
<BODY>
<CENTER><A NAME="rnd"></A>
<HR><B><A HREF="../REFER.html">QUICK-REF</A></B> - <B><A HREF="../TITLE.html"><FONT SIZE=+1>C</FONT>soundManual</A>
- <A HREF="CONVERTERS.html">Top of this section</A></B> - <A HREF="ipow.html">Previous</A>
- <A HREF="../CONTENTS.html">Contents</A> - <A HREF="../INDEX.html">Index</A>
- <A HREF="pitch.html">Next</A></CENTER>
<HR>
<H2>
irnd, krnd, ibirnd, ibirnd, ftlen, ftlptim</H2>
<PRE> <B>irnd(x)</B>
<B>krnd(x)
</B> <B>ibirnd(x)</B>
<B>kbirnd(x)
</B> <B>ftlen(x)</B> (init-rate args only)
<B>ftlptim(x)</B> (init-rate args only)</PRE>
<HR>
<H4>
<U>DESCRIPTION</U></H4>
where the argument within the parentheses may be an expression. These value
converters sample a global random sequence or return information about
a stored function table. The result can be a term in a further expression.
<BR>
<H4>
<U>PERFORMANCE</U></H4>
<B>rnd(x)</B> returns
a random number in the unipolar range 0 to x. The form <B>irnd(x)</B> returns
at i-rate.
<BR>
The form <B>krnd(x) </B>returns at k-rate
<P><B>birnd(x)</B> returns a
random number in the bipolar range -x to x.
<BR>
These units obtain values from a global psuedo-random number generator,
<BR>
then scale them into the requested range. The single global generator
will
<BR>
thus distribute its sequence to these units throughout the performance,
<BR>
in whatever order the requests arrive. The form <B>ibirnd(x)</B> returns
at i-rate.
<BR>
The form <B>kbirnd(x) </B>returns at k-rate
<P><B>ftlen(x) </B> returns the
size (no. of points, excl. guard point) of stored function table no. x.
<BR>
While most units referencing a stored table will automatically take its
size
<BR>
into account (so tables can be of arbitrary length), this function reports
<BR>
the actual size if that is needed.
<P><B>ftlptim(x)</B> returns the loop segment
start-time (in seconds) of stored function table no. x.
<BR>
This reports the duration of the direct recorded attack and decay parts
of a
<BR>
sound sample, prior to its looped segment. Returns zero (and a warning
<BR>
message) if the sample does not contain loop points.
<H4>
<U>AUTHOR:</U></H4>
Barry Vercoe
<BR>M.I.T., Cambridge, Mass
<BR>1997
<BR>
<CENTER></CENTER>
<CENTER>
<HR><B><A HREF="../REFER.html">QUICK-REF</A></B> - <B><A HREF="../TITLE.html"><FONT SIZE=+1>C</FONT>soundManual</A>
- <A HREF="CONVERTERS.html">Top of this section</A></B> - <A HREF="ipow.html">Previous</A>
- <A HREF="../CONTENTS.html">Contents</A> - <A HREF="../INDEX.html">Index</A>
- <A HREF="pitch.html">Next</A></CENTER>
<HR>
<CENTER></CENTER>
<CENTER><B><I><FONT COLOR="#006600">HTML Csound Manual - <FONT SIZE=-1>©
Jean Piché & Peter J. Nix, 1994-97</FONT></FONT></I></B></CENTER>
</BODY>
</HTML>
|