diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-12-10 09:17:05 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-12-16 05:52:36 -0500 |
commit | a1ef99b9b7a8fe90e574843bcbdeeb466e3bcc4e (patch) | |
tree | 79bfbfc05257f9775afe9df9f7db65120db1f9bf /libs/surfaces/mackie/mcp_buttons.cc | |
parent | 99764e946a3cebcbe7cdb252dc602be681498838 (diff) |
add beginnings of EQ and dynamics control to mackie for mixbus
Diffstat (limited to 'libs/surfaces/mackie/mcp_buttons.cc')
-rw-r--r-- | libs/surfaces/mackie/mcp_buttons.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libs/surfaces/mackie/mcp_buttons.cc b/libs/surfaces/mackie/mcp_buttons.cc index 6885acc97e..6439004a97 100644 --- a/libs/surfaces/mackie/mcp_buttons.cc +++ b/libs/surfaces/mackie/mcp_buttons.cc @@ -408,7 +408,18 @@ MackieControlProtocol::marker_press (Button &) { string markername; - session->locations()->next_available_name (markername,"mcu"); + /* Don't add another mark if one exists within 1/100th of a second of + * the current position. + */ + + + framepos_t where = session->audible_frame(); + + if (session->locations()->mark_at (where, session->frame_rate() / 100.0)) { + return off; + } + + session->locations()->next_available_name (markername,"marker"); add_marker (markername); return on; |