Csound Csound-dev Csound-tekno Search About

[Csnd] clearing an ftable

Date2012-01-10 03:43
FromThomas Hass
Subject[Csnd] clearing an ftable
Hi list,

I'm looking for an efficient way to reset all values in an ftable to 0.  Specifically an ftable created with GEN 7 if that matters.

Thanks!
Thomas

Date2012-01-10 04:51
FromSteven Yi
SubjectRe: [Csnd] clearing an ftable
Hi Thomas,

Have you tried tableicopy or tablecopy, using a preallocated table filled with zeroes that is the same length as the table you want to clear?

http://www.csounds.com/manual/html/tablecopy.html

Steven

On Monday, January 9, 2012, Thomas Hass <thass@berklee.edu> wrote:
> Hi list,
> I'm looking for an efficient way to reset all values in an ftable to 0.  Specifically an ftable created with GEN 7 if that matters.
> Thanks!
> Thomas

Date2012-01-10 05:41
FromThomas Hass
SubjectRe: [Csnd] clearing an ftable
Thanks.  This worked perfectly.

-Thomas

On Mon, Jan 9, 2012 at 11:51 PM, Steven Yi <stevenyi@gmail.com> wrote:
Hi Thomas,

Have you tried tableicopy or tablecopy, using a preallocated table filled with zeroes that is the same length as the table you want to clear?

http://www.csounds.com/manual/html/tablecopy.html

Steven

On Monday, January 9, 2012, Thomas Hass <thass@berklee.edu> wrote:
> Hi list,
> I'm looking for an efficient way to reset all values in an ftable to 0.  Specifically an ftable created with GEN 7 if that matters.
> Thanks!
> Thomas


Date2012-01-10 16:39
FromAndres Cabrera
SubjectRe: [Csnd] clearing an ftable
Hi,

You could also use vmult.

Cheers,
Andres

On Tue, Jan 10, 2012 at 5:41 AM, Thomas Hass  wrote:
> Thanks.  This worked perfectly.
>
> -Thomas
>
>
> On Mon, Jan 9, 2012 at 11:51 PM, Steven Yi  wrote:
>>
>> Hi Thomas,
>>
>> Have you tried tableicopy or tablecopy, using a preallocated table filled
>> with zeroes that is the same length as the table you want to clear?
>>
>> http://www.csounds.com/manual/html/tablecopy.html
>>
>> Steven
>>
>> On Monday, January 9, 2012, Thomas Hass  wrote:
>> > Hi list,
>> > I'm looking for an efficient way to reset all values in an ftable to 0.
>> >  Specifically an ftable created with GEN 7 if that matters.
>> > Thanks!
>> > Thomas
>
>


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"