kopia lustrzana https://github.com/jameshball/osci-render
Clean-up fix some of the code
rodzic
ae51ccd5b7
commit
bcd8b69cc6
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Ładowanie…
Reference in New Issue