Old 02-09-2019, 04:18 PM   #1
dbirczynski
Human being with feelings
 
Join Date: Nov 2018
Posts: 2
Default Adjusting track layout

Hi,

I looked at the WALTER tcp. setup but I can't figure out how to move whole blocks of buttons from one place to another. Perhaps what I want can be achieved with the elements behavior when resizing the panel.

In certain themes, when changing the size of the track panel horizontally, the buttons rearrange themselves and move from the right side to the bottom (assuming the track is wide enough). I can't however achieve it with the Imperial theme.

Maybe the picture attached would explain better what I'm trying to achieve.

Thanks for your help,

- Daniel
Attached Images
File Type: jpg reaper_track_layout.jpg (48.5 KB, 341 views)
dbirczynski is offline   Reply With Quote
Old 02-10-2019, 08:42 PM   #2
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,254
Default

Unfortunately theme editing in Reaper is not simple, straightforward or easy. You can't just move stuff around in blocks. Each element is specifically defined by size, position, etc. Walter theming guide has most of the answers but not all of them, so check it out and good luck!

Oh and welcome to the forums!
__________________
foxyyymusic
foxAsteria is offline   Reply With Quote
Old 02-11-2019, 02:58 AM   #3
Vagalume
Human being with feelings
 
Join Date: Nov 2015
Posts: 604
Default

Maybe I misunderstood your problem (my English is limited) you can't move them in blocks but you can do it one by one when the track is smaller than X pixels then position would be Z.

I don't use Imperial, but let's say that you have a mute botton in the left side of the track:
set tcp.mute [249 1 16 17 1 0 1 0]
You can move it by doing something like this:
set tcp.mute w<184 [249 1 16 17 1 0 1 0] [15 25 16 17]
The button when the width is smaller than 184 then it will reposition the button to the right side of the track 15 ... with the 25 you will send it bellow (you don't want it to be sharing space with the track label]. So you'll have two positions of the button depending on the width of the track.

You will have to do this with of buttons that you want to reposition, obviouly the values of the w< expression will be different because the buttons that you want to move are not in the same position.
Vagalume is offline   Reply With Quote
Old 02-11-2019, 03:10 AM   #4
White Tie
Pixel Pusher
 
White Tie's Avatar
 
Join Date: Mar 2007
Location: Blighty
Posts: 4,950
Default

I always recommend against starting out how to learn the basics of Reaper theming by editing existing themes, because it requires you to understand how WALTER works (which is fairly simple) but also to completely understand how the theme maker used it to make his theme, which could be staggeringly complicated.

Imperial is, however, an exception because its mostly a dumb static theme ...the very thing that is bothering you (a lack of dynamic rearrangement) is also what makes it easy to mess with.

Here's some entirely static code for moving the buttons as you asked:

Code:
 	Layout 'a2b ------ dbirczynski'
	
	set tcp.size 					+:maxfolderdepth:1 [0 0 18] [544 72 157]
	set less_than_max		+:-1:1 tcp.size{0} eff_w{0}	
	set tcp.label 						+ cm eff_w{0}>460 [0 1 270 21 0 0 1 0] + * maxfolderdepth [0 0 18] +:0.3:1 [0 0 less_than_max{0}] [0 1 210 21 0 0 0 0]
	set label_rhs 		+ tcp.label{2} * +:-1:1 [tcp.size{0}] w tcp.label{6}
	set remaining_gap 	+:-1:1 label_rhs w
	set pan_space		+ remaining_gap trackpanmode<5 [25] [0]	
	set tcp.recarm 						+ cm + [label_rhs] [0 0 22 23 0 0 0 0] 
	set tcp.pan 						+ cm remaining_gap{0}<91 [0] + [label_rhs] [26 0 22 22 0 0 0 0]
	set tcp.width 						trackpanmode<5 [0] + cm remaining_gap{0}<113 [0] + [label_rhs] [50 0 22 22 0 0 0 0]
	set tcp.volume.label 				tcp.volume{w}==0 [0] + cm + * maxfolderdepth [18] [7 27 45 9 0 0 0 0]
	set tcp.pan.label 					tcp.pan{x}==0 [0] + cm + [tcp.pan] [-10 27 31 9 0 0 0 0]
	set tcp.width.label 				trackpanmode<5 [0] tcp.width{x}==0 [0] + cm + [tcp.width] [0 27 31 9 0 0 0 0]
	set tcp.recinput 					+ maxfolderdepth==0 [6 0 -6] [0] h<47 [0] + [20 0 label_rhs{0}] * + [0 0 tcp.trackidx{0}] [1 1 20 1 1 1 1 1] [tcp.trackidx 46 -1 18 0 0 0 0]
	set tcp.fxin 						tcp.recinput{w}<=0 [0] + [tcp.recinput tcp.recinput] [-20 2 14 14 0 0 0 0]
	set tcp.recmode 					tcp.recinput{w}<=0 [0] [tcp.recarm tcp.recinput 22 21 0 0 0 0] 
	set tcp.recmon 						h<100 . [tcp.fxin 70 14 14]
	set tcp.phase 						+ tcp.recmon [22]
	set tcp.env 						+ tcp.phase [22]
	set tcp.io 							+ tcp.env [22]
	set tcp.fx 							+ tcp.io [22]
	set tcp.fxbyp 						tcp.fx{0}==0 [0] + tcp.fx [16]
	set tcp.mute 						+ tcp.tcp.fxbyp [22]
	EndLayout ;
Paste that in underneath the 'Layout 'a2 ------ Default (medium track name)' layout code block in the rtconfig and have a look. Its not perfect, but hopefully you'll see that its pretty simple and a good place to start messing about.

The key bit to notice :
Code:
set tcp.recmon 		h<100 . [tcp.fxin 70 14 14]
; that says "if height is less than 100px, do . " ( . means do whatever the last layout did.)
__________________
The House of White Tie
White Tie is offline   Reply With Quote
Old 02-16-2019, 12:01 PM   #5
dbirczynski
Human being with feelings
 
Join Date: Nov 2018
Posts: 2
Default

This is great, thank you White Tie. I honestly don't mind my layout be static, I can set it right and never touch it again. Your code works just like I wanted it expect for a few small things.

1. I moved the solo button to the second raw, after mute button but it also resized it to be smaller. I played with the values for width and hight but it has no effect.

2. There is still a gap on the right side of the panel and it I try to close it, volume and pan disappear. How can I change their behavior?

Obviously I wish there was a tool to arrange the buttons and save out as a preset but thankfully there is this forum :-)

Thanks again,
-dB
dbirczynski is offline   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 09:23 AM.


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