ardour.git
8 years agoTempo ramps - api change, remove some code.
nick_m [Fri, 1 Apr 2016 18:41:16 +0000 (05:41 +1100)]
Tempo ramps - api change, remove some code.

8 years agoTempo ramps - rename - should be a no-op.
nick_m [Fri, 1 Apr 2016 18:11:25 +0000 (05:11 +1100)]
Tempo ramps - rename - should be a no-op.

8 years agoTempo ramps - fix bug revealed by test. also small rename.
nick_m [Fri, 1 Apr 2016 18:01:06 +0000 (05:01 +1100)]
Tempo ramps - fix bug revealed by test. also small rename.

8 years agoTempo ramps - make ramp test more challenging.
nick_m [Fri, 1 Apr 2016 18:00:14 +0000 (05:00 +1100)]
Tempo ramps - make ramp test more challenging.

8 years agoTempo ramps - tempo related tests pass, add ramp test.
nick_m [Fri, 1 Apr 2016 16:23:51 +0000 (03:23 +1100)]
Tempo ramps - tempo related tests pass, add ramp test.

8 years agoTempo ramps - remove more code.
nick_m [Thu, 31 Mar 2016 18:50:08 +0000 (05:50 +1100)]
Tempo ramps - remove more code.

8 years agoTempo ramps - neaten code layout.
nick_m [Thu, 31 Mar 2016 17:22:55 +0000 (04:22 +1100)]
Tempo ramps - neaten code layout.

8 years agoTempo ramps - fix some silly code.
nick_m [Thu, 31 Mar 2016 15:12:34 +0000 (02:12 +1100)]
Tempo ramps - fix some silly code.

8 years agoTempo ramps - calculate bars correctly when setting meter position.
nick_m [Thu, 31 Mar 2016 14:34:55 +0000 (01:34 +1100)]
Tempo ramps - calculate bars correctly when setting meter position.

8 years agoTempo ramps - fix thinko in a could-be-more-efficient manner.
nick_m [Thu, 31 Mar 2016 13:51:23 +0000 (00:51 +1100)]
Tempo ramps - fix thinko in a could-be-more-efficient manner.

- some form of 'no time' now functions correctly between audio locked meters.

8 years agoTempo ramps - set correct beat on audio locked meters.
nick_m [Thu, 31 Mar 2016 13:32:52 +0000 (00:32 +1100)]
Tempo ramps - set correct beat on audio locked meters.

8 years agoTempo ramps - multiple audio-locked meters are go.
nick_m [Wed, 30 Mar 2016 19:45:44 +0000 (06:45 +1100)]
Tempo ramps - multiple audio-locked meters are go.

- more or less

8 years agoTempo ramps - more clarity i hope take 2.
nick_m [Wed, 30 Mar 2016 19:03:10 +0000 (06:03 +1100)]
Tempo ramps - more clarity i hope take 2.

8 years agoTempo ramps - hopefully better overview.
nick_m [Wed, 30 Mar 2016 18:48:22 +0000 (05:48 +1100)]
Tempo ramps - hopefully better overview.

8 years agoTempo spamr - smallify some code.
nick_m [Wed, 30 Mar 2016 18:26:09 +0000 (05:26 +1100)]
Tempo spamr - smallify some code.

8 years agoTempo ramps - more code reorganization, almost audio-locked meter nirvana.
nick_m [Wed, 30 Mar 2016 17:50:26 +0000 (04:50 +1100)]
Tempo ramps - more code reorganization, almost audio-locked meter nirvana.

8 years agoRampo Temps - remove nonsense.
nick_m [Wed, 30 Mar 2016 16:53:21 +0000 (03:53 +1100)]
Rampo Temps - remove nonsense.

8 years agoTempo ramps -update audio-locked meter bbt correctly, a bit more explanation.
nick_m [Wed, 30 Mar 2016 16:47:30 +0000 (03:47 +1100)]
Tempo ramps -update audio-locked meter bbt correctly, a bit more explanation.

