50 if (type ==
"Wave Source")
52 if (type ==
"Line Source")
54 if (type ==
"Audio File Source")
56 if (type ==
"Shepard Tone Source")
58 if (type ==
"Phase Shift")
60 if (type ==
"Wave Window")
62 if (type ==
"Frequency Filter")
64 if (type ==
"Slew Limiter")
66 if (type ==
"Wave Folder")
68 if (type ==
"Wave Warp")
83 return "Audio File Source";
85 return "Shepard Tone Source";
91 return "Frequency Filter";
93 return "Slew Limiter";
A WavetableComponent that uses an external audio sample as its source.
Definition file_source.h:23
A WavetableComponent that applies frequency-domain filtering to a wavetable frame.
Definition frequency_filter_modifier.h:18
A WavetableComponent that modifies the phase of frequency components in a wavetable frame.
Definition phase_modifier.h:19
A WaveSource that constructs a special looped waveform reminiscent of a Shepard tone.
Definition shepard_tone_source.h:18
A WavetableComponent that applies slew-rate limiting to a wave’s time-domain signal.
Definition slew_limit_modifier.h:18
A WavetableComponent that applies a wave-folding transformation to a waveform.
Definition wave_fold_modifier.h:19
A WavetableComponent that generates waveforms from a series of line segments.
Definition wave_line_source.h:23
A WavetableComponent that acts as a direct source of waveforms.
Definition wave_source.h:25
A WavetableComponent that applies nonlinear horizontal and vertical warping to a waveform.
Definition wave_warp_modifier.h:24
A WavetableComponent that applies a windowing function to a waveform’s head and tail.
Definition wave_window_modifier.h:19
static WavetableComponent * createComponent(ComponentType type)
Creates a new WavetableComponent instance of a given enumerated type.
Definition wavetable_component_factory.cpp:19
ComponentType
Enumerates all known WavetableComponents, including sources and modifiers.
Definition wavetable_component_factory.h:28
@ kWaveFolder
Modifier that applies wave folding.
Definition wavetable_component_factory.h:40
@ kWaveWindow
Modifier that applies window functions to the wave.
Definition wavetable_component_factory.h:37
@ kWaveSource
A basic wave source.
Definition wavetable_component_factory.h:29
@ kFrequencyFilter
Modifier that filters frequency components.
Definition wavetable_component_factory.h:38
@ kPhaseModifier
Modifier that shifts phase.
Definition wavetable_component_factory.h:36
@ kFileSource
A file-based audio source.
Definition wavetable_component_factory.h:31
@ kWaveWarp
Modifier that warps the waveform.
Definition wavetable_component_factory.h:41
@ kLineSource
A line-based wave source.
Definition wavetable_component_factory.h:30
@ kShepardToneSource
Definition wavetable_component_factory.h:33
@ kSlewLimiter
Modifier that limits slew rate.
Definition wavetable_component_factory.h:39
static std::string getComponentName(ComponentType type)
Gets the human-readable name of a component from its enumerated type.
Definition wavetable_component_factory.cpp:75
A base class representing a component in a wavetable synthesis chain.
Definition wavetable_component.h:32
#define VITAL_ASSERT(x)
Definition common.h:11