Csound Csound-dev Csound-tekno Search About

[Csnd] Re: pvsmorph

Date2008-07-19 21:31
Fromvictor
Subject[Csnd] Re: pvsmorph
I think I've seen this as well. My recollection is that I fixed this in
CVS, but I will check. Thanks for reporting.

Victor
----- Original Message ----- 
From: "peiman" 
To: 
Sent: Thursday, July 17, 2008 4:03 PM
Subject: [Csnd] pvsmorph


>
> Hello,
>
> I am trying to use pvsmorph to spectrally cross-fade between two sounds. 
> But
> using the code bellow I get a strange result when the the morphing index
> (kcross bellow) is on ZERO. The result should be identical to source one 
> but
> it is not, it's source one plus many fft-y artifacts. However when the 
> index
> is on ONE, source 2 is synthesized perfectly. I've tried swapping my 
> sources
> around and the same result, so it has something to do with the opcode I
> think. Any solution is much appreciated.
>
> Thanks Victor in advance!!!
>
> 
>
> 
> sr=96000
> ksmps=1
> nchnls=2
>
>
>
>
>
>
>
>
> instr 1 ;untitled
> kcross = 0
>
> asig1 diskin "/Users/peimankhosravi/Desktop/Samples/flutenote2.l.aif", 1
> ;asig2 diskin
> "/Users/peimankhosravi/Desktop/Samples/multimono/CounterTenorD#4.L.aif", 1
>
> ;asig1 oscil 10000, 440, 1
> asig2 oscil 10000, 240, 1
>
> fsigs1 pvsanal asig1, 4096, 4096/4, 4096*2, 1
> fsigs2 pvsanal asig2, 4096, 4096/4, 4096*2, 1
>
> fsig pvsmorph fsigs1, fsigs2, kcross, kcross
>
> ares pvsynth fsig
>
> outs ares, ares
> endin
>
>
> 
>
> 
>
>
>
>
>
> ; Table #1, a sine wave.
> f 1 0 16384 10 1
>
>
>
> i1 0.0 7.359375 3 4 5
>
> e
>
> 
>
> 
> -- 
> View this message in context: 
> http://www.nabble.com/pvsmorph-tp18510542p18510542.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2008-07-20 02:22
Frompeiman khosravi
Subject[Csnd] Re: Re: pvsmorph
Thanks Victor, as always.

Best
Peiman

On 19 Jul 2008, at 21:31, victor wrote:

> I think I've seen this as well. My recollection is that I fixed  
> this in
> CVS, but I will check. Thanks for reporting.
>
> Victor
> ----- Original Message ----- From: "peiman" 
> To: 
> Sent: Thursday, July 17, 2008 4:03 PM
> Subject: [Csnd] pvsmorph
>
>
>>
>> Hello,
>>
>> I am trying to use pvsmorph to spectrally cross-fade between two  
>> sounds. But
>> using the code bellow I get a strange result when the the morphing  
>> index
>> (kcross bellow) is on ZERO. The result should be identical to  
>> source one but
>> it is not, it's source one plus many fft-y artifacts. However when  
>> the index
>> is on ONE, source 2 is synthesized perfectly. I've tried swapping  
>> my sources
>> around and the same result, so it has something to do with the  
>> opcode I
>> think. Any solution is much appreciated.
>>
>> Thanks Victor in advance!!!
>>
>> 
>>
>> 
>> sr=96000
>> ksmps=1
>> nchnls=2
>>
>>
>>
>>
>>
>>
>>
>>
>> instr 1 ;untitled
>> kcross = 0
>>
>> asig1 diskin "/Users/peimankhosravi/Desktop/Samples/ 
>> flutenote2.l.aif", 1
>> ;asig2 diskin
>> "/Users/peimankhosravi/Desktop/Samples/multimono/ 
>> CounterTenorD#4.L.aif", 1
>>
>> ;asig1 oscil 10000, 440, 1
>> asig2 oscil 10000, 240, 1
>>
>> fsigs1 pvsanal asig1, 4096, 4096/4, 4096*2, 1
>> fsigs2 pvsanal asig2, 4096, 4096/4, 4096*2, 1
>>
>> fsig pvsmorph fsigs1, fsigs2, kcross, kcross
>>
>> ares pvsynth fsig
>>
>> outs ares, ares
>> endin
>>
>>
>> 
>>
>> 
>>
>>
>>
>>
>>
>> ; Table #1, a sine wave.
>> f 1 0 16384 10 1
>>
>>
>>
>> i1 0.0 7.359375 3 4 5
>>
>> e
>>
>> 
>>
>> 
>> -- 
>> View this message in context: http://www.nabble.com/pvsmorph- 
>> tp18510542p18510542.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"