|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
A structured audio region with metadata and transition information. More...
#include <OrganizedRegion.hpp>
Collaboration diagram for MayaFlux::Kakshya::OrganizedRegion:Public Member Functions | |
| OrganizedRegion ()=default | |
| OrganizedRegion (std::string name, size_t index) | |
| uint64_t | get_total_volume () const |
| Get the total volume (elements) of all segments. | |
| bool | contains_position (const std::vector< uint64_t > &position) const |
| Check if position is within any segment. | |
| const RegionSegment * | get_active_segment () const |
| Get the active segment for current position. | |
| std::optional< size_t > | find_segment_for_position (const std::vector< uint64_t > &position) const |
| Find segment containing specific position. | |
| template<typename T > | |
| void | set_attribute (const std::string &key, T &&value) |
| Set processing metadata for this region. | |
| template<typename T > | |
| std::optional< T > | get_attribute (const std::string &key) const |
| Get processing metadata from this region. | |
Public Attributes | |
| std::string | group_name |
| Name of the region group. | |
| size_t | region_index {} |
| Index within the group. | |
| std::vector< RegionSegment > | segments |
| Audio segments in this region. | |
| std::unordered_map< std::string, std::any > | attributes |
| Extensible metadata. | |
| RegionTransition | transition_type = RegionTransition::IMMEDIATE |
| Transition to next region. | |
| double | transition_duration_ms = 0.0 |
| Duration of transition in milliseconds. | |
| RegionSelectionPattern | selection_pattern = RegionSelectionPattern::SEQUENTIAL |
| RegionState | state = RegionState::IDLE |
| std::vector< uint64_t > | current_position |
| Current read position. | |
| size_t | active_segment_index = 0 |
| Currently active segment. | |
| std::vector< size_t > | active_segment_indices |
| Multiple active segments (for overlapping) | |
| bool | looping_enabled = false |
| std::vector< uint64_t > | loop_start |
| Loop start coordinates. | |
| std::vector< uint64_t > | loop_end |
| Loop end coordinates. | |
A structured audio region with metadata and transition information.
Represents a higher-level organization of audio segments with associated metadata, enabling complex non-linear audio arrangements and transitions.
Definition at line 14 of file OrganizedRegion.hpp.