Csound Csound-dev Csound-tekno Search About

[Csnd] refreshed display for tablew?

Date2007-11-27 22:52
Fromjoachim heintz
Subject[Csnd] refreshed display for tablew?
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

Date2007-12-30 22:19
Fromjoachim heintz
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"