gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 00bd85fa78e53b8adac7990dfa6290bbb9626485
parent 1fd97651035b3fe4b5ecefe8bc98b5abb257e19f
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat, 15 Jun 2024 01:46:35 +0200

add waveform changed event

Diffstat:
Msource/xtJucePlugin/weData.cpp | 2++
Msource/xtJucePlugin/weData.h | 3+++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/source/xtJucePlugin/weData.cpp b/source/xtJucePlugin/weData.cpp @@ -95,6 +95,7 @@ namespace xtJucePlugin if(_index < m_romWaves.size()) { m_romWaves[_index] = _data; + onWaveChanged(_index); return true; } if(_index < xt::Wave::g_firstRamWaveIndex) @@ -106,6 +107,7 @@ namespace xtJucePlugin return false; m_ramWaves[_index] = _data; + onWaveChanged(_index); return true; } } diff --git a/source/xtJucePlugin/weData.h b/source/xtJucePlugin/weData.h @@ -10,6 +10,7 @@ #include "../xtLib/xtMidiTypes.h" #include "../jucePluginLib/midipacket.h" +#include "../jucePluginLib/event.h" class Controller; @@ -20,6 +21,8 @@ namespace xtJucePlugin public: static constexpr uint32_t InvalidWaveIndex = std::numeric_limits<uint32_t>::max(); + pluginLib::Event<uint32_t> onWaveChanged; + WaveEditorData(Controller& _controller); void requestData();