-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fixes to the web examples
- Loading branch information
Showing
13 changed files
with
27 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,9 @@ | |
<body style="background-color: #000000!important;"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script> | ||
<script src="../../../dist/essentia-wasm.web.js"></script> | ||
<script src="../../../dist/essentia.js-extractor.js"></script> | ||
<script src="../../../dist/essentia.js-plot.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia-wasm.web.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/essentia.js-extractor.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia.js-plot.js"></script> | ||
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script> | ||
<script src="script.js" defer></script> | ||
<div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,9 @@ | |
<body style="background-color: #000000!important;"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script> | ||
<script src="../../../dist/essentia-wasm.web.js"></script> | ||
<script src="../../../dist/essentia.js-core.js"></script> | ||
<script src="../../../dist/essentia.js-plot.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia-wasm.web.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia.js-core.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia.js-plot.js"></script> | ||
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script> | ||
<script src="script.js" defer></script> | ||
<div> | ||
|
4 changes: 2 additions & 2 deletions
4
examples/realtime/audio-worklets/essentia-worklet-processor.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// import Module from 'https://unpkg.com/[email protected]/dist/essentia-module.js'; | ||
import { EssentiaModule } from "https://cdn.jsdelivr.net/npm/essentia.js@0.0.9/dist/essentia-wasm.module.js"; | ||
import { EssentiaModule } from "https://cdn.jsdelivr.net/npm/essentia.js@0.1.0/dist/essentia-wasm.module.js"; | ||
// import Essentia JS API interface | ||
import Essentia from "https://cdn.jsdelivr.net/npm/essentia.js@0.0.9/dist/essentia.js-core.es.js"; | ||
import Essentia from "https://cdn.jsdelivr.net/npm/essentia.js@0.1.0/dist/essentia.js-core.es.js"; | ||
// Tools for sending audio interleaved audio frames between threads, wait-free from the ringbuf.js package | ||
// import { RingBuffer, AudioReader, ParameterReader } from "https://unpkg.com/browse/[email protected]/dist/index.es.js"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,10 @@ | |
<body style="background-color: #000000!important;"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia-wasm.web.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia.js-extractor.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia.js-plot.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia-wasm.web.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia-wasm.web.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia.js-extractor.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia.js-plot.js"></script> | ||
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script> | ||
|
||
<div class="ui main_wrapper landing-image"> | ||
|
@@ -196,7 +197,8 @@ <h2 class="ui header white-text" style="color: azure;"> | |
// settings specific to an algorithm | ||
essentiaExtractor.profile.HPCP.nonLinear = true; | ||
// compute hpcp for overlapping frames of audio | ||
let hpcpGram = essentiaExtractor.hpcpgram(audioBuffer); | ||
let hpcp = essentiaExtractor.hpcpExtractor(audioBuffer); | ||
let hpcpGram = [hpcp]; | ||
// here we call the plotting function to display realtime feature extraction results | ||
plotChroma.create( | ||
hpcpGram, | ||
|
@@ -225,9 +227,9 @@ <h2 class="ui header white-text" style="color: azure;"> | |
); | ||
|
||
// loads the WASM backend and runs the feature extraction | ||
EssentiaModule().then(function(essentiaModule) { | ||
EssentiaWASM().then(function(essentiaWasmModule) { | ||
if (!isEssentiaInstance) { | ||
essentiaExtractor = new EssentiaExtractor(essentiaModule); | ||
essentiaExtractor = new EssentiaExtractor(essentiaWasmModule); | ||
isEssentiaInstance = true; | ||
} | ||
// start microphone stream using getUserMedia | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,9 @@ | |
<body style="background-color: #000000!important;"> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script> | ||
<script src="../../../dist/essentia-wasm.web.js"></script> | ||
<script src="../../../dist/essentia.js-extractor.js"></script> | ||
<script src="../../../dist/essentia.js-plot.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia-wasm.web.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia.js-extractor.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia.js-plot.js"></script> | ||
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script> | ||
|
||
<div class="ui main_wrapper landing-image"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ | |
<body style="background-color: #000000!important;""> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script> | ||
<script src="../../../dist/essentia-wasm.web.js"></script> | ||
<script src="../../../dist/essentia.js-core.js"></script> | ||
<script src="../../../dist/essentia.js-plot.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia-wasm.web.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia.js-core.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/essentia.js-plot.js"></script> | ||
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script> | ||
|
||
<div class="ui main_wrapper landing-image"> | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
/** | ||
* @fileOverview Essentia high-level core interface | ||
* @author <a href="mailto:[email protected]">Albin Correya</a> | ||
* @version 0.0.9 | ||
* @version 0.1.0 | ||
*/ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters