Vital
Loading...
Searching...
No Matches
SynthGuiData Struct Reference

A struct holding references and data used by the GUI to interact with the SynthBase. More...

#include <synth_gui_interface.h>

Public Member Functions

 SynthGuiData (SynthBase *synth_base)
 Constructs SynthGuiData from a given SynthBase instance.
 

Public Attributes

vital::control_map controls
 Current set of parameter controls from the synth.
 
vital::output_map mono_modulations
 Mono (global) modulation values.
 
vital::output_map poly_modulations
 Polyphonic modulation values.
 
vital::output_map modulation_sources
 All available modulation sources.
 
WavetableCreatorwavetable_creators [vital::kNumOscillators]
 Array of pointers to wavetable creators for each oscillator.
 
SynthBasesynth
 Pointer back to the associated SynthBase.
 

Detailed Description

A struct holding references and data used by the GUI to interact with the SynthBase.

SynthGuiData captures a snapshot of various control maps (parameters, modulations) from the SynthBase and provides them to the GUI elements. It also links to the WavetableCreators for each oscillator, enabling the GUI to display and manipulate wavetable data.

Constructor & Destructor Documentation

◆ SynthGuiData()

SynthGuiData::SynthGuiData ( SynthBase * synth_base)

Constructs SynthGuiData from a given SynthBase instance.

Parameters
synth_baseA pointer to the SynthBase whose data is to be captured.

Member Data Documentation

◆ controls

vital::control_map SynthGuiData::controls

Current set of parameter controls from the synth.

◆ modulation_sources

vital::output_map SynthGuiData::modulation_sources

All available modulation sources.

◆ mono_modulations

vital::output_map SynthGuiData::mono_modulations

Mono (global) modulation values.

◆ poly_modulations

vital::output_map SynthGuiData::poly_modulations

Polyphonic modulation values.

◆ synth

SynthBase* SynthGuiData::synth

Pointer back to the associated SynthBase.

◆ wavetable_creators

WavetableCreator* SynthGuiData::wavetable_creators[vital::kNumOscillators]

Array of pointers to wavetable creators for each oscillator.


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