kopia lustrzana https://github.com/jameshball/osci-render
Remove dumb cap on drawing speed that caused innacurate frequencies
rodzic
fe487d50e1
commit
9f4890c35b
|
@ -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
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
pluginCharacteristicsValue="pluginProducesMidiOut,pluginWantsMidiIn"
|
||||
pluginManufacturer="jameshball" aaxIdentifier="sh.ball.oscirender"
|
||||
cppLanguageStandard="20" projectLineFeed=" " 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">
|
||||
|
|
Ładowanie…
Reference in New Issue