This commit is contained in:
Jade (Rose) Rowland
2025-07-20 23:26:17 -04:00
parent dd04d49c75
commit 75b6f59212
+16
View File
@@ -363,6 +363,22 @@ export function getLfo(audioContext, begin, end, properties = {}) {
});
}
// export function getLfo(audioContext, time, end, properties = {}) {
// return getWorklet(audioContext, 'lfo-processor', {
// frequency: 1,
// depth: 1,
// skew: 0,
// phaseoffset: 0,
// time,
// begin: time,
// end,
// shape: 1,
// dcoffset: -0.5,
// ...properties,
// });
// }
export function getSyncedLfo(audioContext, time, end, cps, cycle, properties = {}) {
const frequency = cycle / cps;