aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2022-06-16 20:56:35 +0300
committerWohlstand <admin@wohlnet.ru>2022-06-16 20:56:35 +0300
commit0980abf45c275d2a46245e1b1d3da30e56975970 (patch)
tree998658e696992b99a46a0f191f99396fb63cf6a9 /src/adlmidi.cpp
parente3bab473baf2c28bf9e8731f2a1af2e1acb5bfb0 (diff)
downloadlibADLMIDI-0980abf45c275d2a46245e1b1d3da30e56975970.tar.gz
libADLMIDI-0980abf45c275d2a46245e1b1d3da30e56975970.tar.bz2
libADLMIDI-0980abf45c275d2a46245e1b1d3da30e56975970.zip
Disable automatic arpeggio by default
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index 21cfbc9..54d839b 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -560,6 +560,15 @@ ADLMIDI_EXPORT void adl_setAutoArpeggio(ADL_MIDIPlayer *device, int aaEn)
play->m_setup.enableAutoArpeggio = (aaEn != 0);
}
+ADLMIDI_EXPORT int adl_getAutoArpeggio(ADL_MIDIPlayer *device)
+{
+ if(!device)
+ return 0;
+ MidiPlayer *play = GET_MIDI_PLAYER(device);
+ assert(play);
+ return play->m_setup.enableAutoArpeggio ? 1 : 0;
+}
+
ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn)
{
#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER