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 --- include/adlmidi.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/adlmidi.h') diff --git a/include/adlmidi.h b/include/adlmidi.h index 86a5715..2b68509 100644 --- a/include/adlmidi.h +++ b/include/adlmidi.h @@ -30,7 +30,7 @@ extern "C" { #define ADLMIDI_VERSION_MAJOR 1 #define ADLMIDI_VERSION_MINOR 5 -#define ADLMIDI_VERSION_PATCHLEVEL 0 +#define ADLMIDI_VERSION_PATCHLEVEL 1 #define ADLMIDI_TOSTR_I(s) #s #define ADLMIDI_TOSTR(s) ADLMIDI_TOSTR_I(s) @@ -548,6 +548,14 @@ extern ADLMIDI_DECLSPEC void adl_setScaleModulators(struct ADL_MIDIPlayer *devic */ extern ADLMIDI_DECLSPEC void adl_setFullRangeBrightness(struct ADL_MIDIPlayer *device, int fr_brightness); +/** + * @brief Enable(1) or Disable(0) the automatical arpeggio system + * + * @param device Instance of the library + * @param aaEn 0 - disabled, 1 - enabled + */ +extern ADLMIDI_DECLSPEC void adl_setAutoArpeggio(struct ADL_MIDIPlayer *device, int aaEn); + /** * @brief Enable or disable built-in loop (built-in loop supports 'loopStart' and 'loopEnd' tags to loop specific part) * @param device Instance of the library -- cgit v1.2.3