Skip to content

Commit

Permalink
Add modulation example.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Nov 11, 2023
1 parent a349905 commit 804d3ac
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
13 changes: 12 additions & 1 deletion quick-reference/chapters/modulation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,15 @@ \subsubsection{Modulators}
lfo(10, 0.5), _, _ : ["Wet": * -> freeverb]
\end{lstlisting}

The main différence with the previous case is that if \lstinline`lfo` had its own user interface, it would be added outside of the \lstinline`freeverb` interface.
The main difference with the previous case is that if \lstinline`lfo` had its own user interface, it would be added outside of the \lstinline`freeverb` interface.

Here is a complete example:

\begin{lstlisting}
import("stdfaust.lib");

process = ["Wet": *(lfo(0.5, 0.9)) -> dm.freeverb_demo]
with {
lfo(f,g) = 1+os.osc(f)*g;
};
\end{lstlis
15 changes: 15 additions & 0 deletions src/manual/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -3211,3 +3211,18 @@ Finally, a `2->1` modulator is a circuit with two inputs, like `*`. Its first in
```
lfo(10, 0.5), _, _ : ["Wet": * -> freeverb]
```

The main difference with the previous case is that if `lfo` had its own user interface, it would be added outside of the `freeverb` interface.

Here is a complete example:

<!-- faust-run -->
```
import("stdfaust.lib");
process = ["Wet": *(lfo(0.5, 0.9)) -> dm.freeverb_demo]
with {
lfo(f,g) = 1+os.osc(f)*g;
};
```
<!-- /faust-run -->

0 comments on commit 804d3ac

Please sign in to comment.