Sound Sound_Formant_filter_noscale (Sound me, Formant formant) {
	try {
		autoFormantGrid grid = Formant_downto_FormantGrid (formant);
		autoSound thee = Sound_FormantGrid_filter_noscale (me, grid.peek());
		return thee.transfer();
	} catch (MelderError) {
		Melder_throw (me, ": not filtered with ", formant, ".");
	}
}
Exemple #2
0
Sound Sound_Formant_filter_noscale (Sound me, Formant formant) {
	Sound thee = NULL;
	try {
		automatic (FormantGrid) grid = Formant_downto_FormantGrid (formant);
		thee = Sound_FormantGrid_filter_noscale (me, grid);
	} catch (...) {
		forget (thee);
		throw;
	}
	return thee;
}
Exemple #3
0
Sound Sound_Formant_filter_noscale (Sound me, Formant formant) {
	Sound thee = NULL;
	FormantGrid grid = NULL;
//start:
	grid = Formant_downto_FormantGrid (formant); cherror
	thee = Sound_FormantGrid_filter_noscale (me, grid); cherror
end:
	forget (grid);
	iferror forget (thee);
	return thee;
}