8 years agoTempo ramps - more multi audio-locked meter work, code reorganisation.
nick_m [Wed, 30 Mar 2016 15:34:54 +0000 (02:34 +1100)]
Tempo ramps - more multi audio-locked meter work, code reorganisation.

8 years agoTempo gramps - fix compilatoin?
nick_m [Tue, 29 Mar 2016 19:15:24 +0000 (06:15 +1100)]
Tempo gramps - fix compilatoin?

8 years agoTempo damps - fix compilation
nick_m [Tue, 29 Mar 2016 16:54:09 +0000 (03:54 +1100)]
Tempo damps - fix compilation

8 years agoTempo cramps - do not allow tempos to share the same frame.
nick_m [Tue, 29 Mar 2016 11:09:39 +0000 (22:09 +1100)]
Tempo cramps - do not allow tempos to share the same frame.

8 years agoPerfornamce - remove dubious optimisation.
nick_m [Tue, 29 Mar 2016 05:48:56 +0000 (16:48 +1100)]
Perfornamce - remove dubious optimisation.

8 years agoTempo camp - clarify comments.
nick_m [Tue, 29 Mar 2016 03:56:33 +0000 (14:56 +1100)]
Tempo camp - clarify comments.

8 years agoTempo ramps - a saner way to snap music-locked tempos.
nick_m [Mon, 28 Mar 2016 20:19:11 +0000 (07:19 +1100)]
Tempo ramps - a saner way to snap music-locked tempos.

8 years agoTempo ramps - improvements from static analysis.
nick_m [Mon, 28 Mar 2016 20:18:12 +0000 (07:18 +1100)]
Tempo ramps - improvements from static analysis.

8 years agoTempo ramps - fix incorrect verbose cursor during tempo drag.
nick_m [Mon, 28 Mar 2016 19:11:02 +0000 (06:11 +1100)]
Tempo ramps - fix incorrect verbose cursor during tempo drag.

8 years agoTempo ramps - fix meter drag finished bug.
nick_m [Mon, 28 Mar 2016 18:57:51 +0000 (05:57 +1100)]
Tempo ramps - fix meter drag finished bug.

8 years agoTempo ramps - tempo drags respect the snap modifier. add some documentation.
nick_m [Mon, 28 Mar 2016 18:31:06 +0000 (05:31 +1100)]
Tempo ramps - tempo drags respect the snap modifier. add some documentation.

8 years agoTempo ramps - switch MusicLocked tempos to beat-based dragging. fix various bugs...
nick_m [Mon, 28 Mar 2016 17:13:37 +0000 (04:13 +1100)]
Tempo ramps - switch MusicLocked tempos to beat-based dragging. fix various bugs wrt future-snapped tempo drags

8 years agoTempo ramps - use correct meter when snapping to the future.
nick_m [Mon, 28 Mar 2016 16:14:23 +0000 (03:14 +1100)]
Tempo ramps - use correct meter when snapping to the future.

8 years agoTempo ramps - tempos now musically snap to their future.
nick_m [Mon, 28 Mar 2016 15:23:29 +0000 (02:23 +1100)]
Tempo ramps - tempos now musically snap to their future.

8 years agoPerformance - Use fixed height mode and fixed column width in region list.
nick_m [Sun, 27 Mar 2016 20:05:39 +0000 (07:05 +1100)]
Performance - Use fixed height mode and fixed column width in region list.

8 years agoTempo bambi - clean up.
nick_m [Sun, 27 Mar 2016 19:13:22 +0000 (06:13 +1100)]
Tempo bambi - clean up.

8 years agoTempo rambo - more bbt scale fiddling.
nick_m [Sun, 27 Mar 2016 19:05:20 +0000 (06:05 +1100)]
Tempo rambo - more bbt scale fiddling.

8 years agoTempo rampo - tempo tick lines no longer assume constant tempo.
nick_m [Sun, 27 Mar 2016 18:21:29 +0000 (05:21 +1100)]
Tempo rampo - tempo tick lines no longer assume constant tempo.

