Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Karan Goel
481-SoundBrain
Commits
bf322786
Commit
bf322786
authored
Jan 20, 2015
by
Karan Goel
Browse files
filter frequency threshold changes according to dat
parent
bf40b8d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
final-app/public/js/app.js
View file @
bf322786
...
...
@@ -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
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment