mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
VST3: fix pitchbend range
This commit is contained in:
parent
751db481a6
commit
6a780f9cbc
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ VST3PI::evoral_to_vst3 (Vst::Event& e, Evoral::Event<samplepos_t> const& ev, int
|
|||
case MIDI_CMD_BENDER:
|
||||
if (midi_controller (bus, channel, Vst::kPitchBend, id)) {
|
||||
uint32_t m14 = (data2 << 7) | data1;
|
||||
set_parameter_by_id (id, m14 / 127.f, ev.time ());
|
||||
set_parameter_by_id (id, m14 / 16383.f, ev.time ());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue