summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDSP/Synthesizers.cpp
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-05-11 21:59:49 +0200
committerLinus Groh <mail@linusgroh.de>2022-05-13 00:47:26 +0200
commitf23aea0c4b049c7b2ffab442175dfbd2ea7b54e8 (patch)
tree25fe34e7595e30c29e9981aca59d7c52c24e7c7b /Userland/Libraries/LibDSP/Synthesizers.cpp
parentbcb331b8620509aca8894e6bc033fbfcb777eec0 (diff)
downloadserenity-f23aea0c4b049c7b2ffab442175dfbd2ea7b54e8.zip
LibDSP: Make the note frequencies an AK::Array instead of a C array
This was a leftover from the early days of Piano, and there's no reason to leave it that way especially if we want to use more complex collection APIs in the future.
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());