add .superdirt

This commit is contained in:
Felix Roos
2022-04-13 18:58:47 +02:00
parent 1ab3c16045
commit adb13cc458
+5
View File
@@ -1,5 +1,6 @@
import OSC from './osc.js';
import { Pattern } from '@strudel.cycles/core/strudel.mjs';
import { dirtify } from '@strudel.cycles/core/util.mjs';
const comm = new OSC();
comm.open();
@@ -21,3 +22,7 @@ Pattern.prototype.osc = function () {
return event.setContext({ ...event.context, onTrigger });
});
};
Pattern.prototype.superdirt = function () {
return this.withValue(dirtify).osc();
};