Old 07-24-2017, 05:50 AM   #1
airon
Human being with feelings
 
airon's Avatar
 
Join Date: Aug 2006
Location: Berlin
Posts: 10,383
Default Debugging a layout

I've added a layout to the default theme, which is modded mostly only with a few images otherwise.

Here's the work in progress. It's a sidebar layout with elements from the session mixer.

I took inspiration from Solaris LCS mod v2 blue SideFX layout. The parameter fx, sends and inserts are from the SMALL layouts, the buttons mostly from the LARGE layout, the mute and solo buttons from the hidpi theme scaled down to 30x30.

I'm struggling to place the track label correctly, and I have no idea what the light grey blob at the bottom above the track idx is. I have the sneaking suspicion that it's the "selected track" bit, but I have no idea why it could look the way it does.

Any tips are welcome, especially ways to simplify stuff.



Screenshot


Code:
Layout "Sidebar" "sidebar_session"

clear mcp.*

set mcp.size [134 460]

set mcp.meter             h>=400 [0 0 44 -400 0 0 0 1] [0 0 44 48 0 0 0 1] 

set mcp.meter.vu.div [2]
    set mcp.meter.readout.color         [255 255 255 150 0 0 0 0]

    set mcp.meter.scale.color.unlit.top     ?recarm [200 74 33 50 0 0 0 0] [255 255 255 150 0 0 0 0]
    set mcp.meter.scale.color.unlit.bottom     ?recarm [200 74 33 50 0 0 0 0] [0]

    set mcp.meter.scale.color.lit.top     ?recarm [255 160 72 255 0 0 0 255] [255 255 255 150 0 0 0 0]
    set mcp.meter.scale.color.lit.bottom     ?recarm [255 160 72 255 0 0 0 255] [255 255 255 150 0 0 0 0]

set mcp.io                    [5 -300 34 33 0 1 0 1]
  set mcp.pan.fadermode  h>=437 [1] h<=436 [0]

set   mcp.pan.label             h>639 [0 -280 44 39 0 1 0 1] [0]
set   mcp.pan                         [4 -240 34 34 0 1 0 1]
  set mcp.pan.label.color           [158 158 158]
  set mcp.pan.label.color           [108 118 123]
  set mcp.pan.label.margin           [2 20 2 0 0.5 0.5]
  set mcp.width.fadermode           [1]

set   mcp.width.label                 [1 -202 44 30 0 1 0 1]
set   mcp.width.label.margin    [2 4 2 4 0.5 0.5]
set   mcp.width                         [3 -175 36 34 0 1 0 1]

  set   mcp.width.label.color   [128 136 142 255]
  set   mcp.width.color         [204 204 204 255]
  set   mcp.pan.color           [204 204 204 255]
 
set mcp.env             [0 -120 44 30 0 1 0 1]
set mcp.fxbyp          [10 -70 24 13 0 1 0 1]
set mcp.fx              [10 -57 24 20 0 1 0 1]

set mcp.mute      [7 -30 30 30 0 1 0 1]
set mcp.solo      [7  10 30 30 0 1 0 1]

set mcp.volume.fadermode         h>=437 [0] [1]
set mcp.volume              [12 60 19 320 0 1 0 1]

set mcp.volume.label        [0 388 44 35 0 1 0 1]
set mcp.volume.label.color    [128 136 142] 
set mcp.volume.label.margin    [0 2 0 0 0.5 0] 
  

; set mcp.phase            [ 1 394 17 19 0 1 0 1]
;    set mcp.recarm             [20 394 23 27 0 1 0 1]
;    set mcp.recmon             [1 420 16 26 0 1 0 1]
;    set mcp.recmode         [6 388 16 26 0 1 0 1]

;set mcp.recinput             h>=811 [0 17 44 41 0 0 0 0] h>=301 [0 17 44 41 0 0 0 0] h<=300 [0] 
;set mcp.recinput.margin         [2 -17 3 1]
;set mcp.recinput.color             [128 136 142]

;set mcp.fxin                 h>811 [30 46 7 5 0 0 0 0] h>=301 [30 46 7 5 0 0 0 0] h<=300 [0]


set mcp.trackidx              [0 423 130 54 1 1 1 1]  
set mcp.trackidx.color         [24 24 24 255]
set mcp.trackidx.margin     [0 0 0 0 0.5 0] 

;set mcp.label              [44 398 100 16 0 1 0 1]
;set mcp.label.color  [108 108 108 255]
;set mcp.label.margin [0 10 0 0 0.5 0.5]


set mcp.extmixer.mode              [1]
set mcp.extmixer.position         [44 0 90 415 0 0 0 1]

