Skip to content

Commit

Permalink
GameLAN and Smartfaust regenerated with faustwasm 0.6.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Sep 18, 2024
1 parent 7a50835 commit 9b1fb79
Show file tree
Hide file tree
Showing 206 changed files with 1,681 additions and 1,377 deletions.
6 changes: 3 additions & 3 deletions docs/gamelan/atomicro/dsp-meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "atomicro",
"filename": "atomicro.dsp",
"version": "2.75.2",
"version": "2.75.3",
"compile_options": "-lang wasm-i -ct 1 -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 2",
"include_pathnames": [
"/share/faust",
Expand All @@ -10,7 +10,7 @@
"."
],
"size": 5041144,
"code": "MIe+",
"code": "wJa+",
"inputs": 1,
"outputs": 1,
"meta": [
Expand Down Expand Up @@ -87,7 +87,7 @@
"signals_lib_version": "1.6.0"
},
{
"version": "2.75.2"
"version": "2.75.7"
}
],
"ui": [
Expand Down
Binary file modified docs/gamelan/atomicro/dsp-module.wasm
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/gamelan/atomicro/faustwasm/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,11 +699,13 @@ export declare class FaustBaseWebAudioDsp implements IFaustBaseWebAudioDsp {
protected fSampleSize: number;
protected fPitchwheelLabel: {
path: string;
chan: number;
min: number;
max: number;
}[];
protected fCtrlLabel: {
path: string;
chan: number;
min: number;
max: number;
}[][];
Expand Down
35 changes: 24 additions & 11 deletions docs/gamelan/atomicro/faustwasm/index.js

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

4 changes: 2 additions & 2 deletions docs/gamelan/atomicro/faustwasm/index.js.map

Large diffs are not rendered by default.

42 changes: 18 additions & 24 deletions docs/gamelan/atomicro/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ audioContext.suspend();
await connectToAudioInput(audioContext, null, faustNode, null);
}

// Activate sensor listeners
await faustNode.listenSensors();

// Function to initialize MIDI
function initMIDI(faustNode) {
function initMIDI() {
// Check if the browser supports the Web MIDI API
if (navigator.requestMIDIAccess) {
navigator.requestMIDIAccess().then(
Expand All @@ -72,28 +69,25 @@ audioContext.suspend();
}
}

// Initialize the MIDI setup
if (FAUST_DSP_VOICES > 0) {
initMIDI(faustNode);
}
// Function to resume AudioContext, activate MIDI and Sensors on user interaction
function activateAudioMIDISensors() {

})();
// Resume the AudioContext
if (audioContext.state === 'suspended') {
audioContext.resume();
}

// Activate sensor listeners
faustNode.listenSensors();

// Function to resume AudioContext on user interaction
function resumeAudioContext() {
if (audioContext.state === 'suspended') {
audioContext.resume();
// Initialize the MIDI setup
if (FAUST_DSP_VOICES > 0) {
initMIDI();
}
}
}

// Add event listeners for user interactions
window.addEventListener('click', resumeAudioContext);
window.addEventListener('touchstart', resumeAudioContext);
// Add event listeners for user interactions
window.addEventListener('click', activateAudioMIDISensors);
window.addEventListener('touchstart', activateAudioMIDISensors);

// Optional: Remove event listeners once the context is resumed
audioContext.onstatechange = function () {
if (audioContext.state === 'running') {
window.removeEventListener('click', resumeAudioContext);
window.removeEventListener('touchstart', resumeAudioContext);
}
};
})();
5 changes: 2 additions & 3 deletions docs/gamelan/attackey/dsp-meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "attackey",
"filename": "attackey.dsp",
"version": "2.75.2",
"version": "2.75.3",
"compile_options": "-lang wasm-i -ct 1 -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 2",
"include_pathnames": [
"/share/faust",
Expand All @@ -10,7 +10,6 @@
"."
],
"size": 844636,
"code": "cP00AaQSHw==",
"inputs": 0,
"outputs": 2,
"meta": [
Expand Down Expand Up @@ -186,7 +185,7 @@
"soundfiles": "https://raw.githubusercontent.com/grame-cncm/GameLAN/master/attacKey"
},
{
"version": "2.75.2"
"version": "2.75.7"
}
],
"ui": [
Expand Down
Binary file modified docs/gamelan/attackey/dsp-module.wasm
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/gamelan/attackey/faustwasm/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,11 +699,13 @@ export declare class FaustBaseWebAudioDsp implements IFaustBaseWebAudioDsp {
protected fSampleSize: number;
protected fPitchwheelLabel: {
path: string;
chan: number;
min: number;
max: number;
}[];
protected fCtrlLabel: {
path: string;
chan: number;
min: number;
max: number;
}[][];
Expand Down
35 changes: 24 additions & 11 deletions docs/gamelan/attackey/faustwasm/index.js

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

4 changes: 2 additions & 2 deletions docs/gamelan/attackey/faustwasm/index.js.map

Large diffs are not rendered by default.

42 changes: 18 additions & 24 deletions docs/gamelan/attackey/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@ audioContext.suspend();
await connectToAudioInput(audioContext, null, faustNode, null);
}

// Activate sensor listeners
await faustNode.listenSensors();

// Function to initialize MIDI
function initMIDI(faustNode) {
function initMIDI() {
// Check if the browser supports the Web MIDI API
if (navigator.requestMIDIAccess) {
navigator.requestMIDIAccess().then(
Expand All @@ -72,28 +69,25 @@ audioContext.suspend();
}
}

// Initialize the MIDI setup
if (FAUST_DSP_VOICES > 0) {
initMIDI(faustNode);
}
// Function to resume AudioContext, activate MIDI and Sensors on user interaction
function activateAudioMIDISensors() {

})();
// Resume the AudioContext
if (audioContext.state === 'suspended') {
audioContext.resume();
}

// Activate sensor listeners
faustNode.listenSensors();

// Function to resume AudioContext on user interaction
function resumeAudioContext() {
if (audioContext.state === 'suspended') {
audioContext.resume();
// Initialize the MIDI setup
if (FAUST_DSP_VOICES > 0) {
initMIDI();
}
}
}

// Add event listeners for user interactions
window.addEventListener('click', resumeAudioContext);
window.addEventListener('touchstart', resumeAudioContext);
// Add event listeners for user interactions
window.addEventListener('click', activateAudioMIDISensors);
window.addEventListener('touchstart', activateAudioMIDISensors);

// Optional: Remove event listeners once the context is resumed
audioContext.onstatechange = function () {
if (audioContext.state === 'running') {
window.removeEventListener('click', resumeAudioContext);
window.removeEventListener('touchstart', resumeAudioContext);
}
};
})();
8 changes: 4 additions & 4 deletions docs/gamelan/baliphone/dsp-meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "baliphone",
"filename": "baliphone.dsp",
"version": "2.75.2",
"version": "2.75.3",
"compile_options": "-lang wasm-i -ct 1 -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 2",
"include_pathnames": [
"/share/faust",
Expand All @@ -10,7 +10,7 @@
"."
],
"size": 844728,
"code": "pBIf",
"code": "ZCMf",
"inputs": 0,
"outputs": 2,
"meta": [
Expand Down Expand Up @@ -48,7 +48,7 @@
"filters_lib_allpass_comb_license": "MIT-style STK-4.3 license"
},
{
"filters_lib_lowpass0_highpass1": "Copyright (C) 2003-2019 by Julius O. Smith III <jos@ccrma.stanford.edu>"
"filters_lib_lowpass0_highpass1": "MIT-style STK-4.3 license"
},
{
"filters_lib_lowpass0_highpass1_author": "Julius O. Smith III"
Expand Down Expand Up @@ -162,7 +162,7 @@
"soundfiles": "https://raw.githubusercontent.com/grame-cncm/GameLAN/master/baliphone"
},
{
"version": "2.75.2"
"version": "2.75.7"
}
],
"ui": [
Expand Down
Binary file modified docs/gamelan/baliphone/dsp-module.wasm
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/gamelan/baliphone/faustwasm/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,11 +699,13 @@ export declare class FaustBaseWebAudioDsp implements IFaustBaseWebAudioDsp {
protected fSampleSize: number;
protected fPitchwheelLabel: {
path: string;
chan: number;
min: number;
max: number;
}[];
protected fCtrlLabel: {
path: string;
chan: number;
min: number;
max: number;
}[][];
Expand Down
Loading

0 comments on commit 9b1fb79

Please sign in to comment.