HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CL_PitchShift.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* NAME: CHOP_ParaEq.h ( Channel Operator Library, C++)
7
*
8
* COMMENTS:
9
*
10
* Shifts the pitch of an audio waveform
11
*/
12
13
#ifndef __CL_PitchShift__
14
#define __CL_PitchShift__
15
16
#include "
CL_API.h
"
17
#include "
CL_SlidingWindow.h
"
18
#include <
SYS/SYS_Types.h
>
19
20
class
CL_API
CL_PitchShift
:
public
CL_SlidingWindow
21
{
22
public
:
23
24
CL_PitchShift
(
int
chunk,
int
oversample);
25
~
CL_PitchShift
()
override
;
26
27
void
setPitchShift(
fpreal
shift);
28
void
setOversample(
int
oversample);
29
void
setChunkSize(
int
chunk);
30
31
void
reset
(
fpreal
val
=0.0)
override
;
32
33
private
:
34
35
void
makeBlendCurve();
36
void
pitchShiftUp();
37
void
pitchShiftDown();
38
39
void
doWindowOp(
int
nsamples,
fpreal
*dest)
override
;
40
41
int
myOversample;
42
fpreal
myPitchShift;
43
fpreal
*mySingleSample;
44
fpreal
*myBlendCurve;
45
fpreal
*myData;
46
};
47
48
#endif
CL_API.h
CL_SlidingWindow.h
CL_API
#define CL_API
Definition:
CL_API.h:10
SYS_Types.h
CL_SlidingWindow::reset
virtual void reset(fpreal val=0.0)
CL_SlidingWindow
Definition:
CL_SlidingWindow.h:25
CL_PitchShift
Definition:
CL_PitchShift.h:20
fpreal
fpreal64 fpreal
Definition:
SYS_Types.h:277
val
GLuint GLfloat * val
Definition:
glcorearb.h:1608
CL
CL_PitchShift.h
Generated on Thu Nov 21 2024 02:43:28 for HDK by
1.8.6