Csound Csound-dev Csound-tekno Search About

[Cs-dev] until not working in a udo

Date2013-03-09 20:48
Fromjoachim heintz
Subject[Cs-dev] until not working in a udo
AttachmentsUntil_in_UDO.csd  None  None  
(this is also csound 5, same in csound 6)

looks like the until loop is not at all working in a udo. simple example 
is attached.
best -
	joachim

Date2013-03-10 09:38
FromVictor Lazzarini
SubjectRe: [Cs-dev] until not working in a udo
I think until is k-rate, not i-rate. This instr does not do what asked either:

  instr 2
iend init 10
isum init 0
indx init 1
until indx < iend do
isum = isum + indx
indx = indx + 1
od
print isum
endin



On 9 Mar 2013, at 20:48, joachim heintz wrote:

> (this is also csound 5, same in csound 6)
> 
> looks like the until loop is not at all working in a udo. simple example is attached.
> best -
> 	joachim
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
> endpoint security space. For insight on selecting the right partner to 
> tackle endpoint security challenges, access the full report. 
> http://p.sf.net/sfu/symantec-dev2dev_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-10 09:43
FromVictor Lazzarini
SubjectRe: [Cs-dev] until not working in a udo
Actually, scrap that answer. What you want is:

  opcode test, i, i
iend xin
isum = 0
indx = 1
until indx >= iend do
isum = isum + indx
indx = indx + 1
od
xout isum
endop

See the condition is "until indx >= iend"

On 10 Mar 2013, at 09:38, Victor Lazzarini wrote:

> I think until is k-rate, not i-rate. This instr does not do what asked either:
> 
>  instr 2
> iend init 10
> isum init 0
> indx init 1
> until indx < iend do
> isum = isum + indx
> indx = indx + 1
> od
> print isum
> endin
> 
> 
> 
> On 9 Mar 2013, at 20:48, joachim heintz wrote:
> 
>> (this is also csound 5, same in csound 6)
>> 
>> looks like the until loop is not at all working in a udo. simple example is attached.
>> best -
>> 	joachim
>> ------------------------------------------------------------------------------
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
>> endpoint security space. For insight on selecting the right partner to 
>> tackle endpoint security challenges, access the full report. 
>> http://p.sf.net/sfu/symantec-dev2dev_______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
> endpoint security space. For insight on selecting the right partner to 
> tackle endpoint security challenges, access the full report. 
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-03-12 13:56
Fromjoachim heintz
SubjectRe: [Cs-dev] until not working in a udo
thanks, victor. i confused the until loop with the while loop. for 
convenience, it would be great to have the latter, too.
	joachim


Am 10.03.2013 10:43, schrieb Victor Lazzarini:
> Actually, scrap that answer. What you want is:
>
>    opcode test, i, i
> iend xin
> isum = 0
> indx = 1
> until indx >= iend do
> isum = isum + indx
> indx = indx + 1
> od
> xout isum
> endop
>
> See the condition is "until indx >= iend"
>
> On 10 Mar 2013, at 09:38, Victor Lazzarini wrote:
>
>> I think until is k-rate, not i-rate. This instr does not do what asked either:
>>
>>   instr 2
>> iend init 10
>> isum init 0
>> indx init 1
>> until indx < iend do
>> isum = isum + indx
>> indx = indx + 1
>> od
>> print isum
>> endin
>>
>>
>>
>> On 9 Mar 2013, at 20:48, joachim heintz wrote:
>>
>>> (this is also csound 5, same in csound 6)
>>>
>>> looks like the until loop is not at all working in a udo. simple example is attached.
>>> best -
>>> 	joachim
>>> ------------------------------------------------------------------------------
>>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>>> endpoint security space. For insight on selecting the right partner to
>>> tackle endpoint security challenges, access the full report.
>>> http://p.sf.net/sfu/symantec-dev2dev_______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>> endpoint security space. For insight on selecting the right partner to
>> tackle endpoint security challenges, access the full report.
>> http://p.sf.net/sfu/symantec-dev2dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> 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