summaryrefslogtreecommitdiff
path: root/libs/ardour/location.cc
AgeCommit message (Collapse)Author
2015-04-11Fix dangling location on new location -> undo.nick_m
2015-02-18Revert "[Summary] Eliminated redundant marker update notification which lead ↵Paul Davis
to creation of huge amount of redundant session events" This reverts commit 3dde9e969c1a775c04487501dee974d261a3f955.
2015-02-18Revert "fix indentation from previous commit and previous edits"Paul Davis
This reverts commit 449c9b675d3322cd320967bb8e4842d291d22649.
2015-02-17fix indentation from previous commit and previous editsPaul Davis
2015-02-17[Summary] Eliminated redundant marker update notification which lead to ↵GZharun
creation of huge amount of redundant session events
2015-01-30If 'force' is TRUE (when using 'Location::set_start()' or ↵John Emmas
'Location::set_end()') make sure we do actually force the value to get set. This gets us around a problem when converting a session from the old (Ardour2) format - where the Session Range (start) value was getting incorrectly set if we hadn't already set the end value.
2014-12-16use new parameter to limit minimum length of any range locationPaul Davis
2014-11-05fix insane design for Location::next_available_name() so that it has no ↵Paul Davis
effective limit (other than UINT32_MAX)
2014-10-24port changes to ARDOUR::Location and ARDOUR::Locations APIs from Tracks to ↵Paul Davis
Ardour. Fixes deadlocks caused by mutex on Locations list, and clarifies the purposes and uses of the class-level and object-level change-related signals.
2014-09-19add Location::set_skip() to allow toggling of skip-functionality for a given ↵Paul Davis
Location
2014-09-19duplicate all ARDOUR::Location signals so that we have one static signal ↵Paul Davis
that identifies the subject location and one member signal that does not
2014-09-17Locations::clear_ranges() leaves punch/loop/session ranges intact if they existPaul Davis
2014-09-16Locations should listen to location changed signals, and emit its own ↵Paul Davis
changed() signal
2014-09-13Fix spurious 'You cannot put a CD marker at this location' errorColin Fletcher
Fix the spurious error that occurs when loading a session where any marker (not necessarily a CD marker) is located at 0 on the timeline.
2014-05-02changing the start (position) of a marker with a scene change needs to ↵Paul Davis
update the SceneChanger
2014-04-28merge (squash) with scenechange topic branch to provide MIDI-driven scene ↵Paul Davis
change markers
2013-01-17fix up Location::first_location_(after|before) to do the right thing when ↵Paul Davis
marks + ranges are interleaved (functions renamed) git-svn-id: svn://localhost/ardour2/branches/3.0@13869 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-02various fixes for moving markers, fixes a crash reported by tim blechmann ↵Paul Davis
and also likely #5232 and #5241 git-svn-id: svn://localhost/ardour2/branches/3.0@13754 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-07-25convert from Glib:: to Glib::Threads for all thread-related APIPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@13084 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-05possibly fix deadlocking issues with tempo map by rearranging code and ↵Paul Davis
adding RT variants for a couple of functions that would normally try to rebuild the map when necessary; instead the variants throw an exception and the RT code that called them tries to do something reasonable git-svn-id: svn://localhost/ardour2/branches/3.0@11164 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-18make Stateful::_id private and provide appropriate methods to set it, and ↵Paul Davis
use them throughout ardour git-svn-id: svn://localhost/ardour2/branches/3.0@10222 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-09-14Option to glue new markers to bars and beats (part ofCarl Hetherington
#4202). git-svn-id: svn://localhost/ardour2/branches/3.0@10087 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-06-01Fix broken whitespace. I'd apologize for the compile times if it was my ↵David Robillard
fault :D git-svn-id: svn://localhost/ardour2/branches/3.0@9654 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-05-05Re-use locations when setting location list state, so that selected ↵Carl Hetherington
locations are preserved through an undo (#3929). git-svn-id: svn://localhost/ardour2/branches/3.0@9480 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-11-26Add lots of asserts to try to track down #3553.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@8096 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-10-07Update auto loop range to match session range until it is changed by the ↵Carl Hetherington
user. Fixes #3472. git-svn-id: svn://localhost/ardour2/branches/3.0@7883 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-09-17megaopus patch #2 for today: remove nframes64_t and sframes_t from sourcePaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@7792 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-09-17megaopus commit: (1) add __STD_(LIMIT|FORMAT)_MACROS to command line flags ↵Paul Davis
for cc and c++ builds, remove them from source (2) add new Property::midi_data used by MidiRegion to signal that its (MIDI) contents have changed (3) massive switch from nframes_t to framepos_t/framecnt_t including removal of ARDOUR::max_frames (replaced by ARDOUR::max_frame{pos,cnt} (lots more to do but this set was driven by changes to the Diskstream API to use framepos_t git-svn-id: svn://localhost/ardour2/branches/3.0@7791 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-09-07Set up session range location correctly from 2.X sessions. Fixes #3435.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7750 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-09Fix compatibility of marker positional lock style with 2.X sessions.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7580 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-09Fix up state save/load of location lock/glue settings.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7579 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-09Add glue / lock buttons to the location window.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7577 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-09Allow markers to be glued to bar/beat time. Fixes #1815.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7573 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-09In marks_either_side, don't return a marker that is exactly at the position ↵Carl Hetherington
that we request. Fixes #3386. git-svn-id: svn://localhost/ardour2/branches/3.0@7571 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-15Fix setting of loop region start/end at the same time. Fixes #3314.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7418 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-06-23Update locations GUI more efficiently by avoiding a rebuild when a location ↵Carl Hetherington
is removed. Fixes #3263. git-svn-id: svn://localhost/ardour2/branches/3.0@7290 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-05-09Create the session range location as and when the session first gets some ↵Carl Hetherington
content. Allows both the beginning and end of the range to expand to contain the actual session contents. git-svn-id: svn://localhost/ardour2/branches/3.0@7087 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-25Fix setting of location start position. Fixes #3090.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@6984 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-22Fix compile warning.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@6950 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-22Clean up some location handling bits; should fix update of editor summary ↵Carl Hetherington
when session start/end is moved. git-svn-id: svn://localhost/ardour2/branches/3.0@6948 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-18Load 2.X sessions correctly with newly-arranged session start/end markers.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@6933 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-18Make the session start/end location a single location (with start and end) ↵Carl Hetherington
rather than two separate ones. Fixes #1298. git-svn-id: svn://localhost/ardour2/branches/3.0@6929 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-02-23Fix various code quality issues found by cppcheck (e.g. uninitialized ↵David Robillard
members, larger than necessary variable scope, memory leaks, etc). git-svn-id: svn://localhost/ardour2/branches/3.0@6710 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-17switch to using boost::signals2 instead of sigc++, at least for libardour. ↵Paul Davis
not finished yet, but compiles, loads sessions, records and can close a session without a crash git-svn-id: svn://localhost/ardour2/branches/3.0@6372 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-12remove using namespace sigc everywhere to ensure clarity over which ↵Paul Davis
bind/mem_fun is being used; make Config::map_parameters take a boost::function rather than a sigc::slot ; continue debugging crash caused by regionviews not tracking their Region's lifetime git-svn-id: svn://localhost/ardour2/branches/3.0@6357 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-23Clean up and simplify code to find marks before and after a position, and ↵Carl Hetherington
hence improve snap to markers so that both start and end positions of a range marker are taken into account. git-svn-id: svn://localhost/ardour2/branches/3.0@5897 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-21Fix unused parameter warnings since GCC apparently doesn't feel like ↵David Robillard
listening to -Wno-unused-parameter git-svn-id: svn://localhost/ardour2/branches/3.0@5835 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-15rework Stateful::set_state() patch to avoid default version argumentPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@5787 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-15Part 1 of loading 2.X sessions; some things work, some things don't, hacks ↵Carl Hetherington
a-plenty. LOADING 2.X SESSIONS WITH THIS COMMIT IN PLACE WILL (PROBABLY) CORRUPT THE .ardour FILE, MAKING THE SESSION UNLOADABLE ON 2.X AND LOSING INFORMATION. So don't do that unless you make a backup of the session file first. git-svn-id: svn://localhost/ardour2/branches/3.0@5786 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-14Strip trailing whitespace and fix other whitespace errors (e.g. space/tab ↵David Robillard
mixing). Whitespace changes only. Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf