comment out logging + add pipe for legacy...

This commit is contained in:
Felix Roos 2022-02-25 16:26:47 +01:00
parent 8bf7a6ba6e
commit 755e2dcbd2
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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));