From 8624bad757187614a7cd445247c23addd160ee68 Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 10 Sep 2024 10:31:19 -0400 Subject: [PATCH] examples.md : Experiment with decorating markdown with code type and diagrams --- examples/examples.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/examples/examples.md b/examples/examples.md index 85ca03f..df6e558 100644 --- a/examples/examples.md +++ b/examples/examples.md @@ -1,5 +1,16 @@ - +:::mermaid + graph LR + A[Christmas] -->|Get money| B(Go shopping) + B --> C{Let me think} + subgraph work + C -->|One| D[Laptop] + C --x|Two| E[iPhone] + C -.->|Three| F[fa:fa-car Car] + C ==> G((Bike)) + C --> J>TV] + end +::: ### Example 01 - Write a sine signal to an audio file. @@ -9,7 +20,7 @@ In this example the program is contained in the dictionary labeled `sine_file_01 the preceeding fields (e.g. `base_dir`,`proc_dict`,`subnet_dict`, etc.) contain system parameters that the program needs to compile and run the program. -``` +```YAML { base_dir: "~/src/caw/examples", proc_dict: "~/src/caw/examples/proc_dict.cfg", @@ -32,6 +43,9 @@ system parameters that the program needs to compile and run the program. } } + + + ``` When executed this program will write a five second sine signal to an audio file @@ -72,7 +86,7 @@ processor class file named by the `proc_dict` system parameter field. Here are the class specifications for `sine_tone` and `audio_file_out`. -``` +```yaml sine_tone: { vars: { srate: { type:srate, value:0, doc:"Sine tone sample rate. 0=Use default system sample rate"}