Old 10-31-2021, 02:20 PM   #1
mlprod
Human being with feelings
 
Join Date: Jul 2015
Location: Stockholm, Sweden
Posts: 1,344
Default Quick Walter code assitance?

Hey there, trying to wrap my head around how to edit the code below to do the following:

- Hide meter divisions and readout on Narrow tracks only.
- Bring back the volume label on the Narrow tracks.

Any ideas?
Best//M


Code:


set mcp.meter ?narrowMode{0} + * scale [4 4 20 -31] [stretch_sec stretch_sec nchan_offs{0} stretch_sec] \
+ [stretch_sec stretch_sec nchan_offs{0} stretch_sec] * scale h<hide_volume_label_s{0} [4 4 20 -4] !labelsMode{0} [4 4 20 -4] [4 23 20 -23]

set mcp.meter.vu.div [1 1]
set mcp.meter.readout.color !labelsMode{0} [0 0 0 0 0 0 0 0] [100 100 100 255 255 183 171 255]
set mcp.meter.scale.color.lit.bottom !labelsMode{0} [0 0 0 0 0 0 0 0] [0 0 0 170 0 0 0 0]
set mcp.meter.scale.color.lit.top !labelsMode{0} [0 0 0 0 0 0 0 0] [0 0 0 170 0 0 0 0]
set mcp.meter.scale.color.unlit.bottom !labelsMode{0} [0 0 0 0 0 0 0 0] ?recarm [255 64 0 255 0 0 0 0] [255 255 255 60 0 0 0 0]
set mcp.meter.scale.color.unlit.top !labelsMode{0} [0 0 0 0 0 0 0 0] ?recarm [255 64 0 255 0 0 0 0] [255 255 255 60 0 0 0 0]

set mcp.volume.label ?narrowMode{0} [0] \
+ [stretch_sec stretch_sec mcp.meter{2}] * scale h<hide_volume_label_s{0} [1 0 28 4] !labelsMode{0} [1 0 28 4] [1 0 28 23]
; + h<hide_volume_label_s{0} [1 0 28 4] !labelsMode{0} [1 0 28 4] [1 0 28 23] [stretch_sec stretch_sec mcp.meter{2}]
set mcp.volume ?narrowMode{0} + - + [stretch_sec stretch_sec] [nchan_offs_half stretch_sec{3}] * scale [-4 21] * scale [0 0 21 21] \
- + * [1 1 scale 1] [mcp.meter stretch_sec 21 stretch_sec] [mcp.meter{2} mcp.volume.label{3}] [-4 0 0 mcp.volume.label{3}]
set mcp.volume.label.color mcp.volume.label{h}>2 [180 180 180] [38 38 38]
set mcp.volume.label.font scale==1 [1] scale==1.5 [6] [11]
set mcp.volume.label.margin * [scale scale scale scale 1] ?narrowMode{0} [0 80 0 0 0.5] [0 4 0 0 0.5]
set mcp.recarm + * scale [0 0 36 24] ?narrowMode{0} - + [mcp.meter{2}] [stretch_sec stretch_sec] * scale [-1 17] \
+ - [stretch_sec stretch_sec] * scale [-29 17] [mcp.meter{2}]
__________________
Magnus Lindberg Productions - VRTKL Audio - Redmount Studios
magnuslindberg.com
mlprod is offline   Reply With Quote
Old 11-01-2021, 10:43 PM   #2
OakleyRdStudios
Human being with feelings
 
Join Date: Jun 2017
Posts: 226
Default

Hope you get a reply. This is something I want to know, also.
OakleyRdStudios is offline   Reply With Quote
Old 11-02-2021, 02:33 AM   #3
White Tie
Pixel Pusher
 
White Tie's Avatar
 
Join Date: Mar 2007
Location: Blighty
Posts: 4,984
Default

This looks like you're trying to modify the default 6 walter, which is never going to be a quick question.

The theme sets the appearance of the meter scale numbers and readout according to its 'labelsMode' variable. The value of that variable is set by the theme adjuster script.

You've commented out the volume label line. Beware, this is exactly the kind of thing that trips up new users fiddling with existing themes , because it is NOT the same thing as:
Code:
set mcp.volume.label [0]
...which how you hide an element.

