First run at squeezeBind, ref #32

This commit is contained in:
alex 2022-04-12 10:53:22 +01:00
parent ac409965d5
commit 357b0ee467
2 changed files with 71 additions and 13 deletions

View file

@ -16,6 +16,11 @@ Fraction.prototype.wholeCycle = function () {
return new TimeSpan(this.sam(), this.nextSam());
};
// The position of a time value relative to the start of its cycle.
Fraction.prototype.cyclePos = function () {
return this.sub(this.sam());
};
Fraction.prototype.lt = function (other) {
return this.compare(other) < 0;
};