Skip to content

Commit

Permalink
Updated with faustwasm 0.3.1. Set version to 1.2.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Jun 16, 2024
1 parent ccfb4b6 commit 02b1190
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 19 deletions.
7 changes: 4 additions & 3 deletions faustlive-wasm.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FaustLive WASM</title>
<link rel="stylesheet" href="css/faustlive-wasm.css">
</head>

<body>
<center>
<H1> Testing the embedded dynamic Faust compiler </H1>
Expand Down Expand Up @@ -82,7 +84,6 @@ <H3>ScriptProcessor/AudioWorklet</H3>
<p>AudioWorklet: audio rendering is done using the new AudioWorklet model.
<p>
</div>

<div class="config-element">
<H3>Sample format</H3>
<form method="POST" name="menu">
Expand All @@ -105,7 +106,6 @@ <H3>Float denormals handling</H3>
<p>
<p>2: uses a <B>bitmask</B> to detect denormal values (faster).</p>
</div>

</div>

<p> <input id="localstorage" type="checkbox" onclick="setLocalStorage(checked)"> <B>Save page and DSP control
Expand All @@ -126,4 +126,5 @@ <H3>Float denormals handling</H3>
Object.assign(window, { setBufferSize, setPoly, setPolyVoices, setRenderingMode, setFTZ, setSampleFormat, setLocalStorage })
</script>
</body>
</html>

</html>
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fausteditor",
"private": true,
"version": "1.2.0",
"version": "1.2.1",
"description": "A simple Faust editor for the web",
"scripts": {
"dev": "vite",
Expand All @@ -13,7 +13,7 @@
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.0",
"@grame/faustwasm": "^0.3.0",
"@grame/faustwasm": "^0.3.1",
"@shren/faust-ui": "^1.1.9",
"codemirror": "^5.58.2",
"qrcode": "^1.5.3",
Expand Down
1 change: 1 addition & 0 deletions src/compilefaust.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ function activateDSP(dsp) {
faustUI = new FaustUI({ ui: DSP.getUI(), root: faustUIRoot });
faustUI.paramChangeByUI = (path, value) => DSP.setParamValue(path, value);
DSP.setOutputParamHandler(output_handler);
DSP.listenSensors();
DSP.connect(audio_context.destination);

console.log(DSP.getNumInputs());
Expand Down
10 changes: 6 additions & 4 deletions src/faustlive-wasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,9 @@ const activateMonoDSP = (dsp) => {
faustUI = new FaustUI({ ui: DSP.getUI(), root: faustUIRoot });
faustUI.paramChangeByUI = (path, value) => DSP.setParamValue(path, value);
DSP.setOutputParamHandler(output_handler);
console.log(DSP.getNumInputs());
console.log(DSP.getNumOutputs());
DSP.listenSensors();
console.log("Inputs = " + DSP.getNumInputs());
console.log("Outputs = " + DSP.getNumOutputs());
//DSP.metadata({ declare: function(key, value) { console.log("key = " + key + " value = " + value); }});
DSP.connect(audio_context.destination);
// DSP has to be explicitly started
Expand All @@ -529,8 +530,9 @@ const activatePolyDSP = (dsp) => {
faustUI = new FaustUI({ ui: DSP.getUI(), root: faustUIRoot });
faustUI.paramChangeByUI = (path, value) => DSP.setParamValue(path, value);
DSP.setOutputParamHandler(output_handler);
console.log(DSP.getNumInputs());
console.log(DSP.getNumOutputs());
DSP.listenSensors();
console.log("Inputs = " + DSP.getNumInputs());
console.log("Outputs = " + DSP.getNumOutputs());
//DSP.metadata({ declare: function(key, value) { console.log("key = " + key + " value = " + value); }});
DSP.connect(audio_context.destination);
// DSP has to be explicitly started
Expand Down
2 changes: 1 addition & 1 deletion src/faustlive.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ window.addEventListener('touchstart', function () {

// Main entry point, called when libfaust.js has finished to load
function init() {
console.log('FaustEditor: version 1.2.0');
console.log('FaustEditor: version 1.2.1');

// Try to load code from current URL
configureEditorFromUrlParams();
Expand Down

0 comments on commit 02b1190

Please sign in to comment.