send delta in seconds, to match tidal/superdirt (#1323)
This commit is contained in:
parent
b64daf6284
commit
ab76b4424a
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ function connect() {
|
|||
export function parseControlsFromHap(hap, cps) {
|
||||
hap.ensureObjectValue();
|
||||
const cycle = hap.wholeOrPart().begin.valueOf();
|
||||
const delta = hap.duration.valueOf();
|
||||
const delta = hap.duration.valueOf() / cps;
|
||||
const controls = Object.assign({}, { cps, cycle, delta }, hap.value);
|
||||
// make sure n and note are numbers
|
||||
controls.n && (controls.n = parseNumeral(controls.n));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue