DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::wdf::detail::DiodeLocal::Builder Struct Reference

#include <WDF.h>

Public Attributes

double offset = 0.0
 Offset of the cell grid.
 
std::uint64_t firstKey = 0
 Key of the first cell.
 
int count = 0
 Cells built so far.
 
bool done = true
 Nothing left to build.
 
double twoC = 0.0
 
double from = 0.0
 
double to = 0.0
 
double c = 0.0
 Constant of the single diode.
 
bool single = false
 Single diode instead of the pair.
 
bool clipTop = false
 The last cell ends at to.
 
int capacity = kMaxCells
 Cells the caller has room for.
 
int nearest = 0
 Anchor nearest the last cell.
 
int anchorCentre [2] = { -1, -1 }
 Centres of the two anchors held.
 
double anchorWidth [2] = { 0.0, 0.0 }
 
Expansion anchor [2]
 

Detailed Description

A build in progress: start() lays the grid out for a constant and a range of drives, and every step() adds one cell, usable at once, so that a running circuit can spread the work over its samples (an anchor costs about 1700 multiply-adds, a cell about 500 more).

Definition at line 1311 of file WDF.h.

Member Data Documentation

◆ anchor

Expansion dspark::wdf::detail::DiodeLocal::Builder::anchor[2]

Definition at line 1325 of file WDF.h.

◆ anchorCentre

int dspark::wdf::detail::DiodeLocal::Builder::anchorCentre[2] = { -1, -1 }

Centres of the two anchors held.

Definition at line 1323 of file WDF.h.

◆ anchorWidth

double dspark::wdf::detail::DiodeLocal::Builder::anchorWidth[2] = { 0.0, 0.0 }

Definition at line 1324 of file WDF.h.

◆ c

double dspark::wdf::detail::DiodeLocal::Builder::c = 0.0

Constant of the single diode.

Definition at line 1318 of file WDF.h.

◆ capacity

int dspark::wdf::detail::DiodeLocal::Builder::capacity = kMaxCells

Cells the caller has room for.

Definition at line 1321 of file WDF.h.

◆ clipTop

bool dspark::wdf::detail::DiodeLocal::Builder::clipTop = false

The last cell ends at to.

Definition at line 1320 of file WDF.h.

◆ count

int dspark::wdf::detail::DiodeLocal::Builder::count = 0

Cells built so far.

Definition at line 1315 of file WDF.h.

◆ done

bool dspark::wdf::detail::DiodeLocal::Builder::done = true

Nothing left to build.

Definition at line 1316 of file WDF.h.

◆ firstKey

std::uint64_t dspark::wdf::detail::DiodeLocal::Builder::firstKey = 0

Key of the first cell.

Definition at line 1314 of file WDF.h.

◆ from

double dspark::wdf::detail::DiodeLocal::Builder::from = 0.0

Definition at line 1317 of file WDF.h.

◆ nearest

int dspark::wdf::detail::DiodeLocal::Builder::nearest = 0

Anchor nearest the last cell.

Definition at line 1322 of file WDF.h.

◆ offset

double dspark::wdf::detail::DiodeLocal::Builder::offset = 0.0

Offset of the cell grid.

Definition at line 1313 of file WDF.h.

◆ single

bool dspark::wdf::detail::DiodeLocal::Builder::single = false

Single diode instead of the pair.

Definition at line 1319 of file WDF.h.

◆ to

double dspark::wdf::detail::DiodeLocal::Builder::to = 0.0

Definition at line 1317 of file WDF.h.

◆ twoC

double dspark::wdf::detail::DiodeLocal::Builder::twoC = 0.0

Definition at line 1317 of file WDF.h.


The documentation for this struct was generated from the following file: