From c375ab993e3eb4c04e5407580c03891d3c30baf8 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sun, 24 Jan 2021 21:40:00 +0300 Subject: Added an ability to disable auto-arpeggio Backported from libOPNMIDI --- src/adlmidi.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/adlmidi.cpp') diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 55d9b05..c62c2cb 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -551,6 +551,15 @@ ADLMIDI_EXPORT void adl_setFullRangeBrightness(struct ADL_MIDIPlayer *device, in play->m_setup.fullRangeBrightnessCC74 = (fr_brightness != 0); } +ADLMIDI_EXPORT void adl_setAutoArpeggio(ADL_MIDIPlayer *device, int aaEn) +{ + if(!device) + return; + MidiPlayer *play = GET_MIDI_PLAYER(device); + assert(play); + play->m_setup.enableAutoArpeggio = (aaEn != 0); +} + ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn) { #ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER -- cgit v1.2.3