|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
Segments container audio into fixed hop-size grain windows. More...
#include <GranularWorkflow.hpp>
Inheritance diagram for MayaFlux::Yantra::Granular::SegmentOp:
Collaboration diagram for MayaFlux::Yantra::Granular::SegmentOp:Public Member Functions | |
| ExtractionType | get_extraction_type () const override |
| Get extraction type category. | |
| SegmentOp () | |
Public Member Functions inherited from MayaFlux::Yantra::FeatureExtractor< Kakshya::RegionGroup, Kakshya::RegionGroup > | |
| FeatureExtractor (uint32_t window_size=512, uint32_t hop_size=256, ExtractionMethod method=ExtractionMethod::HIGH_ENERGY_DATA) | |
| Construct FeatureExtractor with default parameters. | |
| std::vector< std::string > | get_available_methods () const override |
| Get available extraction methods. | |
| ExtractionMethod | get_extraction_method () const |
| Get current extraction method. | |
| uint32_t | get_hop_size () const |
| Get current hop size. | |
| uint32_t | get_window_size () const |
| Get current window size. | |
| void | set_extraction_method (const std::string &method_name) |
| Set extraction method using string (case-insensitive) | |
| void | set_extraction_method (ExtractionMethod method) |
| Set extraction method using enum. | |
| void | set_hop_size (uint32_t size) |
| Set hop size for analysis. | |
| void | set_window_size (uint32_t size) |
| Set window size for analysis. | |
| bool | validate_extraction_input (const input_type &input) const override |
| Input validation. | |
Public Member Functions inherited from MayaFlux::Yantra::UniversalExtractor< InputType, OutputType > | |
| std::vector< OutputType > | extract_batch (const std::vector< input_type > &inputs) |
| Batch extraction for multiple inputs. | |
| std::vector< OutputType > | extract_batch (const std::vector< InputType > &inputs) |
| OutputType | extract_data (const input_type &data) |
| Type-safe extraction method. | |
| OutputType | extract_data (const InputType &data) |
| OutputType | extract_with_scope (const input_type &data, ExtractionScope scope) |
| Extract with specific scope. | |
| OutputType | extract_with_scope (const InputType &data, ExtractionScope scope) |
| std::map< std::string, std::any > | get_all_parameters () const override |
| Retrieves all parameters and their values. | |
| std::string | get_name () const override |
| Gets human-readable name for this extractor. | |
| OperationType | get_operation_type () const override |
| Returns the category of this operation for grammar and registry discovery. | |
| std::any | get_parameter (const std::string &name) const override |
| Retrieves a parameter's current value. | |
| T | get_parameter_or_default (const std::string &name, const T &default_value) const |
| Helper to get typed parameter with default value. | |
| void | set_parameter (const std::string &name, std::any value) override |
| Type-safe parameter management with extraction-specific defaults. | |
| virtual | ~UniversalExtractor ()=default |
Public Member Functions inherited from MayaFlux::Yantra::ComputeOperation< InputType, OutputType > | |
| void | add_dependency (std::shared_ptr< ComputeOperation > dep) |
| output_type | apply_operation (const input_type &input) |
| Public synchronous execution interface. | |
| output_type | apply_operation_with_dependencies (const input_type &input) |
| Applies the operation with dependencies resolved. | |
| OutputType | apply_to_data (const InputType &data) |
| Convenience overload that extracts just the data from result. | |
| ComputeOperation () | |
| Constructor with data type validation warnings. | |
| output_type | execute (const input_type &input) |
| OpUnit interface - operations can act as units in dependency graphs. | |
| virtual const std::shared_ptr< Kakshya::SignalSourceContainer > & | get_container_for_regions () const |
| const auto & | get_dependencies () const |
| const ExecutionContext & | get_last_execution_context () const |
| bool | has_gpu_backend () const |
| output_type | operator() (const InputType &data) |
| Convenience overload for direct data processing (backward compatibility) | |
| virtual void | set_container_for_regions (const std::shared_ptr< Kakshya::SignalSourceContainer > &container) |
| void | set_gpu_backend (std::shared_ptr< GpuExecutionContext< InputType, OutputType > > backend) |
| Attach a GPU execution backend. | |
| void | set_last_execution_context (const ExecutionContext &ctx) |
| void | set_post_execution_hook (const OperationHookCallback &hook) |
| void | set_pre_execution_hook (const OperationHookCallback &hook) |
| void | set_reconstruction_callback (const ReconstructionCallback &callback) |
| virtual bool | validate_input (const input_type &) const |
| Validates if the input data meets the operation's requirements. | |
| virtual | ~ComputeOperation ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
Protected Member Functions | |
| Datum< Kakshya::RegionGroup > | extract_implementation (const Datum< Kakshya::RegionGroup > &input) override |
| std::string | get_extractor_name () const override |
| Get extractor name. | |
Protected Member Functions inherited from MayaFlux::Yantra::FeatureExtractor< Kakshya::RegionGroup, Kakshya::RegionGroup > | |
| output_type | extract_implementation (const input_type &input) override |
| Core extraction implementation - delegates to ExtractionHelper. | |
| std::any | get_extraction_parameter (const std::string &name) const override |
| void | set_extraction_parameter (const std::string &name, std::any value) override |
| Handle extractor-specific parameters. | |
Protected Member Functions inherited from MayaFlux::Yantra::UniversalExtractor< InputType, OutputType > | |
| virtual output_type | apply_content_filtering (const output_type &raw_output) |
| Apply content-based filtering (override for custom filtering) | |
| virtual output_type | apply_data_sampling (const output_type &raw_output) |
| Apply data sampling (override for custom sampling) | |
| virtual output_type | apply_scope_filtering (const output_type &raw_output) |
| Apply scope filtering to results. | |
| virtual output_type | filter_to_target_regions (const output_type &raw_output) |
| Filter results to target regions (override for custom filtering) | |
| virtual std::map< std::string, std::any > | get_all_extraction_parameters () const |
| output_type | operation_function (const input_type &input) override |
| Core operation implementation - called by ComputeOperation interface. | |
Protected Member Functions inherited from MayaFlux::Yantra::ComputeOperation< InputType, OutputType > | |
| output_type | apply_hooks (const input_type &input, const ExecutionContext &context) |
| virtual std::future< output_type > | apply_operation_async (const input_type &input) |
| Optional async implementation - default delegates to operation_function. | |
| virtual output_type | apply_operation_chained (const input_type &input, const ExecutionContext &ctx) |
| Optional chain-aware implementation - default delegates to operation_function. | |
| virtual output_type | apply_operation_internal (const input_type &input, const ExecutionContext &context) |
| Internal execution method - ComputeMatrix can access this. | |
| virtual output_type | apply_operation_parallel (const input_type &input, const ExecutionContext &ctx) |
| Optional parallel-aware implementation - default delegates to operation_function. | |
| output_type | convert_result (std::vector< std::vector< double > > &result_data, DataStructureInfo &metadata) |
| Convert processed double data back to OutputType using metadata and optional callback. | |
Segments container audio into fixed hop-size grain windows.
Reads parameters from set_parameter or ExecutionContext:
Definition at line 114 of file GranularWorkflow.hpp.