8 years agoTempo ramps - avoid sending negative beats to the BFC.
nick_m [Sat, 26 Mar 2016 23:45:51 +0000 (10:45 +1100)]
Tempo ramps - avoid sending negative beats to the BFC.

8 years agoTempo ramps - another approach to first meter/tempo.
nick_m [Sat, 26 Mar 2016 23:26:15 +0000 (10:26 +1100)]
Tempo ramps - another approach to first meter/tempo.

- first tempo is glued to first meter position as they are now
  both locked to AudioTime.
- all existing audio-locked tempos to the left of the first meter
  are made inactive. all to the right are made active.

8 years agoTempo ramps - fix just-introduced undo crash.
nick_m [Fri, 25 Mar 2016 19:28:27 +0000 (06:28 +1100)]
Tempo ramps - fix just-introduced undo crash.

8 years agoTempo ramps - allow constraint-drag of first tempo.
nick_m [Fri, 25 Mar 2016 19:16:47 +0000 (06:16 +1100)]
Tempo ramps - allow constraint-drag of first tempo.

8 years agoTempo ramps - bbt ruler scale tweaks.
nick_m [Fri, 25 Mar 2016 18:18:11 +0000 (05:18 +1100)]
Tempo ramps - bbt ruler scale tweaks.

8 years agoTempo ramps - pressing constraint modifier keys during tempo drag changes tempo with...
nick_m [Fri, 25 Mar 2016 17:48:29 +0000 (04:48 +1100)]
Tempo ramps - pressing constraint modifier keys during tempo drag changes tempo with vertical movement, incorporating beat constraint (if present).

- makes it easy to find suitable accelerandos for hit points in conjunction
  with playhead position, beat-locked tempos and initial meter frame.

8 years agoTempo ramps - small tweak to ruler scale.
nick_m [Thu, 24 Mar 2016 19:04:24 +0000 (06:04 +1100)]
Tempo ramps - small tweak to ruler scale.

8 years agoTempo ramps- bbt ruler scale accounts for non-beat ranges for consistent results.
nick_m [Thu, 24 Mar 2016 18:15:01 +0000 (05:15 +1100)]
Tempo ramps- bbt ruler scale accounts for non-beat ranges for consistent results.

8 years agoTempo ramps - display bbt in audio clock correctly when dragging tempos/meters.
nick_m [Thu, 24 Mar 2016 16:44:04 +0000 (03:44 +1100)]
Tempo ramps - display bbt in audio clock correctly when dragging tempos/meters.

8 years agoTempo ramps - towards having multiple audio-locked meters again.
nick_m [Thu, 24 Mar 2016 13:26:05 +0000 (00:26 +1100)]
Tempo ramps - towards having multiple audio-locked meters again.

- also speeds up meter dragging

8 years agoTempo ramps - bbt_time() speedup, more meter dragging performance improvements.
nick_m [Thu, 24 Mar 2016 12:22:28 +0000 (23:22 +1100)]
Tempo ramps - bbt_time() speedup, more meter dragging performance improvements.

8 years agoTempo rmps - amend last commit, speeding up dragging of audio-locked meters quite...
nick_m [Thu, 24 Mar 2016 11:17:59 +0000 (22:17 +1100)]
Tempo rmps - amend last commit, speeding up dragging of audio-locked meters quite a bit.

8 years agoTempo ramps - minor cleanup.
nick_m [Thu, 24 Mar 2016 11:09:48 +0000 (22:09 +1100)]
Tempo ramps - minor cleanup.

8 years agoTempo ramps - complete 'music locked meters are now positioned using beats' transition.
nick_m [Thu, 24 Mar 2016 08:42:28 +0000 (19:42 +1100)]
Tempo ramps - complete 'music locked meters are now positioned using beats' transition.

8 years agoTempo ramps - small bug fixes/cleanup.
nick_m [Wed, 23 Mar 2016 15:55:59 +0000 (02:55 +1100)]
Tempo ramps - small bug fixes/cleanup.

8 years agoTempo ramps - various bug fixes (meter drag undo, incorrect copy)
nick_m [Tue, 22 Mar 2016 17:55:12 +0000 (04:55 +1100)]
Tempo ramps - various bug fixes (meter drag undo, incorrect copy)

