Parity with other LFO (sync and dcoffset)

This commit is contained in:
Aria 2025-12-13 15:08:48 -06:00
parent ef2ee0969a
commit 11e3da0552
2 changed files with 3 additions and 2 deletions

View file

@ -132,10 +132,11 @@ export function getLfo(audioContext, begin, end, properties = {}) {
}
export function getCustomLfo(audioContext, properties = {}) {
// Extract some params we need for deriving other params
// Default / process certain params
const { shape = 0, ...props } = properties;
const lfoprops = {
shape: getModulationShapeInput(shape),
dcoffset: -0.5,
...props,
};
return getWorklet(audioContext, 'lfo-processor', lfoprops);