<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>fractalnoise</title> <link rel="stylesheet" type="text/css" href="csound.css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /> <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" /> <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" /> <link rel="prev" href="frac.html" title="frac" /> <link rel="next" href="freeverb.html" title="freeverb" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">fractalnoise</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="frac.html">Prev</a> </td> <th width="60%" align="center">Orchestra Opcodes and Operators</th> <td width="20%" align="right"> <a accesskey="n" href="freeverb.html">Next</a></td> </tr> </table> <hr /> </div> <div class="refentry" title="fractalnoise"> <a id="fractalnoise"></a> <div class="titlepage"></div> <a id="IndexFractalNoise" class="indexterm"></a> <div class="refnamediv"> <h2> <span class="refentrytitle">fractalnoise</span> </h2> <p>fractalnoise — A fractal noise generator. </p> </div> <div class="refsect1" title="Description"> <a id="idp24489056"></a> <h2>Description</h2> <p> A fractal noise generator implemented as a white noise filtered by a cascade of 15 first-order filters. </p> </div> <div class="refsect1" title="Syntax"> <a id="idp24489888"></a> <h2>Syntax</h2> <pre class="synopsis">ares <span class="command"><strong>fractalnoise</strong></span> kamp, kbeta</pre> </div> <div class="refsect1" title="Performance"> <a id="idp24491032"></a> <h2>Performance</h2> <p> <span class="emphasis"><em>kamp</em></span> -- amplitude. </p> <p> <span class="emphasis"><em>kbeta</em></span> -- spectral parameter related to the fractal dimension </p> <div class="itemizedlist"> <ul class="itemizedlist" type="disc"> <li class="listitem"> <p>0 - white</p> </li> <li class="listitem"> <p>1 - pink</p> </li> <li class="listitem"> <p>2 - brown</p> </li> </ul> </div> <p> </p> </div> <div class="refsect1" title="Examples"> <a id="idp24493464"></a> <h2>Examples</h2> <p> Here is an example of the fractalnoise opcode. It uses the file <a class="ulink" href="examples/fractalnoise.csd" target="_top"><em class="citetitle">fractalnoise.csd</em></a>. </p> <div class="example"> <a id="idp24494464"></a> <p class="title"> <strong>Example 299. Example of the fractalnoise opcode.</strong> </p> <div class="example-contents"> <p>See the sections <a class="link" href="UsingRealTime.html" title="Real-Time Audio"><em class="citetitle">Real-time Audio</em></a> and <a class="link" href="CommandFlags.html" title="Csound command line"><em class="citetitle">Command Line Flags</em></a> for more information on using command line flags.</p> <pre class="programlisting"> <span class="csdtag"><CsoundSynthesizer></span> <span class="csdtag"><CsOptions></span> <span class="comment">; Select audio/midi flags here according to platform</span> -odac <span class="comment">;;;realtime audio out</span> <span class="comment">;-iadc ;;;uncomment -iadc if realtime audio input is needed too</span> <span class="comment">; For Non-realtime ouput leave only the line below:</span> <span class="comment">; -o oscil.wav -W ;;; for file output any platform</span> <span class="csdtag"></CsOptions></span> <span class="csdtag"><CsInstruments></span> <span class="ohdr">sr</span> <span class="op">=</span> 44100 <span class="ohdr">ksmps</span> <span class="op">=</span> 32 <span class="ohdr">nchnls</span> <span class="op">=</span> 2 <span class="ohdr">0dbfs</span> <span class="op">=</span> 1 <span class="oblock">instr</span> 1 kbeta <span class="opc">linseg</span> 0, p3/4, 2, p3/4, 0, p3*0.1, 2, p3*0.15, 0 <span class="opc">seed</span> 20120124 aout <span class="opc">fractalnoise</span> 0.05, kbeta <span class="opc">outs</span> aout, aout <span class="oblock">endin</span> <span class="csdtag"></CsInstruments></span> <span class="csdtag"><CsScore></span> <span class="stamnt">i</span>1 0 10 <span class="stamnt">e</span> <span class="csdtag"></CsScore></span> <span class="csdtag"></CsoundSynthesizer></span> </pre> </div> </div> <p><br class="example-break" /> </p> </div> <div class="refsect1" title="References"> <a id="idp24496760"></a> <h2>References</h2> <p> </p> <div class="orderedlist"> <ol class="orderedlist" type="1"> <li class="listitem"> <p> R. Saletti. A comparison between two methods to generate 1/(f^gamma) noise. In Proc. IEEE, volume 74, pp. 1595-1596, November 1986. </p> </li> <li class="listitem"> <p> G. Corsini and R. Saletti. A 1/(f^gamma) power spectrum noise sequence generator. IEEE Trans. on Instrumentation and Measurement, 37(4):615-619, December 1988. </p> </li> <li class="listitem"> <p> The Sounding Object, edited by Davide Rocchesso and Federico Fontana, Edizioni di Mondo Estremo. Chapter 8 by Federico Avanzini, pp. 154-157. </p> </li> </ol> </div> <p> </p> </div> <div class="refsect1" title="Credits"> <a id="idp24499808"></a> <h2>Credits</h2> <p> </p> <table border="0" summary="Simple list" class="simplelist"> <tr> <td>Author: Tito Latini</td> </tr> <tr> <td>January 2012</td> </tr> </table> <p> </p> <p>New in Csound version 5.16</p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="frac.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="OpcodesTop.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="freeverb.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">frac </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> freeverb</td> </tr> </table> </div> </body> </html>