(1)Added test class (2)Use separated findSegment method

This commit is contained in:
Takeshi Yokemura
2021-08-15 10:31:23 +09:00
parent ad947fcfda
commit 846133ac39
5 changed files with 116 additions and 116 deletions

View File

@ -14,6 +14,7 @@
#include "TriangleVoice.h"
#include "NoiseVoice.h"
#include "FrameSequenceParseErrors.h"
#include "EnvelopeParserTest.h"
//==============================================================================
Magical8bitPlug2AudioProcessor::Magical8bitPlug2AudioProcessor()
@ -114,7 +115,7 @@ Magical8bitPlug2AudioProcessor::Magical8bitPlug2AudioProcessor()
std::make_unique<AudioParameterBool> ("isPitchSequenceEnabled_raw", "Enabled", false),
std::make_unique<AudioParameterBool> ("isDutySequenceEnabled_raw", "Enabled", false),
std::make_unique<AudioParameterChoice> ("pitchSequenceMode_raw", "Mode", StringArray ({"Coarse", "Fine"}), 0)
}
}
)
, settingRefs (&parameters)
#ifndef JucePlugin_PreferredChannelConfigurations
@ -132,6 +133,12 @@ Magical8bitPlug2AudioProcessor::Magical8bitPlug2AudioProcessor()
setupVoice();
synth.addSound (new GenericSound());
#if JUCE_DEBUG
EnvelopeParserTest test;
UnitTestRunner runner;
runner.runAllTests();
#endif
}
Magical8bitPlug2AudioProcessor::~Magical8bitPlug2AudioProcessor()