From fffe531b595817509c8ed6475c9ff0aaec9bb748 Mon Sep 17 00:00:00 2001 From: Takeshi Yokemura Date: Sun, 16 May 2021 19:21:07 +0900 Subject: [PATCH] Defined mono mode parameters --- Source/ChoiceComponent.cpp | 2 +- Source/PluginProcessor.cpp | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Source/ChoiceComponent.cpp b/Source/ChoiceComponent.cpp index 7bc6d42..17d1396 100644 --- a/Source/ChoiceComponent.cpp +++ b/Source/ChoiceComponent.cpp @@ -115,7 +115,7 @@ void ChoiceComponent::comboBoxChanged (ComboBox* comboBoxThatHasChanged) if (comboBoxThatHasChanged == comboBox.get()) { //[UserComboBoxCode_comboBox] -- add your combo box handling code here.. - printf ("value = %d\n", comboBoxThatHasChanged->getSelectedId()); + // printf ("value = %d\n", comboBoxThatHasChanged->getSelectedId()); //[/UserComboBoxCode_comboBox] } diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 270ea3b..9ebd447 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -65,11 +65,19 @@ Magical8bitPlug2AudioProcessor::Magical8bitPlug2AudioProcessor() 0.5f), //skew 0.0f), //default // - // Arpeggio + // Monophonic // - std::make_unique ("isArpeggioEnabled_raw", "Enabled", false), - std::make_unique ("arpeggioTime", "Time", 0.0f, 0.3f, 0.033f), + std::make_unique ("monophonicBehavior", "Behavior", StringArray ({"Legato", "Arpeggio Up", "Arpeggio Down", "Non-legato"}), 0), + std::make_unique ("arpeggioIntervalType", "Interval", StringArray ({"1frame", "2frames", "3frames", "96th", "64th", "48th", "32th", "24th", "Slider"}), 0), + std::make_unique ("arpeggioIntervalSliderValue", //ID + "Interval", //name + NormalisableRange (0.001f, //min + 0.3f, //max + 0.001f, //step + 0.5f), //skew + 0.001f), //default std::make_unique ("arpeggioDirection", "Direction", StringArray ({"up", "down"}), 0), + std::make_unique ("portamentoTime", "Portamento Time", 0.0f, 1.0f, 0.0f), // // Bend //