xue@11
|
1 /*
|
xue@11
|
2 Harmonic sinusoidal modelling and tools
|
xue@11
|
3
|
xue@11
|
4 C++ code package for harmonic sinusoidal modelling and relevant signal processing.
|
xue@11
|
5 Centre for Digital Music, Queen Mary, University of London.
|
xue@11
|
6 This file copyright 2011 Wen Xue.
|
xue@11
|
7
|
xue@11
|
8 This program is free software; you can redistribute it and/or
|
xue@11
|
9 modify it under the terms of the GNU General Public License as
|
xue@11
|
10 published by the Free Software Foundation; either version 2 of the
|
xue@11
|
11 License, or (at your option) any later version.
|
xue@11
|
12 */
|
xue@1
|
13 #ifndef hseditH
|
xue@1
|
14 #define hseditH
|
xue@1
|
15
|
xue@1
|
16
|
Chris@5
|
17 /**
|
Chris@5
|
18 \file hsedit.h - harmonic sinusoid audio editing routines.
|
xue@1
|
19 */
|
xue@1
|
20
|
xue@1
|
21 #include "hs.h"
|
xue@1
|
22 #include "hssf.h"
|
xue@1
|
23
|
xue@1
|
24 //--tool procedures----------------------------------------------------------
|
xue@1
|
25 void DeFM(double* a2, double* f2, double* a1, double* f1, double* arec, int npfr, int* peakfr);
|
xue@1
|
26 void DFMSeg(double* arec, int& npfr, int* peakfr, int M, int Fr, atom** partials);
|
xue@1
|
27 void ReFM(int M, int Fr, atom** partials, atom** partials2, double amount=1, double rate=1, TSF* SF=0);
|
xue@1
|
28
|
xue@1
|
29 //--HS editing sample routines-----------------------------------------------
|
xue@1
|
30 void HSAM(THS* HS, THS* SrcHS, double dep, double fre, double ph);
|
xue@1
|
31 void HSFM(THS* HS, THS* SrcHS, double a, double freq, double ph);
|
xue@1
|
32 void HSFM_SF(THS* HS, THS* SrcHS, double a, double freq, double ph, TSF* SF);
|
xue@1
|
33 void HSPitchShift(THS* HS, THS* SrcHS, double ps12);
|
xue@1
|
34
|
xue@1
|
35 #endif
|