access pitch modulation through function

This commit is contained in:
Christopher Herb
2023-07-10 17:25:50 +02:00
parent bc213362f0
commit f954c5b47c
2 changed files with 9 additions and 4 deletions

View File

@@ -137,7 +137,7 @@ private:
note_off(event);
break;
case midi_event_type::pitch_wheel:
access([&event](t_voice& voice) { voice.pitch_mod = event.data; });
access([&event](t_voice& voice) { voice.modulate_pitch(event.data); });
break;
default:
break;