Csound Csound-dev Csound-tekno Search About

[Csnd] take value from many check box with a loop and rewrite an ftable

Date2011-06-24 17:13
Fromstephane boussuge
Subject[Csnd] take value from many check box with a loop and rewrite an ftable
AttachmentsReadWriteFtableloopstringconcatexp.csd  
hi list,
i'm trying to take value from check box in qutecsound with a loop and rewrite an ftable with it but something goes wrong and i can't understand what :(

could you help me please ?
see attached file.
thanks

stf



Date2011-06-24 18:59
Fromjoachim heintz
SubjectRe: [Csnd] take value from many check box with a loop and rewrite
AttachmentsReadWriteFtableloopstringconcatexp-1.csd  
hi -

this is indeed strange. i tried to isolate the problem. is has nothing
to do with the loop or the function table. it's just the fact, that,
assuming the checkbox "sq1-1" has the value 1, the line
  kstepval1 invalue "sq1-1"
returns the correct value, while the lines
  kstep = 1
  Sslot sprintfk "sq1-%i", kstep
  kstepval invalue Sslot
always return 0 (though Sslot has been created as "sq1-1" correctly).

i don't know why. perhaps andrés will know. there might be internal
reasons (or a bug?) in qutecsound.

what works is, to use the created string in a subinstrument. an example
is attached.

	joachim



Am 24.06.2011 18:13, schrieb stephane boussuge:
> hi list,
> i'm trying to take value from check box in qutecsound with a loop and
> rewrite an ftable with it but something goes wrong and i can't
> understand what :(
> 
> could you help me please ?
> see attached file.
> thanks
> 
> stf
> 
> 

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"


Date2011-06-24 19:21
Fromstephane boussuge
SubjectRe: [Csnd] take value from many check box with a loop and rewrite
Thank you Joachim, 
the solution of a subinstrument is a workaround and can do the job but it's not straight, i hope André or other people will find wat the matter ...
but another time, thank you for your answer , always very good ! 
if it's a bug from qutecsound, i'm happy to found it and serve this beautiful tool.

cheers
and sorry for my poor english ;)

stf


2011/6/24 joachim heintz <jh@joachimheintz.de>
hi -

this is indeed strange. i tried to isolate the problem. is has nothing
to do with the loop or the function table. it's just the fact, that,
assuming the checkbox "sq1-1" has the value 1, the line
 kstepval1 invalue "sq1-1"
returns the correct value, while the lines
 kstep = 1
 Sslot sprintfk "sq1-%i", kstep
 kstepval invalue Sslot
always return 0 (though Sslot has been created as "sq1-1" correctly).

i don't know why. perhaps andrés will know. there might be internal
reasons (or a bug?) in qutecsound.

what works is, to use the created string in a subinstrument. an example
is attached.

       joachim



Am 24.06.2011 18:13, schrieb stephane boussuge:
> hi list,
> i'm trying to take value from check box in qutecsound with a loop and
> rewrite an ftable with it but something goes wrong and i can't
> understand what :(
>
> could you help me please ?
> see attached file.
> thanks
>
> stf
>
>

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"