Anyway, this is what you want:
Code:
set mcp.volume.label                     	+ [stretch_sec stretch_sec mcp.meter{2}] * scale h<hide_volume_label_s{0} [1 0 28 4] !labelsMode{0} [1 0 28 4] [1 0 28 23]
													; + h<hide_volume_label_s{0} [1 0 28 4] !labelsMode{0} [1 0 28 4] [1 0 28 23] [stretch_sec stretch_sec mcp.meter{2}]
...as you'll see, it doesn't fit, which I'm sure isn't what you want. Do you perhaps just want a smaller theme? Try one of the small layouts of default 4, or default 5, or one of the very many reskins of them.
__________________
The House of White Tie
White Tie is offline   Reply With Quote
Old 11-02-2021, 02:32 PM   #4
mlprod
Human being with feelings
 
Join Date: Jul 2015
Location: Stockholm, Sweden
Posts: 1,344
Default

Quote:
Originally Posted by White Tie View Post
This looks like you're trying to modify the default 6 walter, which is never going to be a quick question.

The theme sets the appearance of the meter scale numbers and readout according to its 'labelsMode' variable. The value of that variable is set by the theme adjuster script.

You've commented out the volume label line. Beware, this is exactly the kind of thing that trips up new users fiddling with existing themes , because it is NOT the same thing as:
Code:
set mcp.volume.label [0]
...which how you hide an element.

Anyway, this is what you want:
Code:
set mcp.volume.label                     	+ [stretch_sec stretch_sec mcp.meter{2}] * scale h<hide_volume_label_s{0} [1 0 28 4] !labelsMode{0} [1 0 28 4] [1 0 28 23]
													; + h<hide_volume_label_s{0} [1 0 28 4] !labelsMode{0} [1 0 28 4] [1 0 28 23] [stretch_sec stretch_sec mcp.meter{2}]
...as you'll see, it doesn't fit, which I'm sure isn't what you want. Do you perhaps just want a smaller theme? Try one of the small layouts of default 4, or default 5, or one of the very many reskins of them.
Thanks WT! And yes that is your code I am fiddling with.
I had a v5 layout-style theme before, but now I will need the automatic scaling etc, the modern jazz.

Anyway, the code does indeed show the volume label now. It doesnt fit right now for sure, but that is why I need to get rid of the meter scales/readout number, and probably also the record monitor button. Then it should fit nicely above the fader I hope!

Can one get rid of the meter readout for narrow tracks?
__________________
Magnus Lindberg Productions - VRTKL Audio - Redmount Studios
magnuslindberg.com

Last edited by mlprod; 11-02-2021 at 02:47 PM.
mlprod is offline   Reply With Quote
Old 11-02-2021, 04:32 PM   #5
martmix
Human being with feelings
 
martmix's Avatar
 
Join Date: Jan 2020
Location: quebec CA
Posts: 1,576
Default

if you get what you want can you please put a picture here please

im interesting to see the result...
__________________
[cpu=i7-6700,12gig ram]DAW=Reaper-[roland-quad-capture]-[krk rokit-5 G3]-[TR5-eq 81]-
[amplitube-max]
YouTube: ricky & marty
martmix is offline   Reply With Quote
Old 11-03-2021, 01:06 PM   #6
mlprod
Human being with feelings
 
Join Date: Jul 2015
Location: Stockholm, Sweden
Posts: 1,344
Default

Sure thing, let's see if I can get it sorted with some help hopefully.
__________________
Magnus Lindberg Productions - VRTKL Audio - Redmount Studios
magnuslindberg.com
mlprod is offline   Reply With Quote
Old 11-04-2021, 08:09 PM   #7
OLSHALOM
Human being with feelings
 
Join Date: Sep 2019
Location: Austria
Posts: 461
Default

Quote:
Originally Posted by mlprod View Post
Sure thing, let's see if I can get it sorted with some help hopefully.

Looks like I got it.
Is this the behaviour you expect?
There are a view statements changed, so easiest is to use the rtconfig file.

Hope it helps
Attached Files
File Type: txt rtconfig.txt (69.8 KB, 89 views)
OLSHALOM is offline   Reply With Quote
Old 11-04-2021, 08:22 PM   #8
OLSHALOM
Human being with feelings
 
Join Date: Sep 2019
Location: Austria
Posts: 461
Default

Attached Images
File Type: gif Def6_modified_05.11.21.gif (61.9 KB, 474 views)
OLSHALOM is offline   Reply With Quote
Old 11-04-2021, 08:38 PM   #9
OLSHALOM
Human being with feelings
 
