From 1ceefd9d13e6713870d6cb3ea77ffcc2138f7293 Mon Sep 17 00:00:00 2001 From: George Reales Date: Sun, 1 Sep 2019 19:02:11 +0200 Subject: [PATCH 1/3] Fixed unsorted bank files. --- Source/PluginEditor.cpp | 8 ++++---- Source/PluginProcessor.cpp | 12 ++++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 8615fba..1966239 100755 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -499,7 +499,7 @@ void ObxdAudioProcessorEditor::sliderValueChanged (Slider* c) handleSParam(lfoAmt1Knob,LFO1AMT) handleSParam(lfoAmt2Knob,LFO2AMT) - handleSParam(pan1Knob,PAN1) + handleSParam(pan1Knob,PAN1) handleSParam(pan2Knob,PAN2) handleSParam(pan3Knob,PAN3) handleSParam(pan4Knob,PAN4) @@ -645,7 +645,7 @@ void ObxdAudioProcessorEditor::mouseUp(const MouseEvent& e) DirectoryIterator it(getFilter()->getSkinFolder(), false, "*", File::findDirectories); while (it.next()) { - skins.addUsingDefaultSort(it.getFile());r + skins.addUsingDefaultSort(it.getFile()); } for (int i = 0; i < skins.size(); ++i) @@ -659,8 +659,8 @@ void ObxdAudioProcessorEditor::mouseUp(const MouseEvent& e) int bankStart = 1000; { - const String currentBank = getFilter()->getCurrentBankFile().getFileName(); - + const String currentBank = getFilter()->getCurrentBankFile().getFileName(); + for (int i = 0; i < banks.size(); ++i) { const File bank = banks.getUnchecked(i); diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index b22f670..cba424f 100755 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -491,7 +491,7 @@ const String ObxdAudioProcessor::getParameterName (int index) case FREL: return S("FilterRelease"); } - return {}; + return {}; } const String ObxdAudioProcessor::getParameterText (int index) @@ -752,7 +752,7 @@ void ObxdAudioProcessor::getStateInformation (MemoryBlock& destData) copyXmlToBinary(xmlState,destData); } -/* + void ObxdAudioProcessor::setStateInformation (const void* data, int sizeInBytes) { if (XmlElement* const xmlState = getXmlFromBinary(data,sizeInBytes)) @@ -782,6 +782,8 @@ void ObxdAudioProcessor::setStateInformation (const void* data, int sizeInBytes) } setCurrentProgram(xmlState->getIntAttribute(S("currentProgram"), 0)); + + delete xmlState; } } @@ -799,9 +801,11 @@ void ObxdAudioProcessor::setCurrentProgramStateInformation(const void* data,int programs.currentProgramPtr->name = e->getStringAttribute(S("programName"), S("Default")); setCurrentProgram(programs.currentProgram); + + delete e; } } -*/ + void ObxdAudioProcessor::getCurrentProgramStateInformation(MemoryBlock& destData) { XmlElement xmlState = XmlElement("Datsounds"); @@ -941,7 +945,7 @@ void ObxdAudioProcessor::scanAndUpdateBanks() DirectoryIterator it(getBanksFolder(), false, "*.fxb", File::findFiles); while (it.next()) { - bankFiles.addUsingDefaultSort(it.getFile()); + bankFiles.addUsingDefaultSort(it.getFile()); } } From 7ea0993dfb6cce8018240d7baeeb8f673dbfc95a Mon Sep 17 00:00:00 2001 From: George Reales Date: Sun, 1 Sep 2019 19:08:34 +0200 Subject: [PATCH 2/3] Code cleanup --- Source/PluginEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 1966239..d20331b 100755 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -499,7 +499,7 @@ void ObxdAudioProcessorEditor::sliderValueChanged (Slider* c) handleSParam(lfoAmt1Knob,LFO1AMT) handleSParam(lfoAmt2Knob,LFO2AMT) - handleSParam(pan1Knob,PAN1) + handleSParam(pan1Knob,PAN1) handleSParam(pan2Knob,PAN2) handleSParam(pan3Knob,PAN3) handleSParam(pan4Knob,PAN4) From 6d0fe258a1369be8b249e17b74f0ff15ab5237ff Mon Sep 17 00:00:00 2001 From: George Reales Date: Sun, 1 Sep 2019 20:33:06 +0200 Subject: [PATCH 3/3] Fixes Adding 32 voices broke compatibility with previous release banks and presets. Code had to be reverted back to 8 voice handling. Projucer project is now correctly configured for Linux and Windows --- OB-Xd.jucer | 7 ++++--- Source/Engine/Motherboard.h | 16 +++++++--------- Source/Engine/SynthEngine.h | 4 ++-- Source/Images/voices.png | Bin 5936 -> 3496 bytes Source/PluginEditor.cpp | 20 ++++++++++++++++---- 5 files changed, 29 insertions(+), 18 deletions(-) diff --git a/OB-Xd.jucer b/OB-Xd.jucer index ea27bba..c8892e9 100644 --- a/OB-Xd.jucer +++ b/OB-Xd.jucer @@ -90,7 +90,8 @@ - + @@ -140,8 +141,8 @@ vst3Folder="modules/vstsdk3"> - - + + diff --git a/Source/Engine/Motherboard.h b/Source/Engine/Motherboard.h index 21d9201..12477f0 100755 --- a/Source/Engine/Motherboard.h +++ b/Source/Engine/Motherboard.h @@ -48,9 +48,8 @@ public: bool vibratoEnabled; float Volume; - const static int MAX_VOICES = 32; - const static int MAX_PANNINGS = 8; - float pannings[MAX_PANNINGS]; + const static int MAX_VOICES=8; + float pannings[MAX_VOICES]; ObxdVoice voices[MAX_VOICES]; bool uni; bool Oversample; @@ -80,7 +79,7 @@ public: // pannings = new float[MAX_VOICES]; totalvc = MAX_VOICES; vq = VoiceQueue(MAX_VOICES,voices); - for(int i = 0 ; i < MAX_PANNINGS;++i) + for(int i = 0 ; i < MAX_VOICES;++i) { pannings[i]= 0.5; } @@ -363,12 +362,11 @@ public: float x1 = processSynthVoice(voices[i],lfovalue,viblfo); if(Oversample) { - float x2 = processSynthVoice(voices[i],lfovalue2,viblfo2); - vlo+=x2*(1-pannings[i % MAX_PANNINGS]); - vro+=x2*(pannings[i % MAX_PANNINGS]); + float x2 = processSynthVoice(voices[i],lfovalue2,viblfo2); vlo+=x2*(1-pannings[i]); + vro+=x2*(pannings[i]); } - vl+=x1*(1-pannings[i % MAX_PANNINGS]); - vr+=x1*(pannings[i % MAX_PANNINGS]); + vl+=x1*(1-pannings[i]); + vr+=x1*(pannings[i]); } if(Oversample) { diff --git a/Source/Engine/SynthEngine.h b/Source/Engine/SynthEngine.h index c916590..7e74550 100755 --- a/Source/Engine/SynthEngine.h +++ b/Source/Engine/SynthEngine.h @@ -166,7 +166,7 @@ public: } void setVoiceCount(float param) { - synth.setVoiceCount(roundToInt((param*(synth.MAX_VOICES-1)) +1)); + synth.setVoiceCount(roundToInt((param*7) +1)); } void procPitchWheelAmount(float param) { @@ -184,7 +184,7 @@ public: } void processPan(float param,int idx) { - synth.pannings[(idx-1) % synth.MAX_PANNINGS] = param; + synth.pannings[idx-1] = param; } void processTune(float param) { diff --git a/Source/Images/voices.png b/Source/Images/voices.png index fdaa2a3a709a4feb69820d982b9104d3a990afd3..c8af407f54e7869381af7ce889243faa4e42c543 100644 GIT binary patch literal 3496 zcmX|Ec|6oz7yn65hEj-9qM4x>#f&xU*t2BFm{Evg5)y;4@5zvwCL;S1kF3u__T5-A zwjzeeSRy6M@YL96&yBxsVa(5WmJa{`ep3@eG^ZEj zNIU2dr}gwaFAV@(V(yrmem7C(8aTYCywhF0vx|I?r#ELE0JL<1yq$0!E`DHV7gu*L zZRmP41qyb*s|~%OfmP2P*qS@Rh3heR{#K+ME}IbYX*7(aXL7u`G-W zJIF#%ODfpe-6^xPlUwZ3#7z(BU)<5);+LR0=e#?TbLyEOL51qowR%c+`gHambYHuH zv@J;QUFKD{$#pyOUk&GmCYCz%;0&wxqtd5OMUU1Fg`OP^TeNCiX6<|Yz2am2DE8hQ zFY3zAPNhy}X0XGLwl~(-jK+yW#Oc^u*LSRzDrG6M7B&-wz8cTGWx%V#0T&{DR!@7t zBqg-)$sTb0*v~X5A z<6noE0GmG1^0GSmLR+4oztK=r6ZE)5XUE=NNn!r)oDZrzD0s@I0zj6OS-1N*9`Ew< z+6Ni`#+kD2#jQK5s10Y-ie@ZXyrH4gz0$hjvi^9Igi5|hiB*$aV$`;h+jHGTxthOh zR<^1wm$*9V0xb_88GJu|K(58Fe{n^)tx^&=#mVb!VoLykqbGk07m$%93IKfhriOYL zw}%W{j|5D&2y!}{HIx1+dwj4h)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*pjUA&g}KzCFnhn5k+^1#<_&;@f_vvL#fd;bS6!l*R> diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index d20331b..c50300f 100755 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -287,8 +287,14 @@ void ObxdAudioProcessorEditor::rebuildComponents() envelopeDetuneKnob = addTinyKnob(1353,300,ownerFilter,ENVDER,"Env",0.2); voiceSwitch = addNormalButtonList(124,338,17,ownerFilter,VOICE_COUNT,"VoiceCount",ImageCache::getFromMemory(BinaryData::voices_png,BinaryData::voices_pngSize)); - for (int i=1; i <= 32; i++) - voiceSwitch ->addChoise(String(i)); + voiceSwitch ->addChoise("1"); + voiceSwitch ->addChoise("2"); + voiceSwitch ->addChoise("3"); + voiceSwitch ->addChoise("4"); + voiceSwitch ->addChoise("5"); + voiceSwitch ->addChoise("6"); + voiceSwitch ->addChoise("7"); + voiceSwitch ->addChoise("8"); voiceSwitch ->setValue(ownerFilter->getParameter(VOICE_COUNT),dontSendNotification); legatoSwitch = addNormalButtonList(25,338,65,ownerFilter,LEGATOMODE,"Legato",ImageCache::getFromMemory(BinaryData::legato_png,BinaryData::legato_pngSize)); @@ -394,8 +400,14 @@ void ObxdAudioProcessorEditor::rebuildComponents() bendLfoRateKnob = addNormalKnobClassic(364,345,ownerFilter,BENDLFORATE,"ModRate",0.4); voiceSwitch = addNormalButtonListClassic(172,321,38,ownerFilter,VOICE_COUNT,"VoiceCount",ImageCache::getFromFile(skinFolder.getChildFile("voices.png"))); - for (int i=1; i <= 32; i++) - voiceSwitch->addChoise(String(i)); + voiceSwitch ->addChoise("1"); + voiceSwitch ->addChoise("2"); + voiceSwitch ->addChoise("3"); + voiceSwitch ->addChoise("4"); + voiceSwitch ->addChoise("5"); + voiceSwitch ->addChoise("6"); + voiceSwitch ->addChoise("7"); + voiceSwitch ->addChoise("8"); voiceSwitch ->setValue(ownerFilter->getParameter(VOICE_COUNT),dontSendNotification); legatoSwitch = addNormalButtonListClassic(65,321,95,ownerFilter,LEGATOMODE,"Legato",ImageCache::getFromFile(skinFolder.getChildFile("legato.png")));