Recherche Google
OpenMusic 6 – User ManualAdvanced Visual Programming > Iterations: OMLOOP > Iterators > Forloop
previous pagenext page

Forloop : Enumeration Between Two Values

General Properties

Forloop enumerates each element of a list from a minimum value – starting point – to a maximum value – ending point – by a step of 1, and stops once the maximum value is exceeded.

Forloop has two default inputs and one optional input :

  • "from" and "to" : a starting and and ending vlaue
  • "by" : the value of the enumeration step.

Hence, forloop can only return numbers and doesn't enumerate an existing list .

Example : Inputs Properties

  • The value of "from" must always be inferior to the value of "to".
  • The default value of "by" is 1. It can be replaced by another positive value . If this value is negative, forloop doesn't stop, because "to" must be superior to "from".

Collect stops storing the values when the value defined by "to" is reached.

Conversely, the value returned by finally exceeds the maximum value, so that finally = "to" + "by".

previous pagenext page
About...(c) Ircam - Centre PompidouMade with Scenari