Old 12-18-2015, 06:11 PM   #1
John Novak
Human being with feelings
 
John Novak's Avatar
 
Join Date: Nov 2015
Location: Brisbane, Australia
Posts: 86
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-18-2015, 06:18 PM   #2
John Novak
Human being with feelings
 
John Novak's Avatar
 
Join Date: Nov 2015
Location: Brisbane, Australia
Posts: 86
Default Wrong thread

Argh, first post ever and posted in the wrong thread Could an admin with sufficient privileges please move it to 'REAPER Feature Requests'? Cheers!
__________________
http://www.johnnovak.net/
John Novak is offline   Reply With Quote
Old 06-06-2018, 11:43 AM   #3
lucas_LCS
Human being with feelings
 
Join Date: Dec 2015
Posts: 2,102
Default

This Feature Request is posted here:
https://forum.cockos.com/showthread.php?t=170258
lucas_LCS 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 05:05 AM.


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