Skip to content

Commit

Permalink
Document peak graph example
Browse files Browse the repository at this point in the history
  • Loading branch information
exa04 committed Apr 20, 2024
1 parent a3326ce commit dbccac1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/peak_graph/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Peak Graph

> [!NOTE]
> This code is taken from the *Composing a Peak Graph* chapter of the Cyma Book.
![A peak graph visualizer with a grid backdrop and a unit ruler to the side.](doc/peak_graph.png)

A peak analyzer plugin.

This example plug-in uses a peak buffer that stores incoming audio as peaks that
decay in amplitude. The buffer is behind an `Arc<Mutex>`. By cloning the Arc, a
reference is sent to the editor. The editor uses the buffer to draw a `PeakGraph`.

Behind it is a grid, and to the side of it is a unit ruler. These views are composed
using VIZIA's *Stack* views.
Binary file added examples/peak_graph/doc/peak_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dbccac1

Please sign in to comment.