/*---------------------------------------------------------------------------*\ FILE........: tcontphase.c AUTHOR......: David Rowe DATE CREATED: 11/9/09 Test program for developing continuous phase track synthesis algorithm. However while developing this it was discovered that synthesis_mixed() worked just as well. \*---------------------------------------------------------------------------*/ /* Copyright (C) 2009 David Rowe All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2, as published by the Free Software Foundation. This program 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 Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define N 80 /* frame size */ #define F 160 /* frames to synthesis */ #define P 10 /* LPC order */ #include #include #include #include #include "sine.h" #include "dump.h" #include "synth.h" #include "phase.h" int frames; float ak[] = { 1.000000, -1.455836, 1.361841, -0.879267, 0.915985, -1.002202, 0.944103, -0.743094, 1.053356, -0.817491, 0.431222 }; /*---------------------------------------------------------------------------*\ switch_present() Searches the command line arguments for a "switch". If the switch is found, returns the command line argument where it ws found, else returns NULL. \*---------------------------------------------------------------------------*/ int switch_present(sw,argc,argv) char sw[]; /* switch in string form */ int argc; /* number of command line arguments */ char *argv[]; /* array of command line arguments in string form */ { int i; /* loop variable */ for(i=1; i