mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 13:08:28 +00:00
comment out logging + add pipe for legacy...
This commit is contained in:
parent
8bf7a6ba6e
commit
755e2dcbd2
@ -47,7 +47,7 @@ function useRepl({ tune, defaultSynth, autolink = true, onEvent }: any) {
|
|||||||
// logs events of cycle
|
// logs events of cycle
|
||||||
const logCycle = (_events: any, cycle: any) => {
|
const logCycle = (_events: any, cycle: any) => {
|
||||||
if (_events.length) {
|
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
|
// cycle hook to control scheduling
|
||||||
|
|||||||
@ -636,6 +636,9 @@ class Pattern {
|
|||||||
edit(...funcs) {
|
edit(...funcs) {
|
||||||
return stack(...funcs.map(func => func(this)));
|
return stack(...funcs.map(func => func(this)));
|
||||||
}
|
}
|
||||||
|
pipe(func) {
|
||||||
|
return func(this);
|
||||||
|
}
|
||||||
|
|
||||||
_bypass(on) {
|
_bypass(on) {
|
||||||
on = Boolean(parseInt(on));
|
on = Boolean(parseInt(on));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user