Switch to omod

This commit is contained in:
Aria 2025-12-05 13:39:52 -06:00
parent 32924b3fcf
commit ad43259353
4 changed files with 52 additions and 100 deletions

View file

@ -111,13 +111,11 @@ export function getEnvelope(audioContext, properties = {}) {
export function getLfo(audioContext, properties = {}) {
// Extract some params we need for deriving other params
const { begin, shape = 0, ...props } = properties;
const { shape = 0, ...props } = properties;
const lfoprops = {
time: begin,
shape: getModulationShapeInput(shape),
...props,
};
return getWorklet(audioContext, 'lfo-processor', lfoprops);
}