Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::dsp::diagram::detail Namespace Reference

Classes

struct  Out
 

Functions

void node_label (const Node &n, char *out, size_t cap)
 Label with the paper symbol and the cheap live parameter.
 
void node_decl (const Node &n, uint8_t id, char *out, size_t cap)
 Shape by kind: the reader should tell a delay from a filter at a glance.
 
const char * wave_name (Wave w)
 
void edge_decl (uint8_t from, uint8_t to, Wave w, char *out, size_t cap)
 
uint8_t fold_target (const Graph &g, uint8_t group)
 The group a node renders in at Components depth: nested groups fold to their id.
 
void emit_group (const Graph &g, uint8_t gid, Depth depth, Out &o, int indent)
 

Function Documentation

◆ node_label()

◆ node_decl()

◆ wave_name()

const char * sbl::dsp::diagram::detail::wave_name ( Wave  w)
inline

Definition at line 92 of file mermaid.hpp.

References sbl::dsp::diagram::Force, sbl::dsp::diagram::Signal, and sbl::dsp::diagram::Velocity.

Referenced by edge_decl().

◆ edge_decl()

void sbl::dsp::diagram::detail::edge_decl ( uint8_t  from,
uint8_t  to,
Wave  w,
char *  out,
size_t  cap 
)
inline

Definition at line 101 of file mermaid.hpp.

References wave_name().

Referenced by sbl::dsp::diagram::render_mermaid().

◆ fold_target()

uint8_t sbl::dsp::diagram::detail::fold_target ( const Graph &  g,
uint8_t  group 
)
inline

The group a node renders in at Components depth: nested groups fold to their id.

Definition at line 108 of file mermaid.hpp.

References sbl::dsp::diagram::Graph::group(), sbl::dsp::diagram::NO_GROUP, and sbl::dsp::diagram::Group::parent.

Referenced by sbl::dsp::diagram::render_mermaid().

◆ emit_group()