Vital
Loading...
Searching...
No Matches
vocal_tract.cpp
Go to the documentation of this file.
1#include "vocal_tract.h"
2
3namespace vital {
4
9 }
10
16
21 void VocalTract::reset(poly_mask reset_mask) {
22 // Currently no internal states to reset.
23 }
24
31
36 void VocalTract::process(int num_samples) {
37 const poly_float* audio_in = input(kAudio)->source->buffer;
38 processWithInput(audio_in, num_samples);
39 }
40
46 void VocalTract::processWithInput(const poly_float* audio_in, int num_samples) {
47 // Implementation placeholder: any actual shaping or vocal tract modeling
48 // logic would occur here, modifying the signal and writing it to output().
49 }
50
51} // namespace vital
force_inline Input * input(unsigned int index=0) const
Retrieves the Input pointer at a given index.
Definition processor.h:587
A specialized Processor that manages a directed graph of Processors and ensures correct processing or...
Definition processor_router.h:34
void hardReset() override
Performs a hard reset of all internal states, returning to default values.
Definition vocal_tract.cpp:28
virtual void processWithInput(const poly_float *audio_in, int num_samples) override
Processes a given input buffer through the vocal tract model.
Definition vocal_tract.cpp:46
VocalTract()
Constructs a VocalTract processor.
Definition vocal_tract.cpp:8
virtual void process(int num_samples) override
Processes audio with the given number of samples using the already connected input.
Definition vocal_tract.cpp:36
void reset(poly_mask reset_mask) override
Resets internal states for specific voices indicated by the reset mask.
Definition vocal_tract.cpp:21
virtual ~VocalTract()
Destructor.
Definition vocal_tract.cpp:14
@ kAudio
The input audio signal.
Definition vocal_tract.h:35
const poly_mask kFullMask
A mask covering all lanes of a poly_float vector.
Definition synth_constants.h:257
Contains classes and functions used within the Vital synthesizer framework.
const Output * source
The output from which this input reads samples.
Definition processor.h:134
poly_float * buffer
Pointer to the output buffer.
Definition processor.h:110
Represents a vector of floating-point values using SIMD instructions.
Definition poly_values.h:600
Represents a vector of integer values using SIMD instructions.
Definition poly_values.h:56