- 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:
parent
e4a35fdd72
commit
8c9e06c329
5 changed files with 11 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue