formatting

This commit is contained in:
alex 2022-04-01 23:15:39 +01:00
parent bf7c8cebc4
commit 723b239fda

View File

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