mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
use MIDI meter colors (themeable) to show MIDI note velocity.
Selected notes no longer show the selected color for fill, following Alex Mitchell's proof-of-concept patch that showed it was easier to see what you're doing when the fill color shows velocity and we just use outline for selection status.
This commit is contained in:
parent
b4b2fbb6ed
commit
44c40bc065
2 changed files with 19 additions and 9 deletions
|
|
@ -103,15 +103,7 @@ public:
|
|||
|
||||
static void set_colors ();
|
||||
|
||||
inline static uint32_t meter_style_fill_color(uint8_t vel, bool selected) {
|
||||
if (selected) {
|
||||
return _selected_mod_col;
|
||||
} else if (vel < 64) {
|
||||
return UINT_INTERPOLATE(_min_col, _mid_col, (vel / (double)63.0));
|
||||
} else {
|
||||
return UINT_INTERPOLATE(_mid_col, _max_col, ((vel - 64) / (double)63.0));
|
||||
}
|
||||
}
|
||||
static uint32_t meter_style_fill_color(uint8_t vel, bool selected);
|
||||
|
||||
/// calculate outline colors from fill colors of notes
|
||||
inline static uint32_t calculate_outline(uint32_t color, bool selected=false) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue