- clip now works like legato in tidal

- supports floats
- hap.duration now respects clip value
- hap.endClipped is now end*clip
- visualizations show clipped length
- clip(0) will now be silence
This commit is contained in:
Felix Roos 2023-06-12 22:39:32 +02:00
parent e4a35fdd72
commit 8c9e06c329
5 changed files with 11 additions and 7 deletions

View file

@ -133,7 +133,7 @@ export class StrudelMirror {
this.code = initialCode;
this.drawer = new Drawer((haps, time) => {
const currentFrame = haps.filter((hap) => time >= hap.whole.begin && time <= hap.whole.end);
const currentFrame = haps.filter((hap) => time >= hap.whole.begin && time <= hap.endClipped);
this.highlight(currentFrame);
onDraw?.(haps, time, currentFrame);
}, drawTime);