8 years agoTempo ramps - music-locked meters now use beats rather than pulses as their reference.
nick_m [Tue, 22 Mar 2016 14:11:00 +0000 (01:11 +1100)]
Tempo ramps - music-locked meters now use beats rather than pulses as their reference.

- fixes many problems with a non-zero audio-locked first meter.

8 years agoTempo ramps - clean up negative beat handling in beats_to_bbt_locked ()
nick_m [Mon, 21 Mar 2016 15:55:24 +0000 (02:55 +1100)]
Tempo ramps - clean up negative beat handling in beats_to_bbt_locked ()

8 years agoTempo ramps - fix crash with simplest case.
nick_m [Mon, 21 Mar 2016 15:24:04 +0000 (02:24 +1100)]
Tempo ramps - fix crash with simplest case.

8 years agoTempo ramps - fix compilation
nick_m [Mon, 21 Mar 2016 13:40:23 +0000 (00:40 +1100)]
Tempo ramps - fix compilation

8 years agoTempo ramps - show grid when dragging first meter.
nick_m [Mon, 21 Mar 2016 13:21:18 +0000 (00:21 +1100)]
Tempo ramps - show grid when dragging first meter.

8 years agoTempo ramps - improve music-locked meter drags, improve dump().
nick_m [Mon, 21 Mar 2016 12:47:57 +0000 (23:47 +1100)]
Tempo ramps - improve music-locked meter drags, improve dump().

- dump now shows cross-calculation of tempo positions.

8 years agoTempo ramps - fix constant tempos (again).
nick_m [Sun, 20 Mar 2016 12:31:44 +0000 (23:31 +1100)]
Tempo ramps - fix constant tempos (again).

8 years agoTempo ramps - remove double calls to RegionView::set_duration() and MidiRegionView...
nick_m [Sun, 20 Mar 2016 10:57:44 +0000 (21:57 +1100)]
Tempo ramps - remove double calls to RegionView::set_duration() and MidiRegionView::redisplay_model()

- massively improves note redrawing performance when dragging tempos
  and audio-locked meters,

8 years agoTempo ramps - code cleanup
nick_m [Sun, 20 Mar 2016 09:22:34 +0000 (20:22 +1100)]
Tempo ramps - code cleanup

8 years agoTempo ramps - allow moving the first meter if audio locked.
nick_m [Sat, 19 Mar 2016 14:03:10 +0000 (01:03 +1100)]
Tempo ramps - allow moving the first meter if audio locked.

- strangely broken wrt the grid, but kind-of works.

8 years agoTempo ramps - fix incorrect handling of unsloveable maps.
nick_m [Sat, 19 Mar 2016 13:27:27 +0000 (00:27 +1100)]
Tempo ramps - fix incorrect handling of unsloveable maps.

8 years agoTempo ramps - respect tempo note type and meter note divisor correctly.
nick_m [Sat, 19 Mar 2016 12:44:40 +0000 (23:44 +1100)]
Tempo ramps - respect tempo note type and meter note divisor correctly.

- tempo and meter position is now pulse-based,
  although meter still has a beat for convenience.

8 years agoTempo ramps - fix erroneous tempo_at_frame(), use correct type for offsets.
nick_m [Sun, 13 Mar 2016 18:26:34 +0000 (05:26 +1100)]
Tempo ramps - fix erroneous tempo_at_frame(), use correct type for offsets.

8 years agoTempo ramps - midi notes resize when dragged, misc bug fixes.
nick_m [Sun, 13 Mar 2016 17:09:53 +0000 (04:09 +1100)]
Tempo ramps - midi notes resize when dragged, misc bug fixes.

8 years agoTempo ramps - snap uses audio-locked meter offsets.
nick_m [Sun, 13 Mar 2016 14:47:55 +0000 (01:47 +1100)]
Tempo ramps - snap uses audio-locked meter offsets.

- fixes much of the fallout from the previous commit.

