mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
method for setting whether or not to show velocity bars
This commit is contained in:
parent
0ff671b1a3
commit
bf2f4bd28a
2 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue