comparison audioio/ClipMixer.cpp @ 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
comparison
equal deleted inserted replaced
320:7105604e9803 321:1bc4b56885bd
120 float gain, 120 float gain,
121 std::vector<NoteStart> newNotes, 121 std::vector<NoteStart> newNotes,
122 std::vector<NoteEnd> endingNotes) 122 std::vector<NoteEnd> endingNotes)
123 { 123 {
124 foreach (NoteStart note, newNotes) { 124 foreach (NoteStart note, newNotes) {
125 m_playing.push_back(note); 125 if (note.frequency > 20 &&
126 note.frequency < 2000) {
127 m_playing.push_back(note);
128 }
126 } 129 }
127 130
128 std::vector<NoteStart> remaining; 131 std::vector<NoteStart> remaining;
129 132
130 float *levels = new float[m_channels]; 133 float *levels = new float[m_channels];