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
+2 -1
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);
+1 -1
View File
@@ -451,7 +451,7 @@ function connectLFO(idx, params, nodeTracker) {
const depthValue = depthabs != null ? depthabs : depth * currentValue;
const modParams = {
...filteredParams,
frequency: sync !== undefined ? sync / cps : rate,
frequency: sync !== undefined ? sync * cps : rate,
time: cycle / cps,
depth: depthValue,
min,