Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: refreshed display for tablew?

Date2007-12-30 23:46
Fromvictor
Subject[Csnd] Re: Re: refreshed display for tablew?
Do you mean something like this?

instr 1
kndx init 0
kmax init 0
isize = ftlen(1)
k1 table kndx, 1
kndx = kndx + 1
if kndx == isize then
gkmax = kmax
turnoff
endif
kmax = k1 > kmax ? k1 : kmax
endin

----- Original Message ----- 
From: "joachim heintz" 
To: 
Sent: Sunday, December 30, 2007 10:19 PM
Subject: [Csnd] Re: refreshed display for tablew?


> It's a bit funny to answer onself, but meanwhile I found a solution  for 
> my wish - not actually refresh the display, but to write a new  table with 
> the new values. Perhaps it's useful to put it here:
>
> gitab ftgen 0, 0, 2, 2, 0; original table
>
> instr 1
>
> tableiw 1, 0, gitab; changing a value
> gineu ftgen 0, 0, 2, -24, gitab, 0, 1; rewriting the table for new 
> display
>
> endin
>
> The new problem: How can I get the minimum and the maximum value of  the 
> original table?
>
> joachim
>
>
>
> Am 27.11.2007 um 23:52 schrieb joachim heintz:
>
>> When I change the content of a table with the tablew opcodes, the 
>> display remains at the first stage (before the table was changed).  Is 
>> there any way to "refresh" the display? For example in this  simple case 
>> ...
>>
>> gitab ftgen 0, 0, 2, 2, 0
>>
>> instr 1
>>
>> tableiw 1, 0, gitab
>> isag table 0, gitab
>> print isag
>>
>> endin
>>
>> ... the display for gitab shows just zeros, though index=0 is now 1.
>> Thanks for help (if there is any) -
>>
>> joachim
>>
>>
>> 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" 


Date2007-12-31 08:45
Fromjoachim heintz
Subject[Csnd] Re: Re: Re: refreshed display for tablew?
exactly. thanks, victor.
	joachim



Am 31.12.2007 um 00:46 schrieb victor:

> Do you mean something like this?
>
> instr 1
> kndx init 0
> kmax init 0
> isize = ftlen(1)
> k1 table kndx, 1
> kndx = kndx + 1
> if kndx == isize then
> gkmax = kmax
> turnoff
> endif
> kmax = k1 > kmax ? k1 : kmax
> endin
>
> ----- Original Message ----- From: "joachim heintz"  
> 
> To: 
> Sent: Sunday, December 30, 2007 10:19 PM
> Subject: [Csnd] Re: refreshed display for tablew?
>
>
>> It's a bit funny to answer onself, but meanwhile I found a  
>> solution  for my wish - not actually refresh the display, but to  
>> write a new  table with the new values. Perhaps it's useful to put  
>> it here:
>>
>> gitab ftgen 0, 0, 2, 2, 0; original table
>>
>> instr 1
>>
>> tableiw 1, 0, gitab; changing a value
>> gineu ftgen 0, 0, 2, -24, gitab, 0, 1; rewriting the table for new  
>> display
>>
>> endin
>>
>> The new problem: How can I get the minimum and the maximum value  
>> of  the original table?
>>
>> joachim
>>
>>
>>
>> Am 27.11.2007 um 23:52 schrieb joachim heintz:
>>
>>> When I change the content of a table with the tablew opcodes, the  
>>> display remains at the first stage (before the table was  
>>> changed).  Is there any way to "refresh" the display? For example  
>>> in this  simple case ...
>>>
>>> gitab ftgen 0, 0, 2, 2, 0
>>>
>>> instr 1
>>>
>>> tableiw 1, 0, gitab
>>> isag table 0, gitab
>>> print isag
>>>
>>> endin
>>>
>>> ... the display for gitab shows just zeros, though index=0 is now 1.
>>> Thanks for help (if there is any) -
>>>
>>> joachim
>>>
>>>
>>> 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"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"