Set value of parameters in correct order, increment version number, and clip input volume

pull/207/head v2.0.5
James Ball 2024-01-01 17:30:06 +00:00 zatwierdzone przez James H Ball
rodzic b20ef8b994
commit 18776c7324
3 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -610,6 +610,7 @@ void OscirenderAudioProcessor::processBlock(juce::AudioBuffer<float>& buffer, ju
volumeBuffer[volumeBufferIndex] = (left * left + right * right) / 2;
squaredVolume += volumeBuffer[volumeBufferIndex] / volumeBuffer.size();
currentVolume = std::sqrt(squaredVolume);
currentVolume = juce::jlimit(0.0, 1.0, currentVolume);
Vector2 channels;
if (totalNumOutputChannels >= 2) {

Wyświetl plik

@ -111,9 +111,6 @@ public:
// opt to not change any values if not found
void load(juce::XmlElement* xml) {
if (xml->hasAttribute("value")) {
setUnnormalisedValueNotifyingHost(xml->getDoubleAttribute("value"));
}
if (xml->hasAttribute("min")) {
min = xml->getDoubleAttribute("min");
}
@ -123,6 +120,9 @@ public:
if (xml->hasAttribute("step")) {
step = xml->getDoubleAttribute("step");
}
if (xml->hasAttribute("value")) {
setUnnormalisedValueNotifyingHost(xml->getDoubleAttribute("value"));
}
}
private:
@ -237,15 +237,15 @@ public:
// opt to not change any values if not found
void load(juce::XmlElement* xml) {
if (xml->hasAttribute("value")) {
setUnnormalisedValueNotifyingHost(xml->getIntAttribute("value"));
}
if (xml->hasAttribute("min")) {
min = xml->getIntAttribute("min");
}
if (xml->hasAttribute("max")) {
max = xml->getIntAttribute("max");
}
if (xml->hasAttribute("value")) {
setUnnormalisedValueNotifyingHost(xml->getIntAttribute("value"));
}
}
private:

Wyświetl plik

@ -5,7 +5,7 @@
pluginCharacteristicsValue="pluginProducesMidiOut,pluginWantsMidiIn"
pluginManufacturer="jameshball" aaxIdentifier="sh.ball.oscirender"
cppLanguageStandard="20" projectLineFeed="&#10;" headerPath="./include"
version="2.0.4" companyName="James H Ball" companyWebsite="https://osci-render.com"
version="2.0.5" companyName="James H Ball" companyWebsite="https://osci-render.com"
companyEmail="james@ball.sh">
<MAINGROUP id="j5Ge2T" name="osci-render">
<GROUP id="{5ABCED88-0059-A7AF-9596-DBF91DDB0292}" name="Resources">