REAPER KB

scalar_value

walter_themes/walter-expression-scalar-value · kind=reference

scalar_value

A single numeric value — literal, named scalar, or an indexed component of another coordinate_list.

Kind: concept

You can use a scalar_value as an expression in the following ways:

  1. Specifying the scalar name/value directly -- in this case, all values in the coordinate_list get this value. For example:

       set foo 1.0
         and
       set foo [1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0]
    ...or
       set foo h
         and
       set foo [h h h h h h h h]
    

    are equivalent.

  2. You can specify a scalar as a sparse coordinate_list by using the following syntax:

       scalar@x or scalar@0
       scalar@y or scalar@1
       scalar@w or scalar@2
       scalar@h or scalar@3
       scalar@ls or scalar@4
       scalar@ts or scalar@5
       scalar@rs or scalar@6
       scalar@bs or scalar@7
    

    For example, the following are equivalent:

       set foo 1.0@w
         and
       set foo [0 0 1.0 0]
    ...or
       set foo recarm@w
         and
       set foo [0 0 recarm 0]
    
  3. As a shorthand for making a sparse coordinate_list from one value of a coordinate_list, "coordlist{x}@x" can be abbreviated as "coordlist@x".

Other sections in this document