kopia lustrzana https://github.com/jameshball/osci-render
Set value of parameters in correct order, increment version number, and clip input volume
rodzic
b20ef8b994
commit
18776c7324
|
@ -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) {
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
pluginCharacteristicsValue="pluginProducesMidiOut,pluginWantsMidiIn"
|
||||
pluginManufacturer="jameshball" aaxIdentifier="sh.ball.oscirender"
|
||||
cppLanguageStandard="20" projectLineFeed=" " 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">
|
||||
|
|
Ładowanie…
Reference in New Issue