Vital
Loading...
Searching...
No Matches
vital::cr::Output Struct Reference

A specialized Output that always runs at control rate (buffer_size = 1). More...

#include <processor.h>

Inheritance diagram for vital::cr::Output:
vital::Output

Public Member Functions

 Output ()
 Constructs a control-rate Output (always buffer_size = 1).
 
- Public Member Functions inherited from vital::Output
 Output (int size=kMaxBufferSize, int max_oversample=1)
 Constructs an Output with a specified buffer size and oversampling factor.
 
virtual ~Output ()
 Virtual destructor.
 
force_inline void trigger (poly_mask mask, poly_float value, poly_int offset)
 Sets trigger values (mask, trigger value, and offset).
 
force_inline void clearTrigger ()
 Clears the trigger mask, value, and offset.
 
void clearBuffer ()
 Zeros out the entire output buffer.
 
force_inline bool isControlRate () const
 Checks whether this output runs at control rate (buffer_size == 1).
 
void ensureBufferSize (int new_max_buffer_size)
 Ensures the buffer is large enough to hold new_max_buffer_size samples. This will reallocate if necessary (unless already control rate).
 

Additional Inherited Members

- Public Attributes inherited from vital::Output
poly_floatbuffer
 Pointer to the output buffer.
 
std::unique_ptr< poly_float[]> owned_buffer
 Owned memory for the output buffer.
 
Processorowner
 Owning processor.
 
int buffer_size
 Current buffer size in samples.
 
poly_mask trigger_mask
 Mask for triggered voices.
 
poly_float trigger_value
 Trigger values for voices.
 
poly_int trigger_offset
 Sample offset (per voice) for triggers.
 

Detailed Description

A specialized Output that always runs at control rate (buffer_size = 1).

This is used for control signals rather than audio signals.

Constructor & Destructor Documentation

◆ Output()

vital::cr::Output::Output ( )
inline

Constructs a control-rate Output (always buffer_size = 1).


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