set mcp.fxlist.font                  [2 16]
set mcp.fxlist.margin                [4 0 4 0 0.5]
set mcp.sendlist.font                [2 16] 
set mcp.sendlist.margin              [4 0 4 0 0]
set mcp.fxparm.font                  [2 28]
set mcp.fxparm.margin                [2 0 4 0 0]  
;        set mcp.fxparm.font         [3 25]
;        set mcp.fxparm.margin        [4 0 6 0 0]
;   set mcp.sendlist.font         [4 17]
;   set mcp.sendlist.margin        [4 0 -12 0 0 0.5]


    ;set mcp.foldercomp         [24 905 31 20 0 1 0 1] 
    ;set mcp.folder              [15 415 15 13 0 1 0 1] 

EndLayout
__________________
Dialogue/FX Editor & Re-Recording Mixer
(Video)Using Latch Preview
"My ego comes pre-shrunk" - Randy Thom

Last edited by airon; 07-24-2017 at 06:07 AM.
airon is offline   Reply With Quote
Old 07-24-2017, 08:43 AM   #2
Pet
Human being with feelings
 
Pet's Avatar
 
Join Date: Nov 2015
Location: Germany
Posts: 971
Default

Hi airon,
this is the "mcp_idxbg_sel.png".

You have set the "mcp.trackidx" width to 130 in your code, that stretches the png.

HTH
__________________
If the v5 Default Theme is too bright for you take a gander at my mod of it: Default v5 Dark Theme
Pet is offline   Reply With Quote
Old 07-24-2017, 08:44 AM   #3
White Tie
Pixel Pusher
 
White Tie's Avatar
 
Join Date: Mar 2007
Location: Blighty
Posts: 2,563
Default

For debugging image stuff, try making an image that is a few pixels big and filled with just a very loud bright colour. Then temporarily overwrite your troublesome (or suspected troublesome) image with your bright image. Then you'll be in no doubt as to where it is and what size its drawing (and if you take a screengrab you can measure to the exact pixel.)
__________________
The House of White Tie
White Tie is offline   Reply With Quote
Old 07-25-2017, 06:13 AM   #4
airon
Human being with feelings
 
airon's Avatar
 
Join Date: Aug 2006
Location: Berlin
Posts: 10,383
Default

All is going reasonably well with improving this layout.

1)
I'm having trouble getting a track label to show up in the dimensions I specify however. For example
Code:
set mcp.label  [0 600 120 20 0 0 0 0]
I figured that would setup an mcp label at the the coordinates of that specific size, but that is not what I get. The label I get is a multiple of the vertical size. I am operating in the default theme, so perhaps there is something setup that interfers here.

2)
How do I place an element an amount of pixels away from the bottom of the MCP ?

I tried using the "parent" height in the variable "h" but that didn't work.

For 50 above the mcp bottom, I figured this would work. but nothing shows up.
Code:
set some.stuff  - + [0 h] [0 50] [whatever the element is]
Perhaps there is an easier way. I only need a pointer.
__________________
Dialogue/FX Editor & Re-Recording Mixer
(Video)Using Latch Preview
"My ego comes pre-shrunk" - Randy Thom
airon is offline   Reply With Quote
Old 07-25-2017, 10:09 AM   #5
airon
Human being with feelings
 
airon's Avatar
 
Join Date: Aug 2006
Location: Berlin
Posts: 10,383
Default

Not having much luck with getting the height of the MCP. But I've got a version going that works well for me, but is not flexible in the slightest.

For now this does the trick. I've got a film mix in a few days, so that'll show how well this functions. I still need to do proper automation buttons, but the style works well for me, since that's what I need to know at a glance.

And I'll keep reading the WALTER guide. The walter SDK page is barebones at best. Some examples are sprinkled in here and there, but I'd hardly call that documentation geared towards beginning theme makers.

Screenshot. I use a 1440p screen, so other folks might want to correct the mcp.meter and mcp.volume size to fit their screens. I just don't have the energy to puzzle this out any more today.




Here's the pack of the image subdirectory and the rtconfig.txt . It's the default theme with the added layout below.
https://stash.reaper.fm/31239/Defaul...edRTConfig.zip (402kB)


Code:
Layout "Sidebar" "sidebar_session"

clear mcp.*

set mcp.size [134 460]

; ###### edge stuff
set jack [0 0 0 0]
set jill [0 1 0 1]

set mcp.meter   [0 0 44 400 jack]
;set mcp.meter   * [1 1 1 0.3 1 1 1 1] [0 0 44 mcp.size{2} jill]


set mcp.meter.vu.div [2]
    set mcp.meter.readout.color         [255 255 255 150 0 0 0 0]

    set mcp.meter.scale.color.unlit.top     ?recarm [200 74 33 50 0 0 0 0] [255 255 255 150 0 0 0 0]
    set mcp.meter.scale.color.unlit.bottom     ?recarm [200 74 33 50 0 0 0 0] [0]

    set mcp.meter.scale.color.lit.top     ?recarm [255 160 72 255 0 0 0 255] [255 255 255 150 0 0 0 0]
    set mcp.meter.scale.color.lit.bottom     ?recarm [255 160 72 255 0 0 0 255] [255 255 255 150 0 0 0 0]

