From c5d67c2f99a42d952396a80d6930e75a55799043 Mon Sep 17 00:00:00 2001 From: Roland Rabien Date: Fri, 28 Jun 2024 09:59:49 -0700 Subject: [PATCH] Add missing function --- CMakeLists.txt | 1 - modules/melatonin_inspector | 2 +- plugin/Source/WavetableVoice.cpp | 5 +++++ plugin/Source/WavetableVoice.h | 4 +++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41e7a77..72bbcad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,7 +178,6 @@ juce_generate_juce_header (${PLUGIN_NAME}) target_compile_definitions (${PLUGIN_NAME} PRIVATE JUCE_USE_CUSTOM_PLUGIN_STANDALONE_APP=1 - JUCE_DISPLAY_SPLASH_SCREEN=0 JUCE_COREGRAPHICS_DRAW_ASYNC=1 JUCE_MODAL_LOOPS_PERMITTED=0 JUCE_WEB_BROWSER=0 diff --git a/modules/melatonin_inspector b/modules/melatonin_inspector index b7a0f2d..f03cc2e 160000 --- a/modules/melatonin_inspector +++ b/modules/melatonin_inspector @@ -1 +1 @@ -Subproject commit b7a0f2de07ed8692963605561fe1a3793885994b +Subproject commit f03cc2e6a0aba7bb8704e79d2ac7dce212d9f50c diff --git a/plugin/Source/WavetableVoice.cpp b/plugin/Source/WavetableVoice.cpp index b4fb58f..b46a240 100644 --- a/plugin/Source/WavetableVoice.cpp +++ b/plugin/Source/WavetableVoice.cpp @@ -474,3 +474,8 @@ gin::WTOscillator::Params WavetableVoice::getLiveWTParams (int osc) p.bend = getValue (proc.oscParams[osc].bend); return p; } + +float WavetableVoice::getCurrentNote() +{ + return noteSmoother.getCurrentValue() * 127.0f; +} diff --git a/plugin/Source/WavetableVoice.h b/plugin/Source/WavetableVoice.h index 889c0cb..5a5f534 100644 --- a/plugin/Source/WavetableVoice.h +++ b/plugin/Source/WavetableVoice.h @@ -20,7 +20,9 @@ public: void noteTimbreChanged() override; void notePitchbendChanged() override; void noteKeyStateChanged() override {} - + + float getCurrentNote() override; + void setCurrentSampleRate (double newRate) override; void renderNextBlock (juce::AudioBuffer& outputBuffer, int startSample, int numSamples) override;