View Single Post
Old 12-14-2011, 10:55 PM   #8
Mich
Human being with feelings
 
Join Date: May 2009
Posts: 1,265
Default

Quote:
Originally Posted by Erriez View Post
Sorry, we can't follow you: "at the position calculated from the value before the [] (the offset)" What do you mean?

Reaper developers, can you please change this chapter to human readable/practical documentation and spend a few words about 'arrays'? Reaper is made for musicians... not only for advanced programmers of a self-invented script language.
snip -------------------------------------

Section MEMORY
==============
JesuSonic has 8,388,608 local memory slots per effect.
They can be accessed via square brackets.

The memory slot access syntax is as follows:
Code:
expr1[expr2]
This accesses the memory slot with offset 'expr1+expr2'.
A memory access is an expression itself.

<optional for non-programmers>

The syntax for write access is:
Code:
expr1[expr2] = expr3;
This will write the value of expr3 into the memory slot at offset 'expr1+expr2'.

The syntax for read access is:
Code:
var = expr1[expr2];
This will read the value of the memory slot at offset 'expr1+expr2'. Then write the value into variable 'var'.

</optional for non-programmers>

JesuSonic also provides 1,048,576 global memory slots shared across all effects [on a track(?)].
Global memory can be accessed with the reserved keyword 'gmem' followed by square brackets, the enclosed content of which indicates the offset into the global memory slots.
The global memory access syntax is as follows:
Code:
gmem[expr1]
This will access the global memory slot at offset 'expr1'.

---------------------------------- /snip

You want a documentation like that?
__________________
Quote:
Originally Posted by vBulletin Message
Sorry pipelineaudio is a moderator/admin and you are not allowed to ignore him or her.
Mich is offline   Reply With Quote