Fix Clip Creation Quantization in Song Editor (#7763)
Previously, clicking on a track or dragging in a sample would always create a clip on the closest/previous bar, no matter what the Song Editor's snap size was. This fixes that issue by using the Song Editor's quantization when placing new clips, so for example if the snap size is 1/4 bar, the clip will be added at the closest/previous 1/4 bar mark.
This commit is contained in:
@@ -70,7 +70,7 @@ public:
|
||||
TimePos( const bar_t bar, const tick_t ticks );
|
||||
TimePos( const tick_t ticks = 0 );
|
||||
|
||||
TimePos quantize(float) const;
|
||||
TimePos quantize(float bars, bool forceRoundDown = false) const;
|
||||
TimePos toAbsoluteBar() const { return getBar() * s_ticksPerBar; }
|
||||
|
||||
TimePos& operator+=(const TimePos& time)
|
||||
|
||||
Reference in New Issue
Block a user