Merge branch 'tidalcycles:main' into repl_sync

This commit is contained in:
Jade (Rose) Rowland 2024-02-04 13:29:52 -05:00 • committed by GitHub
commit e5ec62695c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
198 changed files with 8854 additions and 4409 deletions

View file

@ -136,7 +136,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.whole?.end >= phase - lookbehind - lookahead)
// add new haps with onset (think right edge bars scrolling in)
.concat(haps.filter((h) => h.hasOnset()));
const time = phase - lookahead;