Commit bf322786 authored by Karan Goel's avatar Karan Goel
Browse files

filter frequency threshold changes according to dat

parent bf40b8d7
......@@ -71,6 +71,8 @@ var SoundCloudAudioSource = function(player) {
for (var i = 0; i < 80; i++) { // get the volume from the first 80 bins, else it gets too loud with treble
if (!player || !player.eegData) player.eegData.eegPower = self.streamData[i];
total += (self.streamData[i] + player.eegData.eegPower.beta) / 5;
filter.frequency.value = player.eegData.eegPower.beta / 5;
console.log(filter.frequency.value);
}
self.volume = total;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment