summaryrefslogtreecommitdiff
path: root/libs/ardour/playlist.cc
AgeCommit message (Collapse)Author
2010-11-04Paste regions in the right place. Fixes #3517.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7969 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-10-02Small cleanup.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7867 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-09-23framecnt -> framepos for extents, as I think it makes slightly more sense.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7836 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-09-21missing part of lincoln's patchPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@7819 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-09-20region list displays actual playlist use count for each region, rather than ↵Paul Davis
a GUI-based count git-svn-id: svn://localhost/ardour2/branches/3.0@7814 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-08-29(Hopefully) clarify operator= and copy construction behaviour of the ↵Carl Hetherington
Property hierarchy. Also make operator= copy the value but NOT the property ID; this stops e.g. a = b giving a the property ID of b and confusing things. Fixes some problems with save/restore of region sync position. git-svn-id: svn://localhost/ardour2/branches/3.0@7707 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-29Fix up some inconsistencies in handling of region sync points.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7706 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-26Fix crossfade undo using the stateful diff system. Fixes #3257.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7694 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-25check dependents in Playlist after moving a region to a specific layer; make ↵Paul Davis
region layering editor appear reliably; click on xfade sets clicked_routeview git-svn-id: svn://localhost/ardour2/branches/3.0@7692 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-25major chunk of the region layering editor from 2.X, fwd-ported to 3.0Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@7689 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-25Small cleanups.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7686 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-25clear_history -> clear_changes and some comments.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7685 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-25Modify StatefulDiffCommand undo record to only contain the changes in one ↵Carl Hetherington
direction, as the other direction can be inferred. Breaks session history file compatibility. git-svn-id: svn://localhost/ardour2/branches/3.0@7684 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-25Move various code up the Property / Stateful hierarchies.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7682 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-25Rename various things in the property system.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7681 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-22Move some RegionListProperty methods up to SequenceProperty.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7668 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-27Fix up gain envelope handling with region split. Fixes #3306.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7510 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-22Don't move automation to follow region when a region has only been trimmed ↵Carl Hetherington
rather than moved. git-svn-id: svn://localhost/ardour2/branches/3.0@7465 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-22When a region movement is undone, prevent the resulting movement from ↵Carl Hetherington
triggering the automation-follows-regions code. Fixes #3348. git-svn-id: svn://localhost/ardour2/branches/3.0@7464 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-16use framepos_t more clearly for partition operationPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@7425 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-07-06beat slicing patch #1 from lincoln spiteriPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@7381 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-06-28clear region history in Playlist::notify_region_added() so that it has no ↵Paul Davis
apparent history before being added to the Playlist. git-svn-id: svn://localhost/ardour2/branches/3.0@7311 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-06-28Add an EnumProperty for enumerated properties and hence make ↵Carl Hetherington
Region::position_lock_style a stateful property. git-svn-id: svn://localhost/ardour2/branches/3.0@7306 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-06-23midway snapshot of work done on managing Region & Source lifetimes ↵Paul Davis
correctly. may fix missing MIDI file bug ; save empty playlists because they may be referred to by the history file ; undo commands auto-delete when objects they refer to die (currently not commands built from XML deserialization); Sources now know how many regions are using them for something, meaning that we know if we can delete the files holding any data for the source git-svn-id: svn://localhost/ardour2/branches/3.0@7291 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-06-21fix some warnings that come from a non-debug build, some of which are ↵Paul Davis
actually errors in handling return values from boost::signal emissions git-svn-id: svn://localhost/ardour2/branches/3.0@7285 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-06-07Better-define behaviour when relayering a playlist with a single zero-length ↵Carl Hetherington
region. Fixes #3144. git-svn-id: svn://localhost/ardour2/branches/3.0@7238 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-06-06Fix signedness error.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@7234 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-05-26Remove empty MIDI regions which result from recordings made when no MIDI ↵Carl Hetherington
data is received. git-svn-id: svn://localhost/ardour2/branches/3.0@7167 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-05-19MIDI region forking, plus Playlist::regions_to_read() fix forward ported ↵Paul Davis
from 2.X. region forking requires a few cleanups git-svn-id: svn://localhost/ardour2/branches/3.0@7118 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-21Move Diskstream ownership to Track, so that Session no longer holds lists of ↵Carl Hetherington
Diskstreams. Breaks 3.0 file format again. git-svn-id: svn://localhost/ardour2/branches/3.0@6945 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-21commits 6001-6525 inclusive from 2.X applied to 3.0Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@6942 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-15forward-port from 2.X commits 5827-6000 includingPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@6914 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-07Comment format.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@6866 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-04-01No-op: rename a few variables and add/fix some comments.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@6818 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-31A few small cleanups to the property code.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@6816 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-30Move region naming stuff from Session into RegionFactory, cleaning up some ↵Carl Hetherington
vestiges of when Session had a list of regions. git-svn-id: svn://localhost/ardour2/branches/3.0@6812 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-16changes from 2.X starting in march 2009 through oct 20 2009 (5826 inclusive)Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@6761 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-06remove the session region list; GUI now represents (a relatively unfiltered ↵Paul Davis
view of) the raw region list that always contains every single region ever created git-svn-id: svn://localhost/ardour2/branches/3.0@6739 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-04prevent relaying during an undo/redo operation; remove some debug outputPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@6728 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-04goodbye to MementoCommand for playlistsPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@6726 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-02fix up start-in-source values from regions created as sections of another ↵Paul Davis
region (semantics changed as plists were introducted); remove some "optimizations" from Playlist::set_state() added to help with MementoCommand but that made undo not work correctly; make sure that Playlist::clear() notifies about regions being removed git-svn-id: svn://localhost/ardour2/branches/3.0@6722 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-02(1) stop using mangled names in history state, use demangled ones instead ↵Paul Davis
(2) fix region split so that the generated regions have the right start points in the source(s) git-svn-id: svn://localhost/ardour2/branches/3.0@6721 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-02(1) remove most uses of MementoCommand for Playlist and Region (2) move ↵Paul Davis
frozen state from Region into Stateful, renamed "suspend property changes" (3) successive changes to a Property (scalar) after clear_history() do not keep resetting the old value (fixes region trim) git-svn-id: svn://localhost/ardour2/branches/3.0@6720 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-02PBD::capitalize() and use it to for the XML node name of a ↵Paul Davis
SequenceProperty's history node git-svn-id: svn://localhost/ardour2/branches/3.0@6719 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-03-02the mega-properties/SequenceProperty patch. split is broken at present ↵Paul Davis
(right hand starts has start-in-source of zero) git-svn-id: svn://localhost/ardour2/branches/3.0@6718 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
2010-02-19add begin/end undo/redo signals so that playlist can freeze/thaw itself ↵Paul Davis
around potentially NxM region property changes; clean up debug output; don't connect streamview to Playlist::ContentsChanged because there appears to be no need for it - we catch add/remove region, and region property changes are handled by RegionView git-svn-id: svn://localhost/ardour2/branches/3.0@6702 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-02-19change PropertyChange from a bitfield into a real object, with all the many ↵Paul Davis
widespread changes that causes git-svn-id: svn://localhost/ardour2/branches/3.0@6701 d708f5d6-7413-0410-9779-e7cbd77b26cf