Csound Csound-dev Csound-tekno Search About

[Csnd] pvshift

Date2011-10-23 15:56
Fromk_o_m_p
Subject[Csnd] pvshift
I was testing the example from the manual from PVSHIFT and got sound just from sec 15. The first 5 score events don't produce any sound.
Could someone check to see if it is only me or if you are getting the same results?
I'm on OSX 10.6.8 csound 5.13 (floats)
Thanks.
Luis

<CsoundSynthesizer>

<CsOptions>

-odac

</CsOptions>

<CsInstruments>

sr = 44100

ksmps = 16

nchnls = 1

0dbfs = 1

;; example written by joachim heintz 2009

instr 1

ishift = p4; shift amount in Hz

ilowest = p5; lowest frequency to be shifted

ikeepform = p6; 0=no formant keeping, 1=keep by amps, 2=keep by spectral envelope

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 file

fshift pvshift fftin, ishift, ilowest, ikeepform; shift frequencies

aout pvsynth fshift; resynthesize

out aout

endin

</CsInstruments>

<CsScore>

i 1 0 2.757 0 0 0; no shift at all

i 1 3 2.757 100 0 0; shift all frequencies by 100 Hz

i 1 6 2.757 200 0 0; by 200 Hz

i 1 9 2.757 200 0 1; keep formants by method 1

i 1 12 2.757 200 0 2; by method 2

i 1 15 2.757 200 1000 0; shift by 200 Hz but just above 1000 Hz

i 1 18 2.757 1000 500 0; shift by 1000 Hz above 500 Hz

i 1 21 2.757 1000 300 0; above 300 Hz

e

</CsScore>

</CsoundSynthesizer>



--
signatur http://luisantunespena.eu


Date2011-10-23 16:07
Frompeiman khosravi
SubjectRe: [Csnd] pvshift
Hi Luis,

This works fine over here on csound 5.14.

There was a bug in 5.13 that Victor has now fixed. On 5.13 try adding
the igain variable to pvshift and set it to 1 (see below).

Best,

P





-odac





sr = 44100

ksmps = 16

nchnls = 1

0dbfs = 1

;; example written by joachim heintz 2009

instr 1

ishift = p4; shift amount in Hz

ilowest = p5; lowest frequency to be shifted

ikeepform = p6; 0=no formant keeping, 1=keep by amps, 2=keep by
spectral envelope

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 file

fshift pvshift fftin, ishift, ilowest, ikeepform, 1; shift frequencies

aout pvsynth fshift; resynthesize

out aout

endin





i 1 0 2.757 0 0 0; no shift at all

i 1 3 2.757 100 0 0; shift all frequencies by 100 Hz

i 1 6 2.757 200 0 0; by 200 Hz

i 1 9 2.757 200 0 1; keep formants by method 1

i 1 12 2.757 200 0 2; by method 2

i 1 15 2.757 200 1000 0; shift by 200 Hz but just above 1000 Hz

i 1 18 2.757 1000 500 0; shift by 1000 Hz above 500 Hz

i 1 21 2.757 1000 300 0; above 300 Hz

e





On 23 October 2011 15:56, k_o_m_p  wrote:
> I was testing the example from the manual from PVSHIFT and got sound just
> from sec 15. The first 5 score events don't produce any sound.
> Could someone check to see if it is only me or if you are getting the same
> results?
> I'm on OSX 10.6.8 csound 5.13 (floats)
> Thanks.
> Luis
>
> 
>
> 
>
> -odac
>
> 
>
> 
>
> sr = 44100
>
> ksmps = 16
>
> nchnls = 1
>
> 0dbfs = 1
>
> ;; example written by joachim heintz 2009
>
> instr 1
>
> ishift = p4; shift amount in Hz
>
> ilowest = p5; lowest frequency to be shifted
>
> ikeepform = p6; 0=no formant keeping, 1=keep by amps, 2=keep by spectral
> envelope
>
> 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
> file
>
> fshift pvshift fftin, ishift, ilowest, ikeepform; shift frequencies
>
> aout pvsynth fshift; resynthesize
>
> out aout
>
> endin
>
> 
>
> 
>
> i 1 0 2.757 0 0 0; no shift at all
>
> i 1 3 2.757 100 0 0; shift all frequencies by 100 Hz
>
> i 1 6 2.757 200 0 0; by 200 Hz
>
> i 1 9 2.757 200 0 1; keep formants by method 1
>
> i 1 12 2.757 200 0 2; by method 2
>
> i 1 15 2.757 200 1000 0; shift by 200 Hz but just above 1000 Hz
>
> i 1 18 2.757 1000 500 0; shift by 1000 Hz above 500 Hz
>
> i 1 21 2.757 1000 300 0; above 300 Hz
>
> e
>
> 
>
> 
>
> --
> http://luisantunespena.eu
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-10-23 17:52
FromVictor Lazzarini
SubjectRe: [Csnd] pvshift
yes, this bug has been widely reported... to put me to shame ;)  
Thankfully there is a simple fix.
On 23 Oct 2011, at 16:07, peiman khosravi wrote:

