View Single Post
Old 07-25-2010, 09:11 PM   #1
junioreq
Human being with feelings
 
junioreq's Avatar
 
Join Date: Aug 2008
Location: Buffalo NY
Posts: 1,091
Default Using pitchshifter

Just wondering what the following are?
Code:
 void set_nch(int nch) = prob num chans...
 void set_formant_shift(double shift)
int ws_ms, int os_ms
Is that number of channels and not sure what formant shift is..

processing function:
Code:
  void PitchShift(WDL_SIMPLEPITCHSHIFT_SAMPLETYPE *inputs, WDL_SIMPLEPITCHSHIFT_SAMPLETYPE *outputs, int nch, int length, double pitch, double srate, int ws_ms, int os_ms);
I tried
Code:
pitchShift.set_srate(SR);
pitchShift.set_nch(2);
pitchShift.set_shift(2.0);
pitchShift.set_tempo(120.0);
pitchShift.set_formant_shift(2.0);
pitchShift.PitchShift(*in1,*out1,2,2,2.0,SR,23,2);
but got the error, could not convert parameter 1 from double to double... that being *in11


If I remove the pointer from in1 I get: IPlugExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall WDL_SimplePitchShifter::PitchShift(double *,double *,int,int,double,double,int,int)" (?PitchShift@WDL_SimplePitchShifter@@QAEXPAN0HHNNH H@Z) referenced in function "public: virtual void __thiscall PlugExample::ProcessDoubleReplacing(double * *,double * *,int)" (?ProcessDoubleReplacing@PlugExample@@UAEXPAPAN0H@ Z)


!Rob.

Last edited by junioreq; 07-25-2010 at 09:31 PM.
junioreq is offline   Reply With Quote