You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the audio buffer should be reallocated, and possibly resampled, in the sampleRateChanged method
implement getUniqueId with appropriate char code
Mathf:
lerp can be rewritten with one less operation a * (1.0 - f) + (b * f); replaced with a + f * (b - a);
General:
initialize scalar instance variables, to the relevant default or {}, preferably in the declaration rather than constructor (example float sides {};)
NanoVG:
close the path first, then draw it.
eg. following code is nonsense, but most likely fill() closes the path by itself, making the next one redundant fill(); closePath();
The text was updated successfully, but these errors were encountered:
Grain:
example: replace
/ 2.0
with* 0.5
if
s)fabric/Grain.cpp
Line 27 in 9a16da3
GrainPlayer:
fabricDSP:
rand
, but implement a simple LCGwhen modulo is chosen as 2^32, compute it on uint32 and omit the modulus operation
https://en.wikipedia.org/wiki/Linear_congruential_generator#Parameters_in_common_use
sampleRateChanged
methodgetUniqueId
with appropriate char codeMathf:
a * (1.0 - f) + (b * f);
replaced witha + f * (b - a);
General:
{}
, preferably in the declaration rather than constructor (examplefloat sides {};
)NanoVG:
eg. following code is nonsense, but most likely
fill()
closes the path by itself, making the next one redundantfill(); closePath();
The text was updated successfully, but these errors were encountered: