Commit graph

65 commits

Author SHA1 Message Date
Robin Gareus
e02efddb21 skip meter re-draw when no pixels are changed. 2014-10-25 17:28:14 +02:00
Robin Gareus
01974b5769 API flush static cairo pattern cache
(should probably be cleaned regularly
e.g. meterbridge resize)
2014-09-11 19:30:33 +02:00
John Emmas
abab819bb3 Avoid some ambiguous calls to 'floor()' which were upsetting MSVC 2014-03-21 18:24:36 +00:00
Robin Gareus
9d7efe7865 tweak meter-peak hold when using LED-striped meters 2014-03-21 14:15:38 +01:00
Robin Gareus
ab44e41dfd change the meters into CairoWidget, add expose_area to CairoWidget::render() 2014-03-20 23:50:40 +01:00
John Emmas
9a877a54e8 'libs/gtkmm2ext' - Remove "using namespace Gdk;" to avoid confusion (in 'fastmeter.cc') over whether we want namespace ::Cairo or namespace Gdk::Cairo 2013-08-26 15:43:20 +01:00
Robin Gareus
7a02d9e08d clean up some valgrid "Uninitialised value was created by a heap allocation" wanings 2013-07-31 19:29:20 +02:00
Robin Gareus
b5a2b4e84e initialize some uninitialized values 2013-07-31 15:22:51 +02:00
Robin Gareus
476da4f3df minimize meter-peak re-draw area 2013-07-31 01:59:50 +02:00
Robin Gareus
893e26cc68 use 3px for peak-hold in LED mode -> display 2 bright lines 2013-07-28 21:24:27 +02:00
Robin Gareus
d1c2d53afe tweak meter-LED style 2013-07-28 18:29:39 +02:00
Robin Gareus
069fd15c79 cache shaded meter-background regardless of color
previously, shaded patterns were assumed to have different colors as well.
2013-07-26 17:17:05 +02:00
Robin Gareus
cd35040535 fix meter background redraw issue #5601 2013-07-26 17:10:05 +02:00
Robin Gareus
43bd836778 [re]implement horizontal meter 2013-07-25 19:04:52 +02:00
Robin Gareus
2ec45cfd1b align gradient with meter-metrics 2013-07-24 22:57:25 +02:00
Robin Gareus
33b067c12c increase saturation of meter-shader 2013-07-24 16:15:12 +02:00
Robin Gareus
fa332f31fa allow to en/disable shade and LED meter style 2013-07-24 02:47:37 +02:00
Robin Gareus
d51a1ec06b add a stripe-pattern to the meters 2013-07-17 22:45:08 +02:00
Robin Gareus
9f6d97376d add option to disable cairo-RGBA overlays for meters. 2013-07-16 00:56:36 +02:00
Robin Gareus
e0bbc0b435 minor peak-meter performance tweak
* redraw only missing parts of the outside rectangle,
* don't redraw RMS meter if value has not changed
2013-07-12 17:56:42 +02:00
Robin Gareus
ffbc1c7a8b with RMS meters: use "peak indicator" as DPM 2013-07-10 15:27:13 +02:00
Robin Gareus
09243a326a use digital max-peak with RMS meter 2013-07-10 15:27:13 +02:00
Robin Gareus
0710171d90 don't reset meter background/highlight on click. 2013-07-10 15:27:12 +02:00
Robin Gareus
03a510c3d7 prepare meter-widget for dual background color 2013-07-10 15:27:12 +02:00
Robin Gareus
f801144472 less prominent meter shade 2013-07-10 15:27:09 +02:00
Robin Gareus
580cec03ad add shade gradient to meter 2013-07-10 15:27:08 +02:00
Robin Gareus
d4b1941796 fix meter gradient y-axis only 2013-07-10 15:27:08 +02:00
Robin Gareus
8a16e61b11 make all meter-colors configurable,.. 2013-07-10 15:27:07 +02:00
Robin Gareus
571b2d70e9 refactor level-meter widget: 5x2 stops meter colors 2013-07-10 15:27:07 +02:00
Robin Gareus
447e736139 remove b0rked horizontal meter code. 2013-07-10 15:27:07 +02:00
Robin Gareus
a07c50ad80 reduce peak-hold indicator to 2px height 2013-07-10 15:27:05 +02:00
Robin Gareus
a13bdf4153 meter rounded rectangle 2013-07-10 15:27:04 +02:00
Robin Gareus
3823ffc942 configurable meter background color 2013-07-10 15:27:04 +02:00
Robin Gareus
e4d754390e meter border 2013-07-10 15:27:04 +02:00
Robin Gareus
5b6fd190cb remove border around meter gradients, again. 2013-07-10 15:27:04 +02:00
Robin Gareus
fdbb0ef780 meter background gradient (hardcoded colors so far)
this is a quick test w/black borders only left+right
for Mr oofus to assess.
2013-07-10 15:27:03 +02:00
Robin Gareus
d6d27f10cb fastmeter: 1px padding left&right 2013-07-10 15:27:03 +02:00
David Robillard
f3a6b8a9ba Fix meter colour range to again have a hard knee at 0dB and twiddle colours so >0dB levels are red and stand out.
I am not sure if this is the original intent here, but it seems the most informative/useful/standard/etc. Unfortunately the colour names in the configuration (min, mid, max, clip) are a bit confusing (starting to clip = "mid"?) but changing them would break things. Oh well.


