| Hi Victor,
Thanks very much, that explains it.
Best,
Peiman
On 07/04/2011 08:31, Victor Lazzarini wrote:
> Hi Peiman,
>
> I think this is because pvsinit does not advance the PVS frame count,
> so for pvsynth, there is never a new input frame. I guess
> what you want is a pvszero... I have to gather all these utility pvs
> opcodes that would be handy to have and write them.
>
> Regards
>
> Victor
>
>
>
>
> On 7 Apr 2011, at 02:05, peiman khosravi wrote:
>
>> Hello,
>>
>> I'm trying to work out why instrument one and two in this CSD give
>> different results. One uses pvsinit and the other pvsmix to fake the
>> same task.
>>
>> But instrument one is silent. Am i missing something?
>>
>> Thanks in advance
>>
>> Peiman
>>
>>
>>
>>
>>
>> -odac -d
>>
>>
>>
>>
>> sr = 96000
>> ksmps = 10
>> nchnls = 1
>> 0dbfs = 1
>>
>> instr 1
>> ifreqin ftgen 0,0,1025,-2,0
>> iampin ftgen 0,0,1025,-2,0
>>
>> ar oscil .1, 440, 1
>>
>> fsig1 pvsanal ar, 2048, 512, 2048, 1
>>
>> fsig2 pvsinit 2048, 512, 2048, 1
>>
>> kflag0 pvsftw fsig1, iampin, ifreqin
>> if (kflag0 > 0) then ; only proc when frame is ready
>>
>> pvsftr fsig2, iampin, ifreqin
>>
>> endif
>>
>> arout pvsynth fsig2
>>
>> out arout
>>
>>
>> endin
>>
>>
>> instr 2
>> ifreqin ftgen 0,0,1025,-2,0
>> iampin ftgen 0,0,1025,-2,0
>>
>> ar oscil .1, 440, 1
>>
>> fsig1 pvsanal ar, 2048, 512, 2048, 1
>>
>> fsig2 pvsmix fsig1, fsig1
>>
>> kflag0 pvsftw fsig1, iampin, ifreqin
>> if (kflag0 > 0) then ; only proc when frame is ready
>>
>> pvsftr fsig2, iampin, ifreqin
>>
>> endif
>>
>> arout pvsynth fsig2
>>
>> out arout
>>
>>
>> endin
>>
>>
>>
>>
>>
>>
>> f1 0 4096 10 1
>>
>> i1 0 2
>> i2 3 2
>>
>>
>>
>>
>>
>>
>>
>> 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"
>
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"
|