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.
This commit is contained in:
kleines Filmröllchen 2022-05-11 21:59:49 +02:00 committed by Linus Groh
commit f23aea0c4b
Notes: sideshowbarker 2024-07-17 10:55:32 +09:00
5 changed files with 6 additions and 7 deletions

View file

@ -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());