Join Date: Sep 2019
Location: Austria
Posts: 461
Default

Ahh, you want to hide the readout too.

Here it is...
Attached Files
File Type: txt rtconfig.txt (69.8 KB, 71 views)
OLSHALOM is offline   Reply With Quote
Old 11-05-2021, 01:02 AM   #10
martmix
Human being with feelings
 
martmix's Avatar
 
Join Date: Jan 2020
Location: quebec CA
Posts: 1,576
Default

Quote:
Originally Posted by OLSHALOM View Post
Ahh, you want to hide the readout too.

Here it is...
can you please post just the narow image (the meter)

i want to use it on my theme
__________________
[cpu=i7-6700,12gig ram]DAW=Reaper-[roland-quad-capture]-[krk rokit-5 G3]-[TR5-eq 81]-
[amplitube-max]
YouTube: ricky & marty
martmix is offline   Reply With Quote
Old 11-05-2021, 02:35 AM   #11
OLSHALOM
Human being with feelings
 
Join Date: Sep 2019
Location: Austria
Posts: 461
Default

Quote:
Originally Posted by martmix View Post
can you please post just the narow image (the meter)

i want to use it on my theme

Only the Code changed. Images stayed the same.

The background in the default6-mcp is a "mosaic" containing different black backgrounds of mcp.meter, mcp.volume.label, etc.
This is a essential part of the concept for the whole theme and its ThemeAdjuster. Especially for the different borders.

It means the new code works only for a modded def6, at least the backgroundconcept is the same.
The code from the first post is exactly from the mentioned theme.
OLSHALOM is offline   Reply With Quote
Old 11-05-2021, 02:39 AM   #12
martmix
Human being with feelings
 
martmix's Avatar
 
Join Date: Jan 2020
Location: quebec CA
Posts: 1,576
Default

Quote:
Originally Posted by OLSHALOM View Post
Only the Code changed. Images stayed the same.

The background in the default6-mcp is a "mosaic" containing different black backgrounds of mcp.meter, mcp.volume.label, etc.
This is a essential part of the concept for the whole theme and its ThemeAdjuster. Especially for the different borders.

It means the new code works only for a modded def6, at least the backgroundconcept is the same.
The code from the first post is exactly from the mentioned theme.
ahh ok 😢 thank you still
__________________
[cpu=i7-6700,12gig ram]DAW=Reaper-[roland-quad-capture]-[krk rokit-5 G3]-[TR5-eq 81]-
[amplitube-max]
YouTube: ricky & marty
martmix is offline   Reply With Quote
Old 11-05-2021, 03:05 PM   #13
mlprod
Human being with feelings
 
Join Date: Jul 2015
Location: Stockholm, Sweden
Posts: 1,344
Default

Quote:
Originally Posted by OLSHALOM View Post
Only the Code changed. Images stayed the same.

The background in the default6-mcp is a "mosaic" containing different black backgrounds of mcp.meter, mcp.volume.label, etc.
This is a essential part of the concept for the whole theme and its ThemeAdjuster. Especially for the different borders.

It means the new code works only for a modded def6, at least the backgroundconcept is the same.
The code from the first post is exactly from the mentioned theme.
Thanks a lot for the help!

I actually fiddled around a little here and found a way to fit the volume label without getting rid of the readout. I made the meter less tall and moved it down to the original base position.

What I am trying to do now is actually move down the whole recmon/mute/solo section on Narrow tracks only.

Original code:
set mcp.recmon + + [0 padding] [mcp.recarmmcp.recarm] * scale [8 20 21 20]

Trying out code...

set mcp.recmon ?narrowMode{0} + + [0 padding] [mcp.recarm mcp.recarm] * scale [8 40 21 20] \ + + [0 padding] [mcp.recarmmcp.recarm] * scale [8 20 21 20]

...does work for the narrow tracks but completely messes on the normal tracks. I just dont get the syntax just yet. I basically just want the normal tracks to stay as is in the normal code. [8 20 21 20]
__________________
Magnus Lindberg Productions - VRTKL Audio - Redmount Studios
magnuslindberg.com
mlprod is offline   Reply With Quote
Old 11-05-2021, 04:03 PM   #14
OLSHALOM
Human being with feelings
 
Join Date: Sep 2019
Location: Austria
Posts: 461
Default

Quote:
Originally Posted by mlprod View Post
Thanks a lot for the help!

I actually fiddled around a little here and found a way to fit the volume label without getting rid of the readout. I made the meter less tall and moved it down to the original base position.

