Commit Graph

41 Commits

Author SHA1 Message Date
Robin Gareus 417f3647cc
Keep shuttle ctrl in sync with actual speed
When using "VS" the numeric control shows the "default speed"
when not rolling. Then when starting to roll default speed will
be the actual speed.

Previously the shuttle was not updated when `last_speed_displayed`
was the current speed. This dated back to before "VS" showed
default speed.
2023-10-10 04:18:53 +02:00
Paul Davis b35518e212 switch from boost::{shared,weak}_ptr to std::{shared,weak}_ptr
This is mostly a simple lexical search+replace but the absence of operator< for
std::weak_ptr<T> leads to some complications, particularly with Evoral::Sequence
and ExportPortChannel.
2023-03-24 14:19:15 -06:00
Robin Gareus 51e93399ba
Update vari-speed availability, depending on port-resampler 2023-02-04 03:21:27 +01:00
Robin Gareus f6c748537f
Fix deflection of shuttle control
See also 89a85da52c
 * Fix deflection when using percent (use sqrt/pow2)
 * Simplify linear deflection when using semitones
 * Allow deflection of > 200% when using semitones
2022-06-05 23:44:39 +02:00
Robin Gareus 89a85da52c
Overhaul vari-speed shuttle control display
* keep shuttle and mouse position in sync when dragging
* do not show speed options above max-transport-speed
* use quadratic deflection with speed percentage
* reduce knob width since the slider is rather narrow these days
2022-05-25 00:21:56 +02:00
Robin Gareus 8b365e238e
NO-OP: clang-format 2021-07-19 02:58:51 +02:00
Robin Gareus 89a4c98bfd
Allow vari-speed control via scroll-wheel 2021-07-19 02:57:45 +02:00
Robin Gareus 0ca77db96d
Separate transport and varispeed dialog 2021-07-19 00:55:59 +02:00
Ben Loftis d1941c9cbc
Default_Play_Speed: 2nd attempt at varispeed GUI 2021-07-03 19:06:03 +02:00
Ben Loftis 50c555f1a1
Default_Play_Speed: simple varispeed GUI 2021-07-03 19:06:02 +02:00
Ben Loftis d6d60711aa
Default_Play_Speed: nuke shuttle Wheel mode (gtk part) 2021-07-03 19:06:02 +02:00
Robin Gareus bcab07af63
Resolve microseconds_t ambiguity 2/2 2021-06-27 17:33:06 +02:00
Robin Gareus 83b9ab1bee
Temporarily revert ongoing varispeed development
This reverts bf88f3fe64
until 35813db0f4

in order to move development into a branch, until after the
upcoming 6.8 release
2021-06-26 18:58:24 +02:00
Ben Loftis 5b8835483e Default_Play_Speed: simple varispeed GUI 2021-06-25 11:51:34 -05:00
Ben Loftis af19e1e7e7 Default_Play_Speed: nuke shuttle Wheel mode (gtk part) 2021-06-25 11:51:34 -05:00
Robin Gareus eeadf5087d
Shuttle wheel context-menu: max speed only applies to percentage 2021-04-20 14:26:30 +02:00
Robin Gareus 4050ca5633
Update GPL boilerplate and (C)
Copyright-holder and year information is extracted from git log.

git history begins in 2005. So (C) from 1998..2005 is lost. Also some
(C) assignment of commits where the committer didn't use --author.
2019-08-03 15:53:15 +02:00
Robin Gareus 204d7bf76c
Remove cruft: unused members 2019-03-07 22:25:19 +01:00
Robin Gareus f9e5e4360e Move more Gtkmm2ext widgets into libwidget 2017-07-17 21:06:04 +02:00
Robin Gareus 5c92613698 Separate Ardour UI widgets into dedicated library 2017-07-17 21:06:04 +02:00
Robin Gareus d06de26a4f Towards a consistent render() API.
This fixes an -Woverloaded-virtual ambiguity introduced in b5e613d45

  void render (cairo_t*, cairo_rectagle*)
  void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*)