git-svn-id: svn://localhost/ardour2/branches/3.0@10042 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-08-31 18:58:46 +00:00
David Robillard
c55f142ad0 Fix meter colour gradients (mid and top were swapped).
I removed the double stop around the knee because... well, this is the way I figured out that actually follows the colour configuration as expected.  It may be less correct for some reason, but it looks like what I expect when twiddling the colours, anyway.


git-svn-id: svn://localhost/ardour2/branches/3.0@10041 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-08-31 17:22:05 +00:00
David Robillard
d3c38e28fc Make meters with different colour parameters actually work.
Particularly, audio meters and MIDI meters would more or less randomly use each other's colours. Now they each use their own configured colours as it should be.


git-svn-id: svn://localhost/ardour2/branches/3.0@10040 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-08-31 16:59:21 +00:00
Paul Davis
372137f373 remove more unneeded header includes
git-svn-id: svn://localhost/ardour2/branches/3.0@9922 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-07-25 18:11:03 +00:00
Paul Davis
b52422105f remove unneeded header includes
git-svn-id: svn://localhost/ardour2/branches/3.0@9921 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-07-25 18:10:49 +00:00
Paul Davis
9e5a0ad167 change FastMeter drawing implementation to use Cairo instead of GDK; some subtle changes to meter drawing will be visible and are subject to a revisit
git-svn-id: svn://localhost/ardour2/branches/3.0@9919 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-07-25 18:05:54 +00:00
Carl Hetherington
b65f8073ba Fix some unused parameter warnings.
git-svn-id: svn://localhost/ardour2/branches/3.0@5403 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-07-21 15:55:17 +00:00
Paul Davis
68e943265e merge from 2.0-ongoing @ 3581
git-svn-id: svn://localhost/ardour2/branches/3.0@3711 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-09-10 15:03:30 +00:00
Paul Davis
449aab3c46 rollback to 3428, before the mysterious removal of libs/* at 3431/3432
git-svn-id: svn://localhost/ardour2/branches/3.0@3435 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-06-02 21:41:35 +00:00
Doug McLain
9c0d7d72d7 remove empty sigc++2 directory
git-svn-id: svn://localhost/ardour2/branches/3.0@3432 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-06-02 05:02:28 +00:00
Paul Davis
997e4b1f9c merge with 2.0-ongoing @ rev 3147
git-svn-id: svn://localhost/ardour2/branches/3.0@3152 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-03-17 20:54:03 +00:00
David Robillard
e92c1669c1 Merge with 2.0-ongoing R2885.
Fix loading of 2.0 sessions.


git-svn-id: svn://localhost/ardour2/trunk@2904 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-01-12 23:45:50 +00:00
David Robillard
821e4763fd Merge with 2.0-ongoing R2885.
git-svn-id: svn://localhost/ardour2/trunk@2886 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-01-10 22:29:26 +00:00