#ifndef _praat_TimeVector_h_
#define _praat_TimeVector_h_
/* praat_TimeVector.h
 *
 * Copyright (C) 2016,2017,2020,2023 Paul Boersma
 *
 * This code is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This code is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this work. If not, see <http://www.gnu.org/licenses/>.
 */

/*
	Interface functions for time-based subclasses of Vector.
*/

#include "Vector.h"
#include "praat_TimeFunction.h"

/*
	Prompting for interpolated values at a time or within a time range.
*/

#define praat_TimeVector_INTERPOLATED_VALUE(time,valueInterpolationType) \
	REAL (time, U"Time (s)", U"0.5") \
	CHOICE_ENUM (kVector_valueInterpolation, valueInterpolationType, \
		U"Interpolation", kVector_valueInterpolation::CUBIC)

#define praat_TimeVector_INTERPOLATED_EXTREMUM(fromTime,toTime,peakInterpolationType) \
	praat_TimeFunction_RANGE (fromTime, toTime) \
	CHOICE_ENUM (kVector_peakInterpolation, peakInterpolationType, \
		U"Interpolation", kVector_peakInterpolation::PARABOLIC)

/* End of file praat_TimeVector.h */
#endif
