43 std::shared_ptr<DynamicSoundStream>
stream;
53 std::shared_ptr<const Kinesis::TimeMap>
time_map;
55 std::shared_ptr<const Kinesis::TimeMap>
repeat;
63 std::shared_ptr<DynamicSoundStream>
stream,
67 ?
stream->get_num_frames() - 1
70 ?
stream->get_num_channels() - 1
87 std::shared_ptr<DynamicSoundStream>
stream,
93 ?
stream->get_num_channels() - 1
112 std::shared_ptr<DynamicSoundStream>
stream,
157 time_map = std::make_shared<const Kinesis::TimeMap>(std::move(map));
169 repeat = std::make_shared<const Kinesis::TimeMap>(std::move(
length));
static Region audio_span(uint64_t start_frame, uint64_t end_frame, uint32_t start_channel, uint32_t end_channel, const std::string &label="")
Create a Region representing a span in audio (frames and channels).
std::vector< uint64_t > end_coordinates
Ending frame index (inclusive)
std::vector< uint64_t > start_coordinates
Starting frame index (inclusive)
Represents a point or span in N-dimensional space.
uint32_t start_channel() const
StreamSlice & with_source_channel(uint32_t channel)
std::shared_ptr< const Kinesis::TimeMap > time_map
uint64_t start_frame() const
static StreamSlice from_region(std::shared_ptr< DynamicSoundStream > stream, uint64_t start_frame, uint64_t end_frame, uint32_t start_channel, uint32_t end_channel, uint8_t index=0)
Construct a slice spanning a frame and channel sub-region.
std::shared_ptr< DynamicSoundStream > stream
static StreamSlice from_frame_range(std::shared_ptr< DynamicSoundStream > stream, uint64_t start_frame, uint64_t end_frame, uint8_t index=0)
Construct a slice spanning a frame sub-region across all channels.
StreamSlice & with_looping(bool l)
StreamSlice & with_scale(double s)
StreamSlice & with_speed(double s)
std::shared_ptr< const Kinesis::TimeMap > repeat
StreamSlice & with_repeat(Kinesis::TimeMap length)
uint64_t end_frame() const
StreamSlice & with_time_map(Kinesis::TimeMap map)
uint32_t end_channel() const
std::optional< uint32_t > source_channel
static StreamSlice from_stream(std::shared_ptr< DynamicSoundStream > stream, uint8_t index=0)
Construct a slice spanning the full stream across all channels.
StreamSlice & with_loop_count(size_t n)
A bounded region of a DynamicSoundStream with associated playback parameters.
Typed, composable, stateless callable from domain D to range R.