« Return to Thread: Pitch-shift

Re: Re: Re: Pitch-shift

by Charles Gran :: Rate this Message:

Reply to Author | View in Thread

Thanks Joachim, It works beautifully.

For other beginners, I made this work in real-time.

I remember that, somewhere out there, is an example in which you use a
keyboard to set the transposition of the audio signal, which is pretty
cool too.

Charles

<CsoundSynthesizer>
<CsOptions>
-odac4 -iadc4 -b256 -B1024 -M9
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 16
nchnls = 1
0dbfs = 1

initc7 8,13,1

instr 1
ifftsize  =  1024
ioverlap  =  ifftsize / 4
iwinsize  =  ifftsize
iwinshape =  1                                                    ;
von-Hann window

kscal ctrl7 8, 13, .5, 2
ikeepform = 0
igain     = 1

ain in
  fftin     pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape ;
fft-analysis of the audio-signal
  fftscale  pvscale fftin, kscal, ikeepform, igain               ; scale
  aout      pvsynth fftscale                                     ; resynthesis
out  aout+ain
endin

</CsInstruments>
<CsScore>
i1 0 3600
e
</CsScore>
</CsoundSynthesizer>


Send bugs reports to this list.
To unsubscribe, send email sympa@... with body "unsubscribe csound"

 « Return to Thread: Pitch-shift