diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-09-06 05:31:39 +0200 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-09-06 10:22:30 +0200 |
commit | 34ac11d4e79cef67596ad30dfa9df4f9586641aa (patch) | |
tree | e7a5ac0232ca797487cc5be4c953b8d2bc49ab73 /src/adlmidi.cpp | |
parent | 99722564db119bc38945236b0467f2cac9b8deaf (diff) | |
download | libADLMIDI-34ac11d4e79cef67596ad30dfa9df4f9586641aa.tar.gz libADLMIDI-34ac11d4e79cef67596ad30dfa9df4f9586641aa.tar.bz2 libADLMIDI-34ac11d4e79cef67596ad30dfa9df4f9586641aa.zip |
access into global chip settings
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r-- | src/adlmidi.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 26a21e4..2d7b672 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -403,6 +403,13 @@ ADLMIDI_EXPORT void adl_setHVibrato(ADL_MIDIPlayer *device, int hvibro) play->m_synth.commitDeepFlags(); } +ADLMIDI_EXPORT int adl_getHVibrato(struct ADL_MIDIPlayer *device) +{ + if(!device) return -1; + MidiPlayer *play = GET_MIDI_PLAYER(device); + return play->m_synth.m_deepVibratoMode; +} + ADLMIDI_EXPORT void adl_setHTremolo(ADL_MIDIPlayer *device, int htremo) { if(!device) return; @@ -414,6 +421,13 @@ ADLMIDI_EXPORT void adl_setHTremolo(ADL_MIDIPlayer *device, int htremo) play->m_synth.commitDeepFlags(); } +ADLMIDI_EXPORT int adl_getHTremolo(struct ADL_MIDIPlayer *device) +{ + if(!device) return -1; + MidiPlayer *play = GET_MIDI_PLAYER(device); + return play->m_synth.m_deepTremoloMode; +} + ADLMIDI_EXPORT void adl_setScaleModulators(ADL_MIDIPlayer *device, int smod) { if(!device) @@ -490,6 +504,16 @@ ADLMIDI_EXPORT void adl_setVolumeRangeModel(struct ADL_MIDIPlayer *device, int v play->m_synth.setVolumeScaleModel(static_cast<ADLMIDI_VolumeModels>(volumeModel)); } +ADLMIDI_EXPORT int adl_getVolumeRangeModel(struct ADL_MIDIPlayer *device) +{ + if(!device) + return -1; + MidiPlayer *play = GET_MIDI_PLAYER(device); + if(!play) + return -1; + return play->m_synth.getVolumeScaleModel(); +} + ADLMIDI_EXPORT int adl_openBankFile(struct ADL_MIDIPlayer *device, const char *filePath) { if(device && device->adl_midiPlayer) |