Old 12-21-2015, 04:16 PM   #1
John Novak
Human being with feelings
 
John Novak's Avatar
 
Join Date: Nov 2015
Location: Brisbane, Australia
Posts: 45
Default Customizable Pan & Width label formats

Request

Provide a mechanism for customising the display formats of the pan and width UI text labels in the TCP and MCP panels on a per-theme basis.


Benefit

Currently, the display formats of the pan and width text labels in the TCP and MCP panels are hardcoded to 100%L .. center .. 100%R and -100W .. 0W .. 100W, respectively.

Firstly, this can be problematic for narrow layouts where screen space is at premium (e.g. the center pan label text could be too wide for narrow MCP panels with dual pan controls positioned side by side).

Secondly, some themers and users might just prefer alternative label formats in order to mimic other DAWs or simply due to personal preference.


Implementation suggestion

The proposed solution introduces a mechanism for specifying pan and width text label formats on a per-theme basis, similarly to the existing tcp_voltext_flags and mcp_voltext_flags properties. While the pan labels are the main problem, for the sake of completeness the width labels should be included in scope as well as the changes are relatively simple to implement.

For simplicity of implementation, only the display of the pan and width UI labels on the TCP and MCP panels should be controlled by the flags; pan and width values displayed anywhere else should continue to use the existing hardcoded formats (e.g. various dialogs, informational messages, tooltips etc.)

The following new bitfield properties should be introduced. The defaults have been chosen to ensure backward compatibility with existing themes.

Code:
  tcp.pan.label.flags             (default: 12)
  mcp.pan.label.flags             (default: 12)
  master.tcp.pan.label.flags      (default: 12)
  master.mcp.pan.label.flags      (default: 12)

  tcp.width.label.flags           (default: 2)
  mcp.width.label.flags           (default: 2)
  master.tcp.width.label.flags    (default: 2)
  master.mcp.width.label.flags    (default: 2)

Pan flag format

Code:
value  description
-----  --------------------------------------------------------------------
       CENTER LABEL FORMAT (use only one value from 0 to 3)

  0    display 'center' for center pan values
  1    display 'CENTER' for center pan values
  2    display 'C' for center pan values
  3    display '0' for center pan values

       OPTION SWITCHES (can be toggled individually)

  4    display percentage sign ('%') after numeric values (but before
       the 'L' or 'R' characters, if present)
  8    display 'L' and 'R' characters after left and right pan values,
       respectively (after the percentage sign, if present)
 16    display minus sign ('-') before left pan values
 32    display plus sign ('+') before right pan values
Examples:

Flag value: 12 (0 + 4 + 8) — current default behaviour
Pan labels: 100%L .. center .. 100%R

Flag value: 10 (2 + 8)
Pan labels: 100L .. C .. 100R

Flag value: 55 (3 + 4 + 16 + 32)
Pan labels: -100% .. 0% .. +100%

Flag value: 17 (1 + 16)
Pan labels: -100 .. CENTER .. 100

Width flag format

Code:
value  description
-----  --------------------------------------------------------------------
       OPTION SWITCHES (can be toggled individually)

  1    display percentage sign ('%') after numeric values
  2    display 'W' character after numeric values
       (and after the percentage sign, if present)
  4    display plus sign ('+') before positive values
Examples:

Flag value: 2 — current default behaviour
Pan labels: -100W .. 0W .. 100W

Flag value: 5 (1 + 4)
Pan labels: -100% .. 0% .. +100%

Flag value: 4
Pan labels: -100 .. 0 .. +100
__________________
http://www.johnnovak.net/
John Novak is offline   Reply With Quote
Old 12-22-2015, 12:57 PM   #2
Masi
Human being with feelings
 
Join Date: Sep 2015
Posts: 667
Default

Is there somewhere room for the pan law?
Masi is offline   Reply With Quote
Old 12-24-2015, 03:22 PM   #3
John Novak
Human being with feelings
 
John Novak's Avatar
 
Join Date: Nov 2015
Location: Brisbane, Australia
Posts: 45
Default

My thinking is that the pan law setting should not be part of a theme, hence the answer is no.
__________________
http://www.johnnovak.net/
John Novak is offline   Reply With Quote
Old 08-24-2016, 03:29 PM   #4
John Novak
Human being with feelings
 
John Novak's Avatar
 
Join Date: Nov 2015
Location: Brisbane, Australia
Posts: 45
Default

Bump...

This would be a very easy change, I have practically defined all that needs to be done, so it could be implemented in a few hours by the devs.

No one interested? Devs, anyone?
__________________
http://www.johnnovak.net/
John Novak is offline   Reply With Quote
Old 08-30-2016, 10:45 AM   #5
Blankfiles
Human being with feelings
 
Blankfiles's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,021
Default

Late But ! +1 for this
Blankfiles is offline   Reply With Quote
Old 06-06-2018, 11:45 AM   #6
lucas_LCS
Human being with feelings
 
Join Date: Dec 2015
Posts: 872
Default

+1 for this.
this or something similar to this or the way the Vol Text works.

@ John Novak
Suggest you add the 'Poll' option to this thread.
Would be easier to quickly see how support it gets.
lucas_LCS is offline   Reply With Quote
Old 01-18-2020, 02:26 AM   #7
Eraz
Human being with feelings
 
Join Date: Nov 2019
Posts: 223
Default

Agree +1!
Eraz is offline   Reply With Quote
Old 01-18-2020, 02:39 AM   #8
synkrotron
Human being with feelings
 
synkrotron's Avatar
 
Join Date: May 2015
Location: Warrington, UK
Posts: 1,115
Default

+1

English spelling of Centre would be nice too
__________________
Bandcamp // YouTube // SoundCloud
synkrotron 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 04:34 AM.


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