Merge pull request #1062 from daslyfe/osc_time_fix
fix OSC timing for recent scheduler updates
This commit is contained in:
commit
9348a8015a
7 changed files with 141 additions and 128 deletions
|
|
@ -61,6 +61,11 @@ export const valueToMidi = (value, fallbackValue) => {
|
|||
return fallbackValue;
|
||||
};
|
||||
|
||||
// used to schedule external event like midi and osc out
|
||||
export const getEventOffsetMs = (targetTimeSeconds, currentTimeSeconds) => {
|
||||
return (targetTimeSeconds - currentTimeSeconds) * 1000;
|
||||
};
|
||||
|
||||
/**
|
||||
* @deprecated does not appear to be referenced or invoked anywhere in the codebase
|
||||
* @noAutocomplete
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue