comparison base/EventSeries.h @ 1621:cf5196881e3e single-point

Merge
author Chris Cannam
date Fri, 08 Mar 2019 13:37:08 +0000
parents f594fd249473
children dcd510bd89db
comparison
equal deleted inserted replaced
1620:2f9deb8d3295 1621:cf5196881e3e
195 * 195 *
196 * - An event with duration is within the span if its start frame 196 * - An event with duration is within the span if its start frame
197 * is less than f + d and its start frame plus its duration is 197 * is less than f + d and its start frame plus its duration is
198 * greater than f. 198 * greater than f.
199 * 199 *
200 * Note that getEventsSpanning(f, 0) is not equivalent to 200 * Note: Passing a duration of zero is seldom useful here; you
201 * getEventsCovering(f). The latter includes durationless events 201 * probably want getEventsCovering instead. getEventsSpanning(f,
202 * at f and events starting at f, both of which are excluded from 202 * 0) is not equivalent to getEventsCovering(f). The latter
203 * the former. 203 * includes durationless events at f and events starting at f,
204 * both of which are excluded from the former.
204 */ 205 */
205 EventVector getEventsSpanning(sv_frame_t frame, 206 EventVector getEventsSpanning(sv_frame_t frame,
206 sv_frame_t duration) const { 207 sv_frame_t duration) const {
207 EventVector span; 208 EventVector span;
208 209