ArdourCanvas prefers cairomm and CairoWidget itself uses Cairo::Context,
this improves overall API consistency.
2017-03-20 17:12:08 +01:00
Robin Gareus 3aefd0e744 consolidate context-menu popup methods 2017-03-16 02:36:48 +01:00
Robin Gareus 2561b98f8a Move shuttle/speed text outsize 2016-12-19 22:11:53 +01:00
Robin Gareus a631706059 Rework shuttle control display 2016-12-17 02:43:42 +01:00
Robin Gareus 994df3aaa3 improve shuttle control response when grabbed. 2016-07-25 19:43:57 +02:00
Paul Davis 3d5491d0d0 show ShuttleControl GUI some love.
now uses Pango, not Cairo, for text rendering
2016-06-13 17:26:02 -04:00
Paul Davis 9e3299f97d change Controllable::set_value() API to include grouped control consideration.
This also removes Route::group_gain_control() and associated machinery.
Not yet tested with Mackie or other surfaces. More work to done to
start using the group capabilities, and also potentially to add
or derive more controls as RouteAutomationControls
2016-01-02 04:58:30 -05:00
Tim Mayberry f9cba95a8f Add missing header include in shuttle_control.h 2015-09-16 16:55:17 -04:00
Robin Gareus ad4ae3df85 Add 100% shuttle controls option - closes #6537 2015-08-22 04:32:14 +02:00
Robin Gareus 2d20bcab4a dramatically reduce ShuttleControl CPU usage 2015-03-10 10:53:56 +01:00
Robin Gareus ab44e41dfd change the meters into CairoWidget, add expose_area to CairoWidget::render() 2014-03-20 23:50:40 +01:00
Paul Davis 5adcb61f60 a few small fixes that help pitchbend control of things, notably the shuttle controller. but note that basically, teh shuttle controller is completely and hopelessly broken through excess complexity and incorrect design
git-svn-id: svn://localhost/ardour2/branches/3.0@13870 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-17 14:48:17 +00:00
Ben Loftis 27bfb0f9e2 new look for transport shuttle box. still operates brokenly though
git-svn-id: svn://localhost/ardour2/branches/3.0@13609 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-06 19:09:16 +00:00
Paul Davis 4085309cdb make Stateful::_id private and provide appropriate methods to set it, and use them throughout ardour
git-svn-id: svn://localhost/ardour2/branches/3.0@10222 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-18 13:18:47 +00:00
David Robillard ed626628b5 Delete trailing whitespace
git-svn-id: svn://localhost/ardour2/branches/3.0@9656 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-06-01 17:00:29 +00:00
Carl Hetherington d0bb7df866 Return shuttle speed to previous value on release after sprung grab (#4039).
git-svn-id: svn://localhost/ardour2/branches/3.0@9506 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-05-13 17:25:02 +00:00
Paul Davis 35a966c824 fix up fwd/reverse stuff in semitone mode
git-svn-id: svn://localhost/ardour2/branches/3.0@9407 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-04-22 16:18:51 +00:00
Paul Davis 509cd57c74 hopefully fix up shuttle operation in semitones mode
git-svn-id: svn://localhost/ardour2/branches/3.0@9404 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-04-21 21:49:47 +00:00
Paul Davis 80e9eb09dd several tweaks/fixes to the shuttle control
git-svn-id: svn://localhost/ardour2/branches/3.0@9395 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-04-20 22:53:41 +00:00
Paul Davis 458db0525c reinstate MIDI binding for shuttle controller
git-svn-id: svn://localhost/ardour2/branches/3.0@9394 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-04-20 05:07:41 +00:00
Paul Davis 718b2eab67 factor out shuttle controller to its own class, new design
git-svn-id: svn://localhost/ardour2/branches/3.0@9391 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-04-20 02:48:20 +00:00