Csound Csound-dev Csound-tekno Search About

[Cs-dev] csound6: string array example fails

Date2013-03-16 16:48
Fromjoachim heintz
Subject[Cs-dev] csound6: string array example fails
hi -

i am pretty sure that i have already tested successfully an example for 
string arrays. but now it fails with today's git:

error:  too many input args
Csound tidy up: Segmentation fault

code is below. best -

	joachim




instr 1
;create
SArr[] init 4

;fill
icounter = 0
until (icounter > 3) do
SArr[icounter] = "hello "
icounter += 1
od

;print
icounter = 0
Sres = ""
until (icounter > 3) do
Sres strcat Sres, SArr[icounter]
icounter += 1
od
puts Sres, 1
endin



i1 0 0



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-16 19:33
FromRory Walsh
SubjectRe: [Cs-dev] csound6: string array example fails
Can't help you Joachim, but you've inadvertently answered a question I
asked on another thread about the possibility of string arrays! Nice
to see they are also available.

On 16 March 2013 16:48, joachim heintz  wrote:
> hi -
>
> i am pretty sure that i have already tested successfully an example for
> string arrays. but now it fails with today's git:
>
> error:  too many input args
> Csound tidy up: Segmentation fault
>
> code is below. best -
>
>         joachim
>
>
> 
> 
> instr 1
> ;create
> SArr[] init 4
>
> ;fill
> icounter = 0
> until (icounter > 3) do
> SArr[icounter] = "hello "
> icounter += 1
> od
>
> ;print
> icounter = 0
> Sres = ""
> until (icounter > 3) do
> Sres strcat Sres, SArr[icounter]
> icounter += 1
> od
> puts Sres, 1
> endin
>
> 
> 
> i1 0 0
> 
> 
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-18 13:53
FromSteven Yi
SubjectRe: [Cs-dev] csound6: string array example fails
Hi Joachim,

Thanks for posting this, I'm looking at the bug now and it seems to do
with a wrong type of "=" opcode used for Strings.  I'll post back when
I can get this fixed.

Thanks!
steven


On Sat, Mar 16, 2013 at 4:48 PM, joachim heintz  wrote:
> hi -
>
> i am pretty sure that i have already tested successfully an example for
> string arrays. but now it fails with today's git:
>
> error:  too many input args
> Csound tidy up: Segmentation fault
>
> code is below. best -
>
>         joachim
>
>
> 
> 
> instr 1
> ;create
> SArr[] init 4
>
> ;fill
> icounter = 0
> until (icounter > 3) do
> SArr[icounter] = "hello "
> icounter += 1
> od
>
> ;print
> icounter = 0
> Sres = ""
> until (icounter > 3) do
> Sres strcat Sres, SArr[icounter]
> icounter += 1
> od
> puts Sres, 1
> endin
>
> 
> 
> i1 0 0
> 
> 
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-18 14:12
Fromjoachim heintz
SubjectRe: [Cs-dev] csound6: string array example fails
thanks, steven. perhaps this simple example (or something similar) 
should be uncluded in the tests. as far as i saw there is no string 
array example.
best -
	joachim


Am 18.03.2013 14:53, schrieb Steven Yi:
> Hi Joachim,
>
> Thanks for posting this, I'm looking at the bug now and it seems to do
> with a wrong type of "=" opcode used for Strings.  I'll post back when
> I can get this fixed.
>
> Thanks!
> steven
>
>
> On Sat, Mar 16, 2013 at 4:48 PM, joachim heintz  wrote:
>> hi -
>>
>> i am pretty sure that i have already tested successfully an example for
>> string arrays. but now it fails with today's git:
>>
>> error:  too many input args
>> Csound tidy up: Segmentation fault
>>
>> code is below. best -
>>
>>          joachim
>>
>>
>> 
>> 
>> instr 1
>> ;create
>> SArr[] init 4
>>
>> ;fill
>> icounter = 0
>> until (icounter > 3) do
>> SArr[icounter] = "hello "
>> icounter += 1
>> od
>>
>> ;print
>> icounter = 0
>> Sres = ""
>> until (icounter > 3) do
>> Sres strcat Sres, SArr[icounter]
>> icounter += 1
>> od
>> puts Sres, 1
>> endin
>>
>> 
>> 
>> i1 0 0
>> 
>> 
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_mar
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-18 14:22
Fromjoachim heintz
SubjectRe: [Cs-dev] csound6: string array example fails
mmh ...
uncluded + unclouded -> included
(typo arithmetic)