> Hi Luis,
>
> This works fine over here on csound 5.14.
>
> There was a bug in 5.13 that Victor has now fixed. On 5.13 try adding
> the igain variable to pvshift and set it to 1 (see below).
>
> Best,
>
> P
>
> 
>
> 
>
> -odac
>
> 
>
> 
>
> sr = 44100
>
> ksmps = 16
>
> nchnls = 1
>
> 0dbfs = 1
>
> ;; example written by joachim heintz 2009
>
> instr 1
>
> ishift = p4; shift amount in Hz
>
> ilowest = p5; lowest frequency to be shifted
>
> ikeepform = p6; 0=no formant keeping, 1=keep by amps, 2=keep by
> spectral envelope
>
> 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 file
>
> fshift pvshift fftin, ishift, ilowest, ikeepform, 1; shift frequencies
>
> aout pvsynth fshift; resynthesize
>
> out aout
>
> endin
>
> 
>
> 
>
> i 1 0 2.757 0 0 0; no shift at all
>
> i 1 3 2.757 100 0 0; shift all frequencies by 100 Hz
>
> i 1 6 2.757 200 0 0; by 200 Hz
>
> i 1 9 2.757 200 0 1; keep formants by method 1
>
> i 1 12 2.757 200 0 2; by method 2
>
> i 1 15 2.757 200 1000 0; shift by 200 Hz but just above 1000 Hz
>
> i 1 18 2.757 1000 500 0; shift by 1000 Hz above 500 Hz
>
> i 1 21 2.757 1000 300 0; above 300 Hz
>
> e
>
> 
>
> 
>
> On 23 October 2011 15:56, k_o_m_p  wrote:
>> I was testing the example from the manual from PVSHIFT and got  
>> sound just
>> from sec 15. The first 5 score events don't produce any sound.
>> Could someone check to see if it is only me or if you are getting  
>> the same
>> results?
>> I'm on OSX 10.6.8 csound 5.13 (floats)
>> Thanks.
>> Luis
>>
>> 
>>
>> 
>>
>> -odac
>>
>> 
>>
>> 
>>
>> sr = 44100
>>
>> ksmps = 16
>>
>> nchnls = 1
>>
>> 0dbfs = 1
>>
>> ;; example written by joachim heintz 2009
>>
>> instr 1
>>
>> ishift = p4; shift amount in Hz
>>
>> ilowest = p5; lowest frequency to be shifted
>>
>> ikeepform = p6; 0=no formant keeping, 1=keep by amps, 2=keep by  
>> spectral
>> envelope
>>
>> 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
>> file
>>
>> fshift pvshift fftin, ishift, ilowest, ikeepform; shift frequencies
>>
>> aout pvsynth fshift; resynthesize
>>
>> out aout
>>
>> endin
>>
>> 
>>
>> 
>>
>> i 1 0 2.757 0 0 0; no shift at all
>>
>> i 1 3 2.757 100 0 0; shift all frequencies by 100 Hz
>>
>> i 1 6 2.757 200 0 0; by 200 Hz
>>
>> i 1 9 2.757 200 0 1; keep formants by method 1
>>
>> i 1 12 2.757 200 0 2; by method 2
>>
>> i 1 15 2.757 200 1000 0; shift by 200 Hz but just above 1000 Hz
>>
>> i 1 18 2.757 1000 500 0; shift by 1000 Hz above 500 Hz
>>
>> i 1 21 2.757 1000 300 0; above 300 Hz
>>
>> e
>>
>> 
>>
>> 
>>
>> --
>> http://luisantunespena.eu
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-10-23 19:31
Fromk_o_m_p
SubjectRe: [Csnd] pvshift
Thanks. I'll update my csound version.
Best,
Luis

