Skip to content

Commit

Permalink
Add 125% speed too
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Schürz committed Jan 6, 2025
1 parent bdb2b62 commit 81ebe04
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions packages/common/src/editor/bottomBar/PlayButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,11 @@ export class PlayButton extends CompositeDrawable {
text: 'Playback rate',
disabled: true,
}),
new MenuItem({
text: '150%',
action: () => this.editorClock.rate = 1.5,
}),
new MenuItem({
text: '100%',
action: () => this.editorClock.rate = 1,
}),
new MenuItem({
text: '75%',
action: () => this.editorClock.rate = 0.75,
}),
new MenuItem({
text: '50%',
action: () => this.editorClock.rate = 0.5,
}),
new MenuItem({
text: '25%',
action: () => this.editorClock.rate = 0.25,
}),
...[1.5, 1.25, 1, 0.75, 0.5, 0.25].map(speed =>
new MenuItem({
text: `${speed * 100}%`,
action: () => this.editorClock.rate = speed,
})),
], e);
return true;
}
Expand Down

0 comments on commit 81ebe04

Please sign in to comment.