summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDSP/Synthesizers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibDSP/Synthesizers.cpp')
-rw-r--r--Userland/Libraries/LibDSP/Synthesizers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDSP/Synthesizers.cpp b/Userland/Libraries/LibDSP/Synthesizers.cpp
index 8b583adf3d..5cab654a2c 100644
--- a/Userland/Libraries/LibDSP/Synthesizers.cpp
+++ b/Userland/Libraries/LibDSP/Synthesizers.cpp
@@ -41,7 +41,7 @@ Signal Classic::process_impl(Signal const& input_signal)
// "Press" the necessary notes in the internal representation,
// and "release" all of the others
- for (u8 i = 0; i < note_count; ++i) {
+ for (u8 i = 0; i < note_frequencies.size(); ++i) {
if (auto maybe_note = in.get(i); maybe_note.has_value())
m_playing_notes.set(i, maybe_note.value());