Skip to content

Commit 9f32c4d

Browse files
author
dogatech
committed
fix volume control when using single value
1 parent 9f98789 commit 9f32c4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fe/src/search-toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ class SearchToolbar extends AlertsMixin(BpmMixin(QueryMixin(SearchMixin(SearchOp
411411
midiManager.registerInput(
412412
this.settings.getString('midi.volume.value'),
413413
e => {
414-
const value = e.rawValue;
414+
const value = e.rawValue >= 1 ? e.rawValue / 127 : e.rawValue;
415415
let exp = Number(this.settings.getString('midi.volume.exponentialFactor'));
416416
let linear = Number(this.settings.getString('midi.volume.linearFactor'));
417417
// 0.93*x^1/2.5 looks to match the closest curve,

0 commit comments

Comments
 (0)