Csound Csound-dev Csound-tekno Search About

[Csnd] pvsmorph

Date2008-07-17 16:03
Frompeiman
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.


Date2008-07-17 20:10
From"Hector Centeno"
Subject[Csnd] Re: pvsmorph
AttachmentsNone  

Date2008-07-17 20:15
Frompeiman khosravi
Subject[Csnd] Re: Re: pvsmorph
The same thing is happening with pvscross too by the way.
Thanks

Peiman

On 17 Jul 2008, at 20:10, Hector Centeno wrote:

> Hi,
>
> I've been experiencing the same since some time ago but somehow
> thought it was the normal behaviour... but of course, it doesn't make
> sense.
>
> Cheers,
>
> Hector
>
>
> On Thu, Jul 17, 2008 at 11:03 AM, peiman   
> wrote:
>>
>> 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"