summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDSP/Clip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibDSP/Clip.cpp')
-rw-r--r--Userland/Libraries/LibDSP/Clip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDSP/Clip.cpp b/Userland/Libraries/LibDSP/Clip.cpp
index ebd8588956..8b672a764c 100644
--- a/Userland/Libraries/LibDSP/Clip.cpp
+++ b/Userland/Libraries/LibDSP/Clip.cpp
@@ -16,7 +16,7 @@ Sample AudioClip::sample_at(u32 time)
void NoteClip::set_note(RollNote note)
{
- VERIFY(note.pitch >= 0 && note.pitch < note_count);
+ VERIFY(note.pitch >= 0 && note.pitch < note_frequencies.size());
VERIFY(note.off_sample < m_length);
VERIFY(note.length() >= 2);