Skip to content

Commit

Permalink
Improve documentation of soundfile primitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Dec 12, 2023
1 parent b490d3c commit 3d77063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quick-reference/chapters/primitives.tex
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ \subsection{Waveform Primitive}
\subsection{Soundfile Primitive}
%--------------------------------------------------------------------------------------------------------------

The \lstinline'soundfile("label[url:\{'path1';'path2';'path3';\}]", n)' primitive allows access to a list of externally defined sound resources, described as the list of their filename, or complete paths. The \lstinline'soundfile("label[url:path]", n)' , or \lstinline'soundfile("label", n)' (where label is used as the soundfile path) simplified syntax allows to use a single file. All sound resources are concatenated in a single data structure, and each item can be accessed and used independently.
The \lstinline'soundfile("label[url:\{'path1';'path2';'path3';\}]", n)' primitive allows access to a list of externally defined sound resources, described as a label followed by the list of their filename, or complete paths (possibly using the '\texttt{\%i}' syntax, as in the label part). The \lstinline'soundfile("label[url:path]", n)' , or \lstinline'soundfile("label", n)' (where label is used as the soundfile path) simplified syntax allows to use a single file. All sound resources are concatenated in a single data structure, and each item can be accessed and used independently.

A soundfile has:

Expand Down
2 changes: 1 addition & 1 deletion src/manual/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ process = triangleOsc(f);

### `soundfile` Primitive

The `soundfile("label[url:{'path1';'path2';'path3'}]", n)` primitive allows access to a list of externally defined sound resources, described as the list of their filename, or complete paths. The `soundfile("label[url:path]", n)` simplified syntax, or `soundfile("label", n)` (where label is used as the soundfile path) allows to use a single file. All sound resources are concatenated in a single data structure, and each item can be accessed and used independently.
The `soundfile("label[url:{'path1';'path2';'path3'}]", n)` primitive allows access to a list of externally defined sound resources, described as a label followed by the list of their filename, or complete paths (possibly using the `%i` syntax, as in the label part). The `soundfile("label[url:path]", n)` simplified syntax, or `soundfile("label", n)` (where label is used as the soundfile path) allows to use a single file. All sound resources are concatenated in a single data structure, and each item can be accessed and used independently.

A `soundfile` has:

Expand Down

0 comments on commit 3d77063

Please sign in to comment.