Csound Csound-dev Csound-tekno Search About

[Csnd] copying fsig data, csound freezing

Date2009-04-03 11:29
Frompeiman khosravi
Subject[Csnd] copying fsig data, csound freezing
Hello,

I am wondering if this operation is correct?

fsig1 pvsanal ain1, ifftsize, ihop, iwindow, p7
fsig2 pvsanal ain2, ifftsize, ihop, iwindow, p7

fsig7 = fsig1
fsig8 = fsig2

It doen't seem to freeze csound and I have to force quite it (on osx).

The manual pages indicates:

"To perform a straight copy from one fsig to another one of identical
format, the conventional assignment syntax can be used:

fsig1 = fsig2

It is not necessary to use function tables in this case."


I have tried initializing the fsig first using pvsinit. In this case I
get to crashes but the fsig seems to remain empty even after the
copying.

Am I missing something or is this a bug either in the manual or in
csound itself?

Many thanks

Peiman

Date2009-04-03 11:46
FromVictor.Lazzarini@nuim.ie
Subject[Csnd] Re: copying fsig data, csound freezing
AttachmentsNone  None  

Date2009-04-03 11:52
Frompeiman khosravi
Subject[Csnd] Re: Re: copying fsig data, csound freezing
Thanks Victor.

Also I meant to say "It DOES seem to freeze csound..."!

I will try your suggestion with pvsmix.

Best
Peiman

2009/4/3  :
> yes, I noticed assignment wasn't working. A quick fix seems
> to be to use pvsmix
> fsdummy pvsinit 1024
> fsi2  pvsmix  fs1,fsdummy
> I meant to look at that, but forgot. Perhaps someone will
> get there before me.
> Victo
> ----- Original Message -----
> From: peiman khosravi 
> Date: Friday, April 3, 2009 11:30 am
> Subject: [Csnd] copying fsig data, csound freezing
> To: csound@lists.bath.ac.uk
>
>> Hello,
>>
>> I am wondering if this operation is correct?
>>
>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, p7
>> fsig2 pvsanal ain2, ifftsize, ihop, iwindow, p7
>>
>> fsig7 = fsig1
>> fsig8 = fsig2
>>
>> It doen't seem to freeze csound and I have to force quite it (on osx).
>>
>> The manual pages indicates:
>>
>> "To perform a straight copy from one fsig to another one of identical
>> format, the conventional assignment syntax can be used:
>>
>> fsig1 = fsig2
>>
>> It is not necessary to use function tables in this case."
>>
>>
>> I have tried initializing the fsig first using pvsinit. In this
>> case I
>> get to crashes but the fsig seems to remain empty even after the
>> copying.
>>
>> Am I missing something or is this a bug either in the manual or in
>> csound itself?
>>
>> Many thanks
>>
>> Peiman
>>
>>
>> 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-04-03 15:51
FromRichard Dobson
Subject[Csnd] Re: Re: copying fsig data, csound freezing
I am not set up to build Csound at present, much less debug it. The 
assignment op predates pvsinit so was not tested in that combination. 
It works OK when the LHS is a previously fully-created fsig (using 
pvsanal or whatever), which at the time was the only available situation 
in which it was used. As a guess, I would  say the problem is probably a 
mismatch of the internal framecount, so that the frame copy loop in the 
assignment  opcode "fassign" never runs.


Richard Dobson

Victor.Lazzarini@nuim.ie wrote:
> yes, I noticed assignment wasn't working. A quick fix seems
> to be to use pvsmix
> 
> fsdummy pvsinit 1024
> 
> fsi2  pvsmix  fs1,fsdummy
>