method for setting whether or not to show velocity bars
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Jul 2018 19:39:08 +0000 (15:39 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Jul 2018 19:39:08 +0000 (15:39 -0400)
libs/canvas/canvas/note.h
libs/canvas/note.cc

index 1b2083004267099dfabc1450c5342b991d0e490b..f1b48cac12bd882ae370995c622920230e392c1c 100644 (file)
@@ -35,6 +35,8 @@ public:
        void set_velocity (double fract);
        void set_fill_color (Gtkmm2ext::Color);
 
+       static void set_show_velocity_bars (bool);
+
   private:
        static bool      _show_velocity_bars;
        double           _velocity;
index e79e30ee5b9795e1aec255106bb6ed5784f6641b..05c66afd4e68c8065a3c8548d4452e5b897d6c87 100644 (file)
@@ -29,6 +29,12 @@ using namespace ArdourCanvas;
 
 bool Note::_show_velocity_bars = true;
 
+void
+Note::set_show_velocity_bars (bool yn)
+{
+       _show_velocity_bars = yn;
+}
+
 Note::Note (Canvas* c)
        : Rectangle (c)
        , _velocity (0.0)