8 years agoTempo ramps - hook up tempo display, a new approach to audio-locked meters
nick_m [Sat, 12 Mar 2016 20:20:16 +0000 (07:20 +1100)]
Tempo ramps - hook up tempo display, a new approach to audio-locked meters

- audio locked meters define an offset which is used for all public
  TempoMap methods while the internal map remains contiguous.
  Probably a few unexpected consequences here, but seems to work mostly.

8 years agoTempo ramps - new (old) map solving strategy.
nick_m [Mon, 7 Mar 2016 23:21:02 +0000 (10:21 +1100)]
Tempo ramps - new (old) map solving strategy.

8 years agoTempo ramps - comment out debugging
nick_m [Mon, 7 Mar 2016 18:06:03 +0000 (05:06 +1100)]
Tempo ramps - comment out debugging

8 years agoTempo ramps -consolidate code, add precision check for tempo metrics.
nick_m [Mon, 7 Mar 2016 18:03:00 +0000 (05:03 +1100)]
Tempo ramps -consolidate code, add precision check for tempo metrics.

8 years agoTempo ramps - fix various thinkos.
nick_m [Mon, 7 Mar 2016 14:11:08 +0000 (01:11 +1100)]
Tempo ramps - fix various thinkos.

8 years agoTempo ramps - check for impossible locations tempo dialog bbt entry. reorganise code.
nick_m [Sun, 6 Mar 2016 19:35:32 +0000 (06:35 +1100)]
Tempo ramps - check for impossible locations tempo dialog bbt entry. reorganise code.

8 years agoTempo ramps - fix music-locked meter drags.
nick_m [Fri, 4 Mar 2016 07:33:05 +0000 (18:33 +1100)]
Tempo ramps - fix music-locked meter drags.

8 years agoTempo ramps - grid now follows dragging meter section.
nick_m [Fri, 4 Mar 2016 06:39:49 +0000 (17:39 +1100)]
Tempo ramps - grid now follows dragging meter section.

8 years agoTempo ramps - audio-locked meters have a bbt of 1|1|0
nick_m [Thu, 3 Mar 2016 23:32:08 +0000 (10:32 +1100)]
Tempo ramps - audio-locked meters have a bbt of 1|1|0

- possibly lots going wrong with this due to multiple occurences
  of 1|1|0.

8 years agoTempo ramps - meter sections drag again.
nick_m [Thu, 3 Mar 2016 22:11:21 +0000 (09:11 +1100)]
Tempo ramps - meter sections drag again.

8 years agoTempo ramps - comment and tidy.
nick_m [Thu, 3 Mar 2016 21:22:41 +0000 (08:22 +1100)]
Tempo ramps - comment and tidy.

8 years agoTempo ramps - add method to handle beat-based tempo reordering. clean code.
nick_m [Thu, 3 Mar 2016 20:32:00 +0000 (07:32 +1100)]
Tempo ramps - add method to handle beat-based tempo reordering. clean code.

8 years agoTempo ramps - change some prototypes, rename some methods.
nick_m [Thu, 3 Mar 2016 17:31:11 +0000 (04:31 +1100)]
Tempo ramps - change some prototypes, rename some methods.

8 years agoTempo ramps - fix ordering glitches when dragging tempos.
nick_m [Thu, 3 Mar 2016 15:58:13 +0000 (02:58 +1100)]
Tempo ramps - fix ordering glitches when dragging tempos.

8 years agoTempo ramps - fix comments.
nick_m [Thu, 3 Mar 2016 15:30:50 +0000 (02:30 +1100)]
Tempo ramps - fix comments.

8 years agoTempo ramps - fix constant tempo thinko.
nick_m [Thu, 3 Mar 2016 15:22:37 +0000 (02:22 +1100)]
Tempo ramps - fix constant tempo thinko.

8 years agoTempo ramps - fix return of constant tempo, experimentally use _at_tempo() methods.
nick_m [Thu, 3 Mar 2016 14:24:20 +0000 (01:24 +1100)]
Tempo ramps - fix return of constant tempo, experimentally use _at_tempo() methods.

