From adb13cc4581893c3893679b36df780896477f5b7 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Wed, 13 Apr 2022 18:58:47 +0200 Subject: [PATCH] add .superdirt --- packages/osc/osc.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/osc/osc.mjs b/packages/osc/osc.mjs index 9f4a3610a..330d1ec54 100644 --- a/packages/osc/osc.mjs +++ b/packages/osc/osc.mjs @@ -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(); +};