Remove dumb cap on drawing speed that caused innacurate frequencies

pull/175/head v2.0.1
James Ball 2023-12-23 10:42:36 +00:00 zatwierdzone przez James H Ball
rodzic fe487d50e1
commit 9f4890c35b
2 zmienionych plików z 3 dodań i 6 usunięć

Wyświetl plik

@ -43,11 +43,8 @@ void ShapeVoice::startNote(int midiNoteNumber, float velocity, juce::Synthesiser
// TODO this is the slowest part of the program - any way to improve this would help!
void ShapeVoice::incrementShapeDrawing() {
double length = currentShape < frame.size() ? frame[currentShape]->len : 0.0;
// hard cap on how many times it can be over the length to
// prevent audio stuttering
auto increment = juce::jmin(lengthIncrement, 20 * length);
frameDrawn += increment;
shapeDrawn += increment;
frameDrawn += lengthIncrement;
shapeDrawn += lengthIncrement;
// Need to skip all shapes that the lengthIncrement draws over.
// This is especially an issue when there are lots of small lines being

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.0" companyName="James H Ball" companyWebsite="https://osci-render.com"
version="2.0.1" 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">