Skip to content

Commit

Permalink
removed parameter value update throttling
Browse files Browse the repository at this point in the history
  • Loading branch information
fde31 committed Jun 25, 2024
1 parent db6b0a5 commit 26e06a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/actions/instances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { OSCArgument, writePacket } from "osc";
import { showNotification } from "./notifications";
import { NotificationLevel } from "../models/notification";
import { oscQueryBridge } from "../controller/oscqueryBridgeController";
import throttle from "lodash.throttle";
import { PresetRecord } from "../models/preset";
import { AppSetting } from "../models/settings";
import { DataRefRecord } from "../models/dataref";
Expand Down Expand Up @@ -238,7 +237,7 @@ export const triggerInstanceMidiNoteOffEventOnRemote = (instance: InstanceStateR
oscQueryBridge.sendPacket(writePacket(message));
};

export const setInstanceParameterValueNormalizedOnRemote = throttle((instance: InstanceStateRecord, param: ParameterRecord, value: number): AppThunk =>
export const setInstanceParameterValueNormalizedOnRemote = (instance: InstanceStateRecord, param: ParameterRecord, value: number): AppThunk =>
(dispatch) => {

const message = {
Expand All @@ -251,7 +250,7 @@ export const setInstanceParameterValueNormalizedOnRemote = throttle((instance: I
oscQueryBridge.sendPacket(writePacket(message));
// optimistic local state update
dispatch(setInstance(instance.setParameterNormalizedValue(param.id, value)));
}, 100);
};

export const setInstanceDataRefValueOnRemote = (instance: InstanceStateRecord, dataref: DataRefRecord, file?: DataFileRecord): AppThunk =>
() => {
Expand Down

0 comments on commit 26e06a9

Please sign in to comment.