set   mcp.pan.fadermode   [1]  

  
; ###### START X- and Y-coordinates for the block on controls below the meter
; "+" operator says "add the first to the second argument", which are the two sets [0 590] and the larger set after it

set   control_start       + [0 0] [0 mcp.meter{h}] ; if we want to offset, do it in the first pair of values

set   mcp.pan.label             + control_start [0 0 44 39 jack]


; two "+" operators say "add the first to the second argument, then add the third argument to that"
; here we add three values to get a resulting set of values for mcp.pan

; {h}eight of mcp.pan.label, the {y}-value of mcp.pan.label and "0" from the third set are added together
; for the final resulting value of the y-value of mcp.pan

; the point of all this is to set the starting value via the variable "control_start" and the rest just follows

set   mcp.pan                   + + [0 mcp.pan.label{h}] [0 mcp.pan.label{y}] [4 0 34 34 jack]

; in this example :           [0 39 0 0 0 0 0 0] + [0 590 0 0 0 0 0 0] + [4 0 34 34 jack]
;                          =  [4 629 34 34 0 0 0 0]
; The next elementm mcp.width.label builds off those last values


  set mcp.pan.label.color           [158 158 158]
  set mcp.pan.label.color           [108 118 123]
  set mcp.pan.label.margin           [2 20 2 0 0.5 0.5]
  set mcp.width.fadermode           [1]


  
set   mcp.width.label                 + + [0 mcp.pan{h}]         [0 mcp.pan{y}]         [1 0 44 30 jack]
set   mcp.width                         + + [0 mcp.width.label{h}] [0 mcp.width.label{y}] [3 0 36 34 jack]

set   mcp.width.label.margin    [2 4 2 4 0.5 0.5]


  set   mcp.width.label.color   [128 136 142 255]
  set   mcp.width.color         [204 204 204 255]
  set   mcp.pan.color           [204 204 204 255]
 
set mcp.env             + + [0 mcp.width{h}] [0 mcp.width{y}] [ 0 30 44 30 jack]

set mcp.fxbyp          + + [0 mcp.env{h}]   [0 mcp.env{y}]   [10 10 24 13 jack]
set mcp.fx              + + [0 mcp.fxbyp{h}] [0 mcp.fxbyp{y}] [10 00 24 20 jack]

set mcp.mute      + + [0 mcp.fx{h}]    [0 mcp.fx{y}]    [ 7 40 30 30 jack]
set mcp.solo      + + [0 mcp.mute{h}]  [0 mcp.mute{y}]  [ 7 10 30 30 jack]

set mcp.io        + + [0 mcp.solo{h}]  [0 mcp.solo{y}]  [ 5 40 34 33 jack]

set mcp.volume.fadermode         h>=437 [0] [1]




set mcp.volume.label    + + [0 mcp.io{h}]     [0 mcp.io{y}]     [0 10 44 35 jack]
set mcp.volume.label.color    [128 136 142] 
set mcp.volume.label.margin    [0 2 0 0 0.5 0] 

set mcp.volume          + + [0 mcp.volume.label{h}] [0 mcp.volume.label{y}] [12 10 19 320 0 0 0 0]
  

set mcp.label.font [3]
set mcp.label              + + [0 mcp.volume{h}]  [0 mcp.volume{y}] [0 80 134 20 0 0 0 0]
;set mcp.label              [0 1250 120 31 0 0 0 0]
set mcp.label.margin [0 0 0 0 0.5]
set mcp.label.color  [168 168 168 255]


set mcp.trackidx              - [0 h] [24 0 20 22 0 0 0 0]
set mcp.trackidx.color         [110 110 110 255]
set mcp.trackidx.margin     [0 0 0 0 0.5] 



;########### Ext Mixer fun

set mcp.extmixer.mode       [1]
set mcp.extmixer.position   [44 0 90 360 0 0 0 1]

set mcp.fxlist.font         [2 16]
set mcp.fxlist.margin       [4 0 4 0 0.5]
set mcp.sendlist.font       [2 16] 
set mcp.sendlist.margin     [4 0 4 0 0]
set mcp.fxparm.font         [2 28]
set mcp.fxparm.margin       [2 0 4 0 0]  

EndLayout
__________________
Dialogue/FX Editor & Re-Recording Mixer
(Video)Using Latch Preview
"My ego comes pre-shrunk" - Randy Thom

Last edited by airon; 07-26-2017 at 12:51 AM.
airon 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 10:46 AM.


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