Skip to content

Commit

Permalink
Add missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
FigBug committed Jun 28, 2024
1 parent 4e58846 commit c5d67c2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/melatonin_inspector
Submodule melatonin_inspector updated 40 files
+20 −3 .github/workflows/ci.yml
+ Assets/lock-off.png
+ Assets/lock-on.png
+ Assets/move-off.png
+ Assets/tab-off.png
+ Assets/tab-on.png
+10 −3 CMakeLists.txt
+13 −1 LatestCompiledAssets/BinaryData1.cpp
+9 −368 LatestCompiledAssets/BinaryData11.cpp
+9 −17 LatestCompiledAssets/BinaryData12.cpp
+368 −16 LatestCompiledAssets/BinaryData13.cpp
+18 −15 LatestCompiledAssets/BinaryData14.cpp
+16 −22 LatestCompiledAssets/BinaryData15.cpp
+15 −22 LatestCompiledAssets/BinaryData16.cpp
+22 −14 LatestCompiledAssets/BinaryData17.cpp
+22 −14 LatestCompiledAssets/BinaryData18.cpp
+24 −0 LatestCompiledAssets/BinaryData19.cpp
+23 −0 LatestCompiledAssets/BinaryData20.cpp
+28 −0 LatestCompiledAssets/BinaryData21.cpp
+28 −0 LatestCompiledAssets/BinaryData22.cpp
+14 −2 LatestCompiledAssets/InspectorBinaryData.h
+12 −9 copy_cmake_assets.rb
+109 −1 melatonin/component_model.h
+62 −0 melatonin/components/accesibility.h
+13 −1 melatonin/components/box_model.h
+4 −0 melatonin/components/collapsable_panel.h
+12 −0 melatonin/components/color_picker.h
+3 −3 melatonin/components/colour_property_component.h
+4 −0 melatonin/components/component_tree_view_item.h
+4 −0 melatonin/components/fps_meter.h
+46 −11 melatonin/components/overlay.h
+4 −0 melatonin/components/preview.h
+15 −1 melatonin/components/properties.h
+5 −0 melatonin/helpers/component_helpers.h
+1 −0 melatonin/helpers/misc.h
+24 −1 melatonin/helpers/overlay_mouse_listener.h
+49 −11 melatonin/inspector_component.h
+4 −0 melatonin/lookandfeel.h
+7 −1 melatonin_inspector.cpp
+105 −19 melatonin_inspector.h
5 changes: 5 additions & 0 deletions plugin/Source/WavetableVoice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
4 changes: 3 additions & 1 deletion plugin/Source/WavetableVoice.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ class WavetableVoice : public gin::SynthesiserVoice,
void noteTimbreChanged() override;
void notePitchbendChanged() override;
void noteKeyStateChanged() override {}


float getCurrentNote() override;

void setCurrentSampleRate (double newRate) override;

void renderNextBlock (juce::AudioBuffer<float>& outputBuffer, int startSample, int numSamples) override;
Expand Down

0 comments on commit c5d67c2

Please sign in to comment.