method for setting whether or not to show velocity bars
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user