Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit ab76b44

Browse files
authored
send delta in seconds, to match tidal/superdirt (#1323)
1 parent b64daf6 commit ab76b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/osc/osc.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function connect() {
3737
export function parseControlsFromHap(hap, cps) {
3838
hap.ensureObjectValue();
3939
const cycle = hap.wholeOrPart().begin.valueOf();
40-
const delta = hap.duration.valueOf();
40+
const delta = hap.duration.valueOf() / cps;
4141
const controls = Object.assign({}, { cps, cycle, delta }, hap.value);
4242
// make sure n and note are numbers
4343
controls.n && (controls.n = parseNumeral(controls.n));

0 commit comments

Comments
 (0)