changeset 321:1bc4b56885bd tonioni

added constraint on note sonification (ok between 20 and 2000 Hz)
author matthiasm
date Thu, 16 Jan 2014 16:32:42 +0000
parents 7105604e9803
children 4fdf70be6671
files audioio/ClipMixer.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/audioio/ClipMixer.cpp	Tue Jan 14 17:51:53 2014 +0000
+++ b/audioio/ClipMixer.cpp	Thu Jan 16 16:32:42 2014 +0000
@@ -122,7 +122,10 @@
                std::vector<NoteEnd> endingNotes)
 {
     foreach (NoteStart note, newNotes) {
-        m_playing.push_back(note);
+        if (note.frequency > 20 && 
+            note.frequency < 2000) {
+            m_playing.push_back(note);
+        }
     }
 
     std::vector<NoteStart> remaining;