Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Color Themes and Icon Sets

Reply
 
Thread Tools Display Modes
Old 04-12-2021, 07:48 AM   #1
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,679
Default WALTER syntax - combinators between expressions?

Would someone please explain these three WALTER statements?

Code:
set tcp_idx_margin	- / h 2 * scale 18

set tcp.trackidx  + + [0 0 this_tcp_indent] [folder_sec 0 0 0 0 0 0 1] * scale [0 0 18 100]

set tcp.trackidx 	?supercollapsed{0} + tcp.trackidx * scale [0 0 0 40]
It is the * between the expressions that is tripping me up; it does not look like Reverse Polish notation as I understand it. I could not find this syntax described in the docs.

Is the first line: tcp_idx_margin = ((h/2) * scale) - 18 ?
If so, should the RPN representation be - * / h 2 scale 18

And the third one:
if supercollapsed{0} == 1 then tcp.trackidx = (tcp.trackidx * scale) + [0 0 0 40]
ANd the RPN representation: + * tcp.trackidx scale [0 0 0 40]
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.