refactor: duration is now a regular control
This commit is contained in:
parent
f779e81993
commit
eb93a6c149
6 changed files with 26 additions and 13 deletions
|
|
@ -134,7 +134,7 @@ export class Drawer {
|
|||
this.lastFrame = phase;
|
||||
this.visibleHaps = (this.visibleHaps || [])
|
||||
// filter out haps that are too far in the past (think left edge of screen for pianoroll)
|
||||
.filter((h) => h.whole?.end >= phase - lookbehind - lookahead)
|
||||
.filter((h) => h.endClipped >= phase - lookbehind - lookahead)
|
||||
// add new haps with onset (think right edge bars scrolling in)
|
||||
.concat(haps.filter((h) => h.hasOnset()));
|
||||
const time = phase - lookahead;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue