MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ interval_scan_config()

Kinesis::Discrete::IntervalScanConfig MayaFlux::Yantra::interval_scan_config ( const IntervalScanSettings & settings,
uint32_t length )
inlinenodiscard

The host scan configuration of one column's settings over a stream of the given length.

Definition at line 130 of file IntervalExtractor.hpp.

131{
132 return {
133 .enter = settings.enter_threshold,
134 .leave = std::max(settings.enter_threshold - settings.leave_margin, settings.leave_floor),
135 .gate_threshold = settings.gate_threshold,
136 .hop = settings.samples_per_score,
137 .first_sample = settings.first_sample,
138 .min_run = settings.min_run,
139 .min_gap = settings.min_gap,
140 .padding = settings.padding,
141 .gap_at_limit = settings.gap_at_limit,
142 .max_run = settings.max_run,
143 .use_longest_gap = settings.use_longest_gap,
144 .length = length,
145 .emit_on_close = settings.emit_on_close,
146 };
147}
uint32_t first_sample
Sample position of score 0.
bool emit_on_close
Emit each interval as soon as it closes, with full padding on both sides.
double leave_margin
How far below the enter threshold a score must fall to count as a gap.
uint32_t padding
Samples added on each side of an interval.
bool use_longest_gap
Cut a capped run at its longest gap instead of the last one.
uint32_t min_gap
Shortest gap that ends a run, in samples.
uint32_t samples_per_score
Samples between successive scores.
double gate_threshold
Gate score below which this column is silent.
uint32_t max_run
Longest interval in samples, 0 for no cap.
double enter_threshold
Score at or above which a run starts.
uint32_t gap_at_limit
Gaps longer than this are candidates for cutting a capped run, in samples.
double leave_floor
Lowest leave threshold.
uint32_t min_run
Shortest run kept, in samples.

References MayaFlux::Yantra::IntervalScanSettings::emit_on_close, MayaFlux::Yantra::IntervalScanSettings::enter_threshold, MayaFlux::Yantra::IntervalScanSettings::first_sample, MayaFlux::Yantra::IntervalScanSettings::gap_at_limit, MayaFlux::Yantra::IntervalScanSettings::gate_threshold, MayaFlux::Yantra::IntervalScanSettings::leave_floor, MayaFlux::Yantra::IntervalScanSettings::leave_margin, MayaFlux::Yantra::IntervalScanSettings::max_run, MayaFlux::Yantra::IntervalScanSettings::min_gap, MayaFlux::Yantra::IntervalScanSettings::min_run, MayaFlux::Yantra::IntervalScanSettings::padding, MayaFlux::Yantra::IntervalScanSettings::samples_per_score, and MayaFlux::Yantra::IntervalScanSettings::use_longest_gap.

Referenced by MayaFlux::Yantra::IntervalExtractor< Eigen::MatrixXd, std::vector< std::vector< double > > >::check_settings(), MayaFlux::Yantra::SpeechSegmenter< std::vector< Kakshya::DataVariant >, Kakshya::RegionGroup >::diagnose(), and MayaFlux::Yantra::IntervalExtractor< Eigen::MatrixXd, std::vector< std::vector< double > > >::record_scans().

Here is the caller graph for this function: