Csound Csound-dev Csound-tekno Search About

[Csnd] Pitch-shift

Date2009-06-30 17:11
FromCharles Gran
Subject[Csnd] Pitch-shift
I would like to apply pitch shifting to a real-time audio signal
(-iadc).  I have been able to use harmon and am wondering if there are
other options for real-time performance.

Charles

Date2009-06-30 19:02
FromVictor.Lazzarini@nuim.ie
Subject[Csnd] Re: Pitch-shift
AttachmentsNone  None  

Date2009-07-02 15:07
Fromjoachim heintz
Subject[Csnd] Re: Re: Pitch-shift
... and if you need a simple example:



-odac



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


instr 1
ifftsize	=		1024
ioverlap	=		ifftsize / 4
iwinsize	=		ifftsize
iwinshape	=		1; von-Hann window
Sfile		=		"fox.wav"
ain		soundin	Sfile
fftin		pvsanal	ain, ifftsize, ioverlap, iwinsize, iwinshape; fft- 
analysis of the audio-signal
fftscale	pvscale	fftin, p4, p5, p6; scale
aout		pvsynth	fftscale; resynthesis
		out		aout
endin



i 1 0 3 1 0 1; original sound
i 1 3 3 1.5 0 2; fifth higher without ...
i 1 6 3 1.5 1 2; ... and with different ...
i 1 9 3 1.5 2 5; ... kinds of formant preservation
e





Best -

	joachim

Am 30.06.2009 um 20:02 schrieb Victor.Lazzarini@nuim.ie:

> Try pvscale.
>
> ----- Original Message -----
> From: Charles Gran 
> Date: Tuesday, June 30, 2009 5:11 pm
> Subject: [Csnd] Pitch-shift
> To: csound@lists.bath.ac.uk
>
> > I would like to apply pitch shifting to a real-time audio signal
> > (-iadc).  I have been able to use harmon and am wondering
> > if there are
> > other options for real-time performance.
> >
> > Charles
> >
> >
> > Send bugs reports to this list.
> > To unsubscribe, send email sympa@lists.bath.ac.uk with body
> > "unsubscribe csound"
>
> Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
> National University of Ireland, Maynooth


Date2009-07-02 20:35
FromCharles Gran
Subject[Csnd] Re: Re: Re: Pitch-shift
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



-odac4 -iadc4 -b256 -B1024 -M9



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



i1 0 3600
e