diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-07-03 15:39:08 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-07-03 15:39:08 -0400 |
commit | bf2f4bd28a680b1808291a89a85e93d9fb18206c (patch) | |
tree | 69a30be7675f0451f5a15a2415587bf4d02e53b3 | |
parent | 0ff671b1a36e83a126a3e0189f74f3f3650a1220 (diff) |
method for setting whether or not to show velocity bars
-rw-r--r-- | libs/canvas/canvas/note.h | 2 | ||||
-rw-r--r-- | libs/canvas/note.cc | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libs/canvas/canvas/note.h b/libs/canvas/canvas/note.h index 1b20830042..f1b48cac12 100644 --- a/libs/canvas/canvas/note.h +++ b/libs/canvas/canvas/note.h @@ -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; diff --git a/libs/canvas/note.cc b/libs/canvas/note.cc index e79e30ee5b..05c66afd4e 100644 --- a/libs/canvas/note.cc +++ b/libs/canvas/note.cc @@ -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) |