refactor: remove first param of all onTrigger calls
This commit is contained in:
parent
46fe6d3c4d
commit
e3680b96de
13 changed files with 15 additions and 41 deletions
|
|
@ -6,7 +6,7 @@ const OFF_MESSAGE = 0x80;
|
|||
const CC_MESSAGE = 0xb0;
|
||||
|
||||
Pattern.prototype.midi = function (output) {
|
||||
return this.onTrigger((time_deprecate, hap, currentTime, cps, targetTime) => {
|
||||
return this.onTrigger((hap, currentTime, cps, targetTime) => {
|
||||
let { note, nrpnn, nrpv, ccn, ccv, velocity = 0.9, gain = 1 } = hap.value;
|
||||
//magic number to get audio engine to line up, can probably be calculated somehow
|
||||
const latencyMs = 34;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { Invoke } from './utils.mjs';
|
|||
|
||||
const collator = new ClockCollator({});
|
||||
|
||||
export async function oscTriggerTauri(t_deprecate, hap, currentTime, cps = 1, targetTime) {
|
||||
export async function oscTriggerTauri(hap, currentTime, cps = 1, targetTime) {
|
||||
const controls = parseControlsFromHap(hap, cps);
|
||||
const params = [];
|
||||
const timestamp = collator.calculateTimestamp(currentTime, targetTime);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue