this is for holding javascript data
Bruno Ruviaro edited Nesting.tex
almost 10 years ago
Commit id: 2f26098917d972da9350302ef22f8942f183c051
deletions | additions
diff --git a/Nesting.tex b/Nesting.tex
index 2d91cc4..e39a56d 100644
--- a/Nesting.tex
+++ b/Nesting.tex
...
\textit{To ``read" this style of code you start from the innermost nested message and move out to each successive layer. Here is an example aligned to show how the innermost message is nested inside the outer messages.}
\end{quotation}
exprand(1.0, 1000.0);
dup({exprand(1.0, 1000.0)}, 100);
sort(dup({exprand(1.0, 1000.0)}, 100));
round(sort(dup({exprand(1.0, 1000.0)}, 100)), 0.01);
\lstinputlisting[style=SuperCollider-IDE, basicstyle=\scttfamily\footnotesize]{code-nesting.scd}
The code below is an example of nesting. Answer the questions that follow. You don't have to explain what the numbers are doing---the task is simply to identify the arguments in each layer of nesting. (Example and exercise questions also borrowed and slightly adapted from Cottle's tutorial.)