Skip to content

Commit

Permalink
gotta figure out how to do the test locally lol
Browse files Browse the repository at this point in the history
  • Loading branch information
GDBobby committed Oct 3, 2023
1 parent 7549d04 commit d77b5c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion noiz/include/noiz/noise-processing2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Noise_Processor2 {

Type sum = 0.f;
Type normalizer = 0.f;
for (int i = 0; i < octave; i++) {
for (uint8_t i = 1; i < octave; i++) {
sum += noise.get().at(point * (step * frequency)) * amplitude;
normalizer += amplitude;
amplitude *= persistence;
Expand Down
2 changes: 1 addition & 1 deletion noiz/include/noiz/noise-processing3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Noise_Processor3 {
// increase frequency
temp_point = temp_point * lacunarity;
// spectral construction inner loop, where the fractal is built
for (int i = 1; i < octave; i++) {
for (uint8_t i = 1; i < octave; i++) {
// prevent divergence
if (weight > 1.0) weight = 1.0;
// get next frequency
Expand Down
2 changes: 1 addition & 1 deletion noiz/include/noiz/noise-processing4.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Noise_Processor4 {

Type sum = 0.f;
Type normalizer = 0.f;
for (int i = 0; i < octave; i++) {
for (uint8_t i = 1; i < octave; i++) {
sum += noise.get().at(point * (step * frequency)) * amplitude;
normalizer += amplitude;
amplitude *= persistence;
Expand Down

0 comments on commit d77b5c6

Please sign in to comment.