Skip to content

Commit

Permalink
Euclidean global pattern init from state upon startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
awonak committed Feb 7, 2025
1 parent 722ae03 commit 8e71867
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions A-RYTH-MATIK/Euclidean/save_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ void InitState(Pattern *patterns) {
for (int i = 0; i < OUTPUT_COUNT; i++) {
patterns[i].Init(default_pattern);
}
} else {
// Provide a even distribution of default probabilities.
for (int i = 0; i < OUTPUT_COUNT; i++) {
patterns[i].Init(state.pattern[i]);
}
}
}

Expand Down

0 comments on commit 8e71867

Please sign in to comment.