mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-21 10:38:37 +00:00
another hap time introspection method
This commit is contained in:
parent
04a0952a22
commit
060d2cfe2b
@ -66,6 +66,9 @@ export class Hap {
|
|||||||
isInNearFuture(margin, currentTime) {
|
isInNearFuture(margin, currentTime) {
|
||||||
return currentTime < this.whole.begin && currentTime > this.whole.begin - margin;
|
return currentTime < this.whole.begin && currentTime > this.whole.begin - margin;
|
||||||
}
|
}
|
||||||
|
isWithinTime(min, max) {
|
||||||
|
return this.whole.begin <= max && this.endClipped >= min;
|
||||||
|
}
|
||||||
|
|
||||||
wholeOrPart() {
|
wholeOrPart() {
|
||||||
return this.whole ? this.whole : this.part;
|
return this.whole ? this.whole : this.part;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user