8 years agoTempo ramps - rework mouse dragging of tempo marks, derive beat_at_tempo() and tempo_...
nick_m [Thu, 3 Mar 2016 13:08:21 +0000 (00:08 +1100)]
Tempo ramps - rework mouse dragging of tempo marks, derive beat_at_tempo() and tempo_at_beat().

8 years agoTempo ramps - re-enabe audio-locked meter sections, fix more locking errors.
nick_m [Tue, 1 Mar 2016 16:19:21 +0000 (03:19 +1100)]
Tempo ramps - re-enabe audio-locked meter sections, fix more locking errors.

8 years agoTempo ramps - fix crash-causing locking errors. clean up code a bit.
nick_m [Tue, 1 Mar 2016 15:07:32 +0000 (02:07 +1100)]
Tempo ramps - fix crash-causing locking errors. clean up code a bit.

8 years agoTempo ramps - setting bbt of an audio-locked tempo marker in the tempo dialog works.
nick_m [Mon, 29 Feb 2016 16:59:32 +0000 (03:59 +1100)]
Tempo ramps - setting bbt of an audio-locked tempo marker in the tempo dialog works.

8 years agoTempo ramps - fixes bbt wrt frame-locked tempo sections in the tempo dialog
nick_m [Sun, 28 Feb 2016 18:42:22 +0000 (05:42 +1100)]
Tempo ramps - fixes bbt wrt frame-locked tempo sections in the tempo dialog

8 years agoTempo ramps - fix thinko
nick_m [Sun, 28 Feb 2016 18:25:20 +0000 (05:25 +1100)]
Tempo ramps - fix thinko

8 years agoTempo ramps - restore bbt settings in tempo dialog for audio-locked tempo markers
nick_m [Sun, 28 Feb 2016 17:54:24 +0000 (04:54 +1100)]
Tempo ramps - restore bbt settings in tempo dialog for audio-locked tempo markers

- see comments

8 years agoTempo ramps - code cleanup
nick_m [Sun, 28 Feb 2016 16:46:31 +0000 (03:46 +1100)]
Tempo ramps - code cleanup

- what was i thinking?

8 years agoTempo ramps - all public TempoSection position parameters are session-relative.
nick_m [Sun, 28 Feb 2016 15:50:13 +0000 (02:50 +1100)]
Tempo ramps - all public TempoSection position parameters are session-relative.

8 years agoTempo ramps - fix messed up meter section state, audio-locked tempos ignore the bbt...
nick_m [Sun, 28 Feb 2016 12:09:02 +0000 (23:09 +1100)]
Tempo ramps - fix messed up meter section state, audio-locked tempos ignore the bbt setting in the tempo dialog for now.

8 years agoTempo ramps - comment new meter section behaviour.
nick_m [Sat, 27 Feb 2016 20:01:24 +0000 (07:01 +1100)]
Tempo ramps - comment new meter section behaviour.

8 years agoTempo ramps - fix changing to constant tempo
nick_m [Sat, 27 Feb 2016 19:26:05 +0000 (06:26 +1100)]
Tempo ramps - fix changing to constant tempo

8 years agoTempo ramps - first stab at metric marks locked to frames or beats.
nick_m [Sat, 27 Feb 2016 17:59:34 +0000 (04:59 +1100)]
Tempo ramps - first stab at metric marks locked to frames or beats.

- pretty much untested.

8 years agoTempo ramps - demystify comments a bit.
nick_m [Fri, 26 Feb 2016 02:46:06 +0000 (13:46 +1100)]
Tempo ramps - demystify comments a bit.

8 years agoTempo ramps - minor optimisation and comment clarification.
nick_m [Thu, 25 Feb 2016 20:01:37 +0000 (07:01 +1100)]
Tempo ramps - minor optimisation and comment clarification.

8 years agoTempo ramps - Remove the tick walk, store c_func, document the approach.
nick_m [Thu, 25 Feb 2016 16:10:15 +0000 (03:10 +1100)]
Tempo ramps - Remove the tick walk, store c_func, document the approach.