blob: 816c8675b16012e53d189603f79f4ee3f966ffc9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import type { RetimeConfig } from "@/timeline";
import { clampRetimeRate } from "@/retime/rate";
export function buildConstantRetime({
rate,
maintainPitch = false,
}: {
rate: number;
maintainPitch?: boolean;
}): RetimeConfig {
return { rate: clampRetimeRate({ rate }), maintainPitch };
}
|