| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /* pvdefs.h */
- /*
- * Copyright (c) 2000,2022 Richard Dobson and Composers Desktop Project Ltd
- * http://www.rwdobson.com
- * http://www.composersdesktop.com
- *
- This file is part of the CDP System.
-
- The CDP System is free software; you can redistribute it
- and/or modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The CDP System 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 Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the CDP System; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- 02111-1307 USA
- *
- */
- #ifndef __PVDEFS_H_INCLUDED
- #define __PVDEFS_H_INCLUDED
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define VERY_TINY_VAL (1e-20)
- #define ODD(x) ((x)&1)
- #define EVEN(x) (!ODD(x))
- #define CHAN_SRCHRANGE_F (4)
- #ifndef max
- #define max(a, b) (((a) > (b)) ? (a) : (b))
- #endif
- #ifndef min
- #define min(a, b) (((a) < (b)) ? (a) : (b))
- #endif
- /* for future reference: IEEE_DOUBLE not implemented yet for PVOCEX */
- enum pvoc_wordformat { PVOC_IEEE_FLOAT, PVOC_IEEE_DOUBLE};
- typedef enum pvoc_mode { PVPP_NOT_SET,PVPP_OFFLINE,PVPP_STREAMING} pvocmode;
- /* the old CARL pvoc flags */
- typedef enum pvoc_wfac {PVOC_O_W0,PVOC_O_W1,PVOC_O_W2,PVOC_O_W3,PVOC_O_DEFAULT} pvoc_overlapfac;
- typedef enum pvoc_scaletype {PVOC_S_TIME,PVOC_S_PITCH,PVOC_S_NONE} pv_scaletype;
- typedef enum pvoc_frametype { PVOC_AMP_FREQ,PVOC_AMP_PHASE,PVOC_COMPLEX } pv_frametype;
- typedef enum pvoc_windowtype {PVOC_DEFAULT,
- PVOC_HAMMING,
- PVOC_HANN,
- PVOC_KAISER,
- PVOC_RECT,
- PVOC_CUSTOM} pv_wtype;
- #ifdef __cplusplus
- }
- #endif
- #endif
|