mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-20 10:08:29 +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 onTrigger = (time, event) => {
|
||||||
const keyvals = Object.entries(event.value).flat();
|
const keyvals = Object.entries(event.value).flat();
|
||||||
const ts = Math.floor(startTime + ((time + latency) * 1000));
|
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);
|
const bundle = new OSC.Bundle([message], ts);
|
||||||
bundle.timestamp(ts); // workaround for https://github.com/adzialocha/osc-js/issues/60
|
bundle.timestamp(ts); // workaround for https://github.com/adzialocha/osc-js/issues/60
|
||||||
comm.send(bundle);
|
comm.send(bundle);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user