From 755e2dcbd25d231f823f656bc383948a2edd5fb4 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Fri, 25 Feb 2022 16:26:47 +0100 Subject: [PATCH] comment out logging + add pipe for legacy... --- repl/src/useRepl.ts | 2 +- strudel.mjs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/repl/src/useRepl.ts b/repl/src/useRepl.ts index e16eb331..91277907 100644 --- a/repl/src/useRepl.ts +++ b/repl/src/useRepl.ts @@ -47,7 +47,7 @@ function useRepl({ tune, defaultSynth, autolink = true, onEvent }: any) { // logs events of cycle const logCycle = (_events: any, cycle: any) => { if (_events.length) { - pushLog(`# cycle ${cycle}\n` + _events.map((e: any) => e.show()).join('\n')); + //pushLog(`# cycle ${cycle}\n` + _events.map((e: any) => e.show()).join('\n')); } }; // cycle hook to control scheduling diff --git a/strudel.mjs b/strudel.mjs index 5fc4adf2..bf3881c5 100644 --- a/strudel.mjs +++ b/strudel.mjs @@ -636,6 +636,9 @@ class Pattern { edit(...funcs) { return stack(...funcs.map(func => func(this))); } + pipe(func) { + return func(this); + } _bypass(on) { on = Boolean(parseInt(on));