Merge pull request #1062 from daslyfe/osc_time_fix

fix OSC timing for recent scheduler updates
This commit is contained in:
Jade (Rose) Rowland 2024-04-21 17:57:57 -04:00 committed by GitHub
commit 9348a8015a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 141 additions and 128 deletions

View file

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