fix
This commit is contained in:
parent
dd04d49c75
commit
75b6f59212
1 changed files with 16 additions and 0 deletions
|
|
@ -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 = {}) {
|
export function getSyncedLfo(audioContext, time, end, cps, cycle, properties = {}) {
|
||||||
const frequency = cycle / cps;
|
const frequency = cycle / cps;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue