method for setting whether or not to show velocity bars

This commit is contained in:
Paul Davis 2018-07-03 15:39:08 -04:00
parent 0ff671b1a3
commit bf2f4bd28a
2 changed files with 8 additions and 0 deletions

View 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;

View 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)