mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 21:58:37 +00:00
formatting
This commit is contained in:
parent
bf7c8cebc4
commit
723b239fda
@ -12,7 +12,7 @@ Pattern.prototype.osc = function () {
|
||||
const onTrigger = (time, event) => {
|
||||
const keyvals = Object.entries(event.value).flat();
|
||||
const ts = Math.floor(startTime + ((time + latency) * 1000));
|
||||
const message = new OSC.Message('/dirt/play',...keyvals);
|
||||
const message = new OSC.Message('/dirt/play', ...keyvals);
|
||||
const bundle = new OSC.Bundle([message], ts);
|
||||
bundle.timestamp(ts); // workaround for https://github.com/adzialocha/osc-js/issues/60
|
||||
comm.send(bundle);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user