load worklets on startup
This commit is contained in:
parent
de4726ec8d
commit
acf339ad13
1 changed files with 7 additions and 6 deletions
|
|
@ -147,12 +147,13 @@ function getWorklet(ac, processor, params) {
|
|||
return node;
|
||||
}
|
||||
|
||||
Pattern.prototype.out = function () {
|
||||
try {
|
||||
loadWorklets();
|
||||
} catch (err) {
|
||||
console.warn('could not load AudioWorklet effects coarse, crush and shape', err);
|
||||
}
|
||||
|
||||
Pattern.prototype.out = function () {
|
||||
return this.onTrigger(async (t, hap, ct, cps) => {
|
||||
const hapDuration = hap.duration / cps;
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue