Clean-up fix some of the code

pull/277/head
James H Ball 2025-01-19 10:42:16 +00:00
rodzic ae51ccd5b7
commit bcd8b69cc6
3 zmienionych plików z 9 dodań i 6 usunięć

Wyświetl plik

@ -69,7 +69,10 @@ void Effect::animateValues(double volume) {
actualValues[i] = ((float)rand() / RAND_MAX) * (maxValue - minValue) + minValue;
break;
default:
double weight = (parameter->smoothValueChange > 1.0 || parameter->smoothValueChange < SMOOTHING_SPEED_MIN) ? (1.0) : (parameter->smoothValueChange.load()) * 192000 / sampleRate;
double weight = 1.0;
if (parameter->smoothValueChange < 1.0 && parameter->smoothValueChange > SMOOTHING_SPEED_MIN) {
weight = parameter->smoothValueChange.load() * 192000 / sampleRate;
}
double newValue;
if (parameter->sidechain != nullptr && parameter->sidechain->getBoolValue()) {
newValue = volume * (maxValue - minValue) + minValue;

Wyświetl plik

@ -171,9 +171,10 @@ void ShapeVoice::renderNextBlock(juce::AudioSampleBuffer& outputBuffer, int star
if (sound.load() != nullptr && currentlyPlaying) {
frameLength = sound.load()->updateFrame(frame);
}
//frameDrawn -= drawnFrameLength;
frameDrawn = 0;
shapeDrawn = 0;
frameDrawn -= drawnFrameLength;
if (traceLengthEnabled || traceStartEnabled) {
shapeDrawn = frameDrawn;
}
currentShape = 0;
// TODO: updateFrame already iterates over all the shapes,

Wyświetl plik

@ -756,8 +756,7 @@
<CONFIGURATIONS>
<CONFIGURATION isDebug="1" name="Debug" targetName="osci-render" winWarningLevel="2"/>
<CONFIGURATION isDebug="0" name="Release" targetName="osci-render" alwaysGenerateDebugSymbols="1"
debugInformationFormat="ProgramDatabase"
winWarningLevel="2"/>
debugInformationFormat="ProgramDatabase" winWarningLevel="2"/>
</CONFIGURATIONS>
<MODULEPATHS>
<MODULEPATH id="juce_audio_basics" path="../../../JUCE/modules"/>