X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/c7f552fd8888da2f0d8cfb228fe0f28d3df3a12c..b4b6f2ea75b9f0f3ca918f5b84016610bf7a4d4f:/interpretor/preprocessor/faust-0.9.47mr3/examples/noisemetadata.dsp
diff --git a/interpretor/preprocessor/faust-0.9.47mr3/examples/noisemetadata.dsp b/interpretor/preprocessor/faust-0.9.47mr3/examples/noisemetadata.dsp
new file mode 100644
index 0000000..33b5f02
--- /dev/null
+++ b/interpretor/preprocessor/faust-0.9.47mr3/examples/noisemetadata.dsp
@@ -0,0 +1,71 @@
+
+\title{name}
+\author{author}
+\date{\today}
+\maketitle
+
+\begin{tabular}{ll}
+ \hline
+ \textbf{name} & name \\
+ \textbf{version} & version \\
+ \textbf{author} & author \\
+ \textbf{license} & license \\
+ \textbf{copyright} & copyright \\
+ \hline
+\end{tabular}
+\bigskip
+
+//-----------------------------------------------------------------
+// Noise generator and demo file for the Faust math documentation
+//-----------------------------------------------------------------
+
+declare name "NoiseMD"; // avoid same name as in noise.dsp
+declare version "1.1";
+declare author "Grame";
+declare author "Yghe";
+declare license "BSD";
+declare copyright "(c)GRAME 2009";
+
+
+\section{Presentation of the "noise.dsp" Faust program}
+This program describes a white noise generator with an interactive volume, using a random function.
+
+\subsection{The random function}
+
+
+random = +(12345)~*(1103515245);
+
+
+The \texttt{random} function describes a generator of random numbers, which equation follows. You should notice hereby the use of an integer arithmetic on 32 bits, relying on integer wrapping for big numbers.
+random
+
+\subsection{The noise function}
+
+
+noise = random/2147483647.0;
+
+
+The white noise then corresponds to:
+noise
+
+\subsection{Just add a user interface element to play volume!}
+
+
+process = noise * vslider("Volume[style:knob]", 0, 0, 1, 0.1);
+
+
+Endly, the sound level of this program is controlled by a user slider, which gives the following equation:
+process
+
+\section{Block-diagram schema of process}
+This process is illustrated on figure 1.
+process
+
+\section{Notice of this documentation}
+You might be careful of certain information and naming conventions used in this documentation:
+
+
+\section{Listing of the input code}
+The following listing shows the input Faust code, parsed to compile this mathematical documentation.
+
+