Fix stretch function and sound examples

This commit is contained in:
2023-10-05 11:03:41 +02:00
parent f1525a45a3
commit 959c8a99c2
2 changed files with 6 additions and 5 deletions

View File

@ -303,7 +303,8 @@ export class SoundEvent extends AudibleEvent {
// Unit
public stretch = (beat: number) => {
this.updateValue("unit", "c");
this.updateValue("speed", 2 / beat)
this.updateValue("speed", 1 / beat)
this.updateValue("cut", beat)
return this;
}