Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
maxi-js-emscripten
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Daniel Clarke
maxi-js-emscripten
Commits
72be9abd
Commit
72be9abd
authored
Dec 04, 2015
by
Dr-Dan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added getMagnitudeDB and getPhase to maxiFFT
parent
0e0a9e80
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
326 additions
and
294 deletions
+326
-294
maxiLib/maxiLib.js
maxiLib/maxiLib.js
+314
-294
src/cpp/libs/maxiBark.h
src/cpp/libs/maxiBark.h
+1
-0
src/cpp/libs/maxiFFT.h
src/cpp/libs/maxiFFT.h
+8
-0
src/cpp/libs/maxiFFT_embind.h
src/cpp/libs/maxiFFT_embind.h
+3
-0
No files found.
maxiLib/maxiLib.js
View file @
72be9abd
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/cpp/libs/maxiBark.h
View file @
72be9abd
...
@@ -30,6 +30,7 @@ inline double binToHz(unsigned int bin, unsigned int sR, unsigned int bS) {
...
@@ -30,6 +30,7 @@ inline double binToHz(unsigned int bin, unsigned int sR, unsigned int bS) {
return
bin
*
sR
/
bS
;
return
bin
*
sR
/
bS
;
}
}
// is T used anywhere?
template
<
class
T
>
template
<
class
T
>
class
maxiBarkScaleAnalyser
{
class
maxiBarkScaleAnalyser
{
...
...
src/cpp/libs/maxiFFT.h
View file @
72be9abd
...
@@ -61,6 +61,14 @@ public:
...
@@ -61,6 +61,14 @@ public:
return
magnitudes
[
n
];
return
magnitudes
[
n
];
}
}
float
getMagnitudeDB
(
int
n
){
return
magnitudesDB
[
n
];
}
float
getPhase
(
int
n
){
return
phases
[
n
];
}
//features
//features
float
spectralFlatness
();
float
spectralFlatness
();
float
spectralCentroid
();
float
spectralCentroid
();
...
...
src/cpp/libs/maxiFFT_embind.h
View file @
72be9abd
...
@@ -29,6 +29,9 @@ EMSCRIPTEN_BINDINGS(my_module_maxiFFT) {
...
@@ -29,6 +29,9 @@ EMSCRIPTEN_BINDINGS(my_module_maxiFFT) {
.
function
(
"spectralFlatness"
,
&
maxiFFT
::
spectralFlatness
)
.
function
(
"spectralFlatness"
,
&
maxiFFT
::
spectralFlatness
)
.
function
(
"spectralCentroid"
,
&
maxiFFT
::
spectralCentroid
)
.
function
(
"spectralCentroid"
,
&
maxiFFT
::
spectralCentroid
)
.
function
(
"getMagnitude"
,
&
maxiFFT
::
getMagnitude
)
.
function
(
"getMagnitude"
,
&
maxiFFT
::
getMagnitude
)
.
function
(
"getMagnitudeDB"
,
&
maxiFFT
::
getMagnitudeDB
)
.
function
(
"getPhase"
,
&
maxiFFT
::
getPhase
)
// .function("setTempo", &maxiClock::setTempo)
// .function("setTempo", &maxiClock::setTempo)
// .function("setTicksPerBeat", &maxiClock::setTicksPerBeat)
// .function("setTicksPerBeat", &maxiClock::setTicksPerBeat)
// .function("isTick", &maxiClock::isTick)
// .function("isTick", &maxiClock::isTick)
...
...
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