summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
AgeCommit message (Collapse)Author
2016-11-11remove debugging outputnick_m
2016-11-11rename Region pos_beats -> quarter_notenick_m
2016-11-11remove commented code.nick_m
2016-11-11rename Region pulse to pos_beats. use new beat distance api where required.nick_m
- add more debugging output detecting regions whose beat and frame position do not align on a playlist. this is required as a check as we have never used frame rounding on constant tempi before 8884a5723dc
2016-11-11Refactor tempo api, include quarter-note distance in frames method.nick_m
- moves frame rounding up to TempoMap, which is needed in order to calculate pulse distance without frame rounding. - the time unit for tempo is still minute, but this now also applies to meter sections. (new audio locked meter sections no longer require a frame position). - there is no longer a discontinuity in the pulse for audio-locked meter/tempi. - temporarily add debugging output in Region::set_position() to test for region beat not matching region frame.
2016-10-25Don't recalculate region beat position on session load, fix AudioTime thinko.nick_m
2016-10-18Music locked regions stay positive after tempo map change.nick_m
2016-10-16Minor cleanup (don't set pulse twice in Region::set_position()).nick_m
2016-10-09Ensure we have a region _beat for legacy sessions, set _pulse ↵nick_m
unconditionally when loading from xml.
2016-10-01Region pulse is no longer a property.nick_m
2016-09-02Use the stored beat to recalculate pulse when setting position as sub_num is ↵nick_m
irrelevent.
2016-08-31Keep region beat and pulse separated, ensure pulse is updated when setting ↵nick_m
position.
2016-08-31Add a pulse property to region.nick_m
- separates ardour beat (meter-based) and note (pulse-based) musical position.
2016-08-14Audio-locked midi region fixes.nick_m
- don't alter region frame length on tempo change or position change. - set region _start correctly (see comments) on tempo map change. - ensure audio-locked region's beat is set on tempo map change
2016-07-23Make Region's _beat a PBD::Property.nick_m
- fixes incorrect beat setting on undo for various region operations.
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2016-07-10remove reference "const int32_t&" -> const int32_t"Robin Gareus
this simplifies lua-bindings and also let's the compiler worry about constant primitive types.
2016-07-10Always set the musical position in Region::recompute_position_from_lock_style().nick_m
2016-07-10Exact beat - provide audio->music mapping for region split.nick_m
- for those not in the know, this series provides a way to remove the temporal distortion introduced when using an audio frame-based gui for music-locked objects. In short, the gui uses an audio frame representation to move objects. It displays the object using frame_at_beat(), quantizing the time value to audio frames. This is fine until the user selects that frame but expects it to be interpreted as a beat. Thus beat_at_frame() would not produce the user-expected beat (temporal quantization error of up to 0.5 audio samples). This is one method of mapping audio time to music time accurately.
2016-07-10Make some musical operations on music-locked regions operate in beats.nick_m
- use exact beats to determine frame position. - see comments in tempo.cc for more. - this hasn't been done for split yet, but dragging and trimming are supported.
2016-06-28remove debug output and add a few suggestive commentsPaul Davis
2016-06-28changes in logic used by source cleanup to avoid endless recursion in ↵Paul Davis
sessions with deeply nested/recursive compound regions. This also fixes some potentially dangerous cleanup logic related to two sources with the same name (but different paths)
2016-06-11Fix many offset errors when drawing notes in midi regions that have been edited.nick_m
- hopefully this can close bugs such as 6270 & 6793
2016-06-07Region ctor inherits position, start and beat.nick_m
2016-06-07Fix initialization of Region::_beat.nick_m
2016-06-07Region always sets position before length.nick_m
2016-06-06Consolidate notifications when MidiRegion changes length due to position change.nick_m
2016-05-27Rwbi ramps - midi regions resize when tempo map changed.nick_m
2016-05-27Tempo ramps - rename for consistency, remove some testing code, add meter ↵nick_m
based bbt->pulse conversions.
2016-05-27Tempo ramps - fix save/restore of region position_lock_style.nick_m
2016-05-27Tempo ramps - update midi regions and locations when dragging tempo.nick_m
- also make locations and regions use a double beat rather than bbt for musical position.
2016-05-07fix LocaleGuard contstructor (3dc77280)Robin Gareus
2016-05-05we always only use the "C" locale when saving.Robin Gareus
2016-05-04OMNIBUS COMMIT: prefer const XMLNode::property method (and provide a real one)Paul Davis
2016-05-01various transient-detection fixes (split region, trim, move, undo,..)Robin Gareus
* all API calls use session-time (allow region-lists) * per-region transients are separated in - Onset (Rhythm Rodent, Aubio) - User-added - internal/source (QM), used as fallback for next/prev (read-only)
2016-03-30Fix #5884: errors when using timestretch toolPavel Potocek
2016-02-22remove all trace of SAE from source code.Paul Davis
This had become incoherent over time, and posed a development hazard and burden going forward
2015-11-14Ardour::Region - add method required to fix #6673.nick_m
2015-10-08fix region "valid-transient" propertyRobin Gareus
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-01-19use C locale, because POSIX locale is not supported on windows, and ↵Ben Loftis
operation is undefined. C works on all platforms
2014-11-18Fix Region::verify_length() so it actually does something.David Robillard
2013-09-14fix merge conflicts with masterPaul Davis
2013-08-15check master sources when determining whether a region uses a source. should ↵Paul Davis
fix #5618
2013-04-24many pervasive changes primarily related to waveform drawing, particular ↵Paul Davis
content-dragging, colors, and more
2013-04-11enable videotimeline by defaultRobin Gareus
2013-03-13videotimlineRobin Gareus
squashed 694 commits from http://gareus.org/gitweb/?p=ardour3.git
2013-03-03fix region fade/env XML save - fixes #5353Robin Gareus
In rev 12740 FadeIn/Out became stateful properties which are automatically saved when Region:state() calls Stateful::add_properties(). AudioRegion::state() called Region:state() AND Stateful::add_properties() which added a 2nd redundant copy to the XML. Finally AudioRegion::state() adds custom serialization for Fades. Furthermore this custom serialization also used names which did not match the Property name. git-svn-id: svn://localhost/ardour2/branches/3.0@14117 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-04allow region list selection of whole file regions to select every instance ↵Paul Davis
of a region that has any source relationship with that whole file region (from a logic feature that came up while writing the manual) git-svn-id: svn://localhost/ardour2/branches/3.0@13779 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