Em 23.10.11 18:52, Victor Lazzarini escreveu:
yes, this bug has been widely reported... to put me to shame ;) Thankfully there is a simple fix.
On 23 Oct 2011, at 16:07, peiman khosravi wrote:
Hi Luis,

This works fine over here on csound 5.14.

There was a bug in 5.13 that Victor has now fixed. On 5.13 try adding
the igain variable to pvshift and set it to 1 (see below).

Best,

P

<CsoundSynthesizer>

<CsOptions>

-odac

</CsOptions>

<CsInstruments>

sr = 44100

ksmps = 16

nchnls = 1

0dbfs = 1

;; example written by joachim heintz 2009

instr 1

ishift = p4; shift amount in Hz

ilowest = p5; lowest frequency to be shifted

ikeepform = p6; 0=no formant keeping, 1=keep by amps, 2=keep by
spectral envelope

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 file

fshift pvshift fftin, ishift, ilowest, ikeepform, 1; shift frequencies

aout pvsynth fshift; resynthesize

out aout

endin

</CsInstruments>

<CsScore>

i 1 0 2.757 0 0 0; no shift at all

i 1 3 2.757 100 0 0; shift all frequencies by 100 Hz

i 1 6 2.757 200 0 0; by 200 Hz

i 1 9 2.757 200 0 1; keep formants by method 1

i 1 12 2.757 200 0 2; by method 2

i 1 15 2.757 200 1000 0; shift by 200 Hz but just above 1000 Hz

i 1 18 2.757 1000 500 0; shift by 1000 Hz above 500 Hz

i 1 21 2.757 1000 300 0; above 300 Hz

e

</CsScore>

</CsoundSynthesizer>

On 23 October 2011 15:56, k_o_m_p <k_o_m_p@yahoo.de> wrote:
I was testing the example from the manual from PVSHIFT and got sound just
from sec 15. The first 5 score events don't produce any sound.
Could someone check to see if it is only me or if you are getting the same
results?
I'm on OSX 10.6.8 csound 5.13 (floats)
Thanks.
Luis

<CsoundSynthesizer>

<CsOptions>

-odac

</CsOptions>

<CsInstruments>

sr = 44100

ksmps = 16

nchnls = 1

0dbfs = 1

;; example written by joachim heintz 2009

instr 1

ishift = p4; shift amount in Hz

ilowest = p5; lowest frequency to be shifted

ikeepform = p6; 0=no formant keeping, 1=keep by amps, 2=keep by spectral
envelope

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
file

fshift pvshift fftin, ishift, ilowest, ikeepform; shift frequencies

aout pvsynth fshift; resynthesize

out aout

endin

</CsInstruments>

<CsScore>

i 1 0 2.757 0 0 0; no shift at all

i 1 3 2.757 100 0 0; shift all frequencies by 100 Hz

i 1 6 2.757 200 0 0; by 200 Hz

i 1 9 2.757 200 0 1; keep formants by method 1

i 1 12 2.757 200 0 2; by method 2

i 1 15 2.757 200 1000 0; shift by 200 Hz but just above 1000 Hz

i 1 18 2.757 1000 500 0; shift by 1000 Hz above 500 Hz

i 1 21 2.757 1000 300 0; above 300 Hz

e

</CsScore>

</CsoundSynthesizer>

--
http://luisantunespena.eu




Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




--
signatur luis antunes pena
Severinswall 54
D-50678 Köln

http://luisantunespena.eu

+49 (0)221 29020757
+49 (0)176 968 09 867 (mobile)