Am 18.03.2013 15:12, schrieb joachim heintz:
> thanks, steven. perhaps this simple example (or something similar)
> should be uncluded in the tests. as far as i saw there is no string
> array example.
> best -
> 	joachim
>
>
> Am 18.03.2013 14:53, schrieb Steven Yi:
>> Hi Joachim,
>>
>> Thanks for posting this, I'm looking at the bug now and it seems to do
>> with a wrong type of "=" opcode used for Strings.  I'll post back when
>> I can get this fixed.
>>
>> Thanks!
>> steven
>>
>>
>> On Sat, Mar 16, 2013 at 4:48 PM, joachim heintz  wrote:
>>> hi -
>>>
>>> i am pretty sure that i have already tested successfully an example for
>>> string arrays. but now it fails with today's git:
>>>
>>> error:  too many input args
>>> Csound tidy up: Segmentation fault
>>>
>>> code is below. best -
>>>
>>>           joachim
>>>
>>>
>>> 
>>> 
>>> instr 1
>>> ;create
>>> SArr[] init 4
>>>
>>> ;fill
>>> icounter = 0
>>> until (icounter > 3) do
>>> SArr[icounter] = "hello "
>>> icounter += 1
>>> od
>>>
>>> ;print
>>> icounter = 0
>>> Sres = ""
>>> until (icounter > 3) do
>>> Sres strcat Sres, SArr[icounter]
>>> icounter += 1
>>> od
>>> puts Sres, 1
>>> endin
>>>
>>> 
>>> 
>>> i1 0 0
>>> 
>>> 
>>>
>>> ------------------------------------------------------------------------------
>>> Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics
>>> Download AppDynamics Lite for free today:
>>> http://p.sf.net/sfu/appdyn_d2d_mar
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_mar
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-18 15:38
FromSteven Yi
SubjectRe: [Cs-dev] csound6: string array example fails
Hi Joachim,

I added your test.csd to the test suite. I fixed the issue (turned out
there was a wrong kind of temporary variable synthesized).  However, I
see that something has changed since last week and a number of the
other tests are now failing. :(  Off to go fix those...

Thanks!
steven


On Mon, Mar 18, 2013 at 1:53 PM, Steven Yi  wrote:
> Hi Joachim,
>
> Thanks for posting this, I'm looking at the bug now and it seems to do
> with a wrong type of "=" opcode used for Strings.  I'll post back when
> I can get this fixed.
>
> Thanks!
> steven
>
>
> On Sat, Mar 16, 2013 at 4:48 PM, joachim heintz  wrote:
>> hi -
>>
>> i am pretty sure that i have already tested successfully an example for
>> string arrays. but now it fails with today's git:
>>
>> error:  too many input args
>> Csound tidy up: Segmentation fault
>>
>> code is below. best -
>>
>>         joachim
>>
>>
>> 
>> 
>> instr 1
>> ;create
>> SArr[] init 4
>>
>> ;fill
>> icounter = 0
>> until (icounter > 3) do
>> SArr[icounter] = "hello "
>> icounter += 1
>> od
>>
>> ;print
>> icounter = 0
>> Sres = ""
>> until (icounter > 3) do
>> Sres strcat Sres, SArr[icounter]
>> icounter += 1
>> od
>> puts Sres, 1
>> endin
>>
>> 
>> 
>> i1 0 0
>> 
>> 
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_mar
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net