File: pitchscale.h

package info (click to toggle)
swh-lv2 1.0.15%2B20111107.gitec6b85e-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 984 kB
  • sloc: xml: 11,701; ansic: 2,120; makefile: 103; sh: 19
file content (33 lines) | stat: -rw-r--r-- 662 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef PITCHSCALE_H
#define PITCHSCALE_H

#include <fftw3.h>

typedef fftwf_plan fft_plan;
typedef float fftw_real;

typedef struct {
	float *gInFIFO;
	float *gOutFIFO;
	float *gLastPhase;
	float *gSumPhase;
	float *gOutputAccum;
	float *gAnaFreq;
	float *gAnaMagn;
	float *gSynFreq;
	float *gSynMagn;
	float *gWindow;
	long   gRover;
} sbuffers;

#define MAX_FRAME_LENGTH 4096

#define true  1
#define false 0

void pitch_scale(sbuffers *buffers, const double pitchScale, const long
		fftFrameLength, const long osamp, const long numSampsToProcess,
		const double sampleRate, const float *indata, float *outdata,
		const int adding, const float gain);

#endif