format
This commit is contained in:
parent
62d4f84e69
commit
813cc6c190
1 changed files with 4 additions and 4 deletions
|
|
@ -2028,9 +2028,9 @@ export const { fastGap, fastgap } = register(['fastGap', 'fastgap'], function (f
|
||||||
const newWhole = !hap.whole
|
const newWhole = !hap.whole
|
||||||
? undefined
|
? undefined
|
||||||
: new TimeSpan(
|
: new TimeSpan(
|
||||||
newPart.begin.sub(begin.sub(hap.whole.begin).div(factor)),
|
newPart.begin.sub(begin.sub(hap.whole.begin).div(factor)),
|
||||||
newPart.end.add(hap.whole.end.sub(end).div(factor)),
|
newPart.end.add(hap.whole.end.sub(end).div(factor)),
|
||||||
);
|
);
|
||||||
return new Hap(newWhole, newPart, hap.value, hap.context);
|
return new Hap(newWhole, newPart, hap.value, hap.context);
|
||||||
};
|
};
|
||||||
return pat.withQuerySpanMaybe(qf).withHap(ef).splitQueries();
|
return pat.withQuerySpanMaybe(qf).withHap(ef).splitQueries();
|
||||||
|
|
@ -3361,7 +3361,7 @@ export const shrinklist = (amount, pat) => pat.shrinklist(amount);
|
||||||
|
|
||||||
Pattern.prototype.growlist = function (amount) {
|
Pattern.prototype.growlist = function (amount) {
|
||||||
return this.shrinklist(amount).reverse();
|
return this.shrinklist(amount).reverse();
|
||||||
}
|
};
|
||||||
export const growlist = (amount, pat) => pat.growlist(amount);
|
export const growlist = (amount, pat) => pat.growlist(amount);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue