Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Jul 15, 2018
1 parent 1edfa67 commit 1c85a9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ AudioGraphRef graph = new AudioGraph();

/*------------------------------------------------------------------------
* A SynthTemplate constructs a reusable synthesis graph.
* -Ref objects are std::shared_ptr smart pointers,
* so no memory management required.
* Objects whose names end in Ref are std::shared_ptr smart pointers,
* for automatic memory management.
*-----------------------------------------------------------------------*/
SynthTemplateRef tmp = new SynthTemplate("ping");

Expand All @@ -32,14 +32,19 @@ NodeRef sine = tmp->add_node(new Sine({ 440, 880 }));
NodeRef env = tmp->add_node(new ASR(0.01, 0.1, 0.5));

/*------------------------------------------------------------------------
* Operator overloading: Apply the envelope to the sine wave's amplitude
* Operator overloading: Modulate the sine wave's amplitude with the
* output of the ASR envelope.
*-----------------------------------------------------------------------*/
NodeRef ping = tmp->add_node(sine * env);

/*------------------------------------------------------------------------
* Single-tap delay line with feedback.
*-----------------------------------------------------------------------*/
NodeRef delay = tmp->add_node(new Delay(ping, 0.5, 0.5));

/*------------------------------------------------------------------------
* A SynthTemplate must have a single output node.
*-----------------------------------------------------------------------*/
tmp->set_output(delay);

/*------------------------------------------------------------------------
Expand Down Expand Up @@ -81,7 +86,7 @@ See [examples](examples) for a number of example programs.
To run an example:
```
cd examples
cd build
./hello-world
```
Expand Down
2 changes: 1 addition & 1 deletion signal/version.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#define SIGNAL_VERSION "0.1.1"
#define SIGNAL_BUILD 523
#define SIGNAL_BUILD 524

0 comments on commit 1c85a9f

Please sign in to comment.