FormantGrid FormantGrid_createEmpty (double tmin, double tmax, long numberOfFormants) { FormantGrid me = Thing_new (FormantGrid); cherror FormantGrid_init (me, tmin, tmax, numberOfFormants); cherror end: iferror forget (me); return me; }
FormantGrid FormantGrid_createEmpty (double tmin, double tmax, long numberOfFormants) { try { autoFormantGrid me = Thing_new (FormantGrid); FormantGrid_init (me.peek(), tmin, tmax, numberOfFormants); return me.transfer(); } catch (MelderError) { Melder_throw ("Empty FormantGrid not created."); } }