What I am trying to do now is actually move down the whole recmon/mute/solo section on Narrow tracks only.

Original code:
set mcp.recmon + + [0 padding] [mcp.recarmmcp.recarm] * scale [8 20 21 20]

Trying out code...

set mcp.recmon ?narrowMode{0} + + [0 padding] [mcp.recarm mcp.recarm] * scale [8 40 21 20] \ + + [0 padding] [mcp.recarmmcp.recarm] * scale [8 20 21 20]

...does work for the narrow tracks but completely messes on the normal tracks. I just dont get the syntax just yet. I basically just want the normal tracks to stay as is in the normal code. [8 20 21 20]


Delete the slash after the first statement.
add a space between mcp.recarm and mcp.recarm ([mcp.recarmmcp.recarm]).
Does the job overhere.
OLSHALOM is offline   Reply With Quote
Old 11-06-2021, 02:05 PM   #15
mlprod
Human being with feelings
 
Join Date: Jul 2015
Location: Stockholm, Sweden
Posts: 1,344
Default

Awesome, works! Thanks!
__________________
Magnus Lindberg Productions - VRTKL Audio - Redmount Studios
magnuslindberg.com
mlprod is offline   Reply With Quote
Old 11-09-2021, 06:58 AM   #16
mlprod
Human being with feelings
 
Join Date: Jul 2015
Location: Stockholm, Sweden
Posts: 1,344
Default

Sorry to bother you walter experts but I have one more request of coding help here.

So this is about the width control in the MCP. The code below is behaving like I want with two exceptions:

- The width control is visible on top in the pan control in the default pan mode (on Narrow tracks only), which it obviously shouldn't be.

- The width label is NOT visible in 1080p scaling (on Narrow tracks only), which is want it to be. It works as it should on retina displays.

Code below, thanks!



set mcp.width ?narrowMode{0} \
h<hide_pan_s{0} [0] + [pan_sec pan_sec] trackpanmode==6 + [0 0 nchan_offs{0}] * scale !panLabelsMode{0} [3 14 48 9] [3 23 48 9] \
trackpanmode>=4 + [nchan_offs_third{0}] * scale !panLabelsMode{0} [28 4 20 20] [26 47 20 20] \
+ [nchan_offs_half{0}] * scale !panLabelsMode{0} [18 4 20 20] [18 7 20 20] \
h<hide_pan_s{0} [0] + [pan_sec pan_sec] trackpanmode==6 + [0 0 nchan_offs{0}] * scale !panLabelsMode{0} [7 14 73 9] [7 23 73 9] \
trackpanmode>=4 + [nchan_offs_third{0}] + [nchan_offs_third{0}] * scale !panLabelsMode{0} [48 4 20 20] [48 7 20 20] [0]
set mcp.width.fadermode gl_fader_swap
set mcp.width.color gl_width_color
set mcp.width.label ?narrowMode{0} \
!panLabelsMode{0} [0] + [0 mcp.width] trackpanmode>=4 trackpanmode==6 + [mcp.pan.label] * scale [0 11 35 9] h<hide_inputFX_s{0} [0] [44 49 55 19] [0] \
!panLabelsMode{0} [0] + [0 mcp.width] trackpanmode>=4 trackpanmode==6 + [mcp.pan.label] * scale [0 11 40 9] + [nchan_offs_third{0}] + * scale [-5 25 35 10] [mcp.width] [0]
__________________
Magnus Lindberg Productions - VRTKL Audio - Redmount Studios
magnuslindberg.com
mlprod is offline   Reply With Quote
Old 11-17-2021, 06:19 AM   #17
mlprod
Human being with feelings
 
Join Date: Jul 2015
Location: Stockholm, Sweden
Posts: 1,344
Default

Anyone can get me a little hand here?
__________________
Magnus Lindberg Productions - VRTKL Audio - Redmount Studios
magnuslindberg.com
mlprod is offline   Reply With Quote
Old 12-01-2021, 02:22 PM   #18
mlprod
Human being with feelings
 
Join Date: Jul 2015
Location: Stockholm, Sweden
Posts: 1,344
Default

Quick walter code help request regarding scaling and label for the width knob, I will donate as a thank you if you have a paypal account=)
__________________
Magnus Lindberg Productions - VRTKL Audio - Redmount Studios
magnuslindberg.com
mlprod 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 01:52 AM.


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