Bruno Ruviaro added Prand.tex  almost 10 years ago

Commit id: 31d7e11171f8954f821ef7d22e1a18a86a0e4813

deletions | additions      

         

\subsection{Prand}  \texttt{Prand} is a close cousin of \texttt{Pseq}. It also takes in a list and a number of repeats. But instead of playing through the list in sequence, \texttt{Prand} \emph{picks a random item from the list every time}. Try it:    \begin{lstlisting}[style=SuperCollider-IDE, basicstyle=\scttfamily\footnotesize]  (  Pbind(  \degree, Prand([2, 3, 4, 5, 6], inf),  \dur, 0.15,  \amp, 0.2,  \legato, 0.1  ).play;  )  \end{lstlisting}    Replace \texttt{Prand} with \texttt{Pseq} and compare the results. Now try using \texttt{Prand} for durations, amplitudes, legato.