Skip to content

Commit

Permalink
Docs update 1.0.2396
Browse files Browse the repository at this point in the history
  • Loading branch information
cesaref committed Mar 16, 2024
1 parent ae7243f commit ecb2ee9
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 16 deletions.
2 changes: 1 addition & 1 deletion assets/example_patches/808/cmaj_808.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch '808.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2395
// This file was auto-generated by the Cmajor toolkit v1.0.2396
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/CompuFart/cmaj_CompuFart.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'CompuFartSynth.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2395
// This file was auto-generated by the Cmajor toolkit v1.0.2396
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down

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

2 changes: 1 addition & 1 deletion assets/example_patches/GuitarLSTM/cmaj_GuitarLSTM.js

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

2 changes: 1 addition & 1 deletion assets/example_patches/HelloWorld/cmaj_Hello_World.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'HelloWorld.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2395
// This file was auto-generated by the Cmajor toolkit v1.0.2396
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/Piano/cmaj_Piano.js

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

2 changes: 1 addition & 1 deletion assets/example_patches/PirkleFilters/cmaj_vafilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'vafilters.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2395
// This file was auto-generated by the Cmajor toolkit v1.0.2396
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/Pro54/cmaj_Pro54.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'Pro54.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2395
// This file was auto-generated by the Cmajor toolkit v1.0.2396
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
26 changes: 26 additions & 0 deletions assets/example_patches/Pro54/gui/presets/presetBank.js

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

21 changes: 18 additions & 3 deletions assets/example_patches/Pro54/worker/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,41 @@ const stateValueChangeListener = event =>
return;
}

const oldProgramNumber = programNumber;
programNumber = event.value ^ 0;

const info = presetBank.getPatch (programNumber);

if (info)
{
currentParameterValues.clear();
presetBank.sendParameterValuesToPatchConnection (patchConnection, programNumber);

if (oldProgramNumber != 0 && programNumber != oldProgramNumber)
presetBank.sendParameterValuesToPatchConnection (patchConnection, programNumber);

patchConnection.sendStoredStateValue ("patchName", info.PatchName);
}
}

if (event.key == "recordEnabled")
{
if (recording == 1 && event.value == 0)
patchConnection.sendStoredStateValue ("patchDetails", presetBank.getPatchDetails());

recording = event.value;
}

if (event.key == "setPatchName")
{
presetBank.setPatchName (programNumber, event.value);
}

if (event.key == "patchDetails")
{
if (event.value)
presetBank.setPatchDetails (event.value);

patchConnection.sendStoredStateValue ("patchList", presetBank.getPatchList());
}
}

const statusListener = status =>
Expand Down Expand Up @@ -105,6 +119,7 @@ export default function runWorker (pc)
patchConnection.addEndpointListener ("midiIn", midiInListener);
patchConnection.addAllParameterListener (parameterListener);

patchConnection.sendStoredStateValue ("patchList", presetBank.getPatchList());
patchConnection.requestStoredStateValue ("patchDetails");
patchConnection.requestStoredStateValue ("currentProgram");
}

2 changes: 1 addition & 1 deletion assets/example_patches/Replicant/cmaj_Replicant.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'replicant.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2395
// This file was auto-generated by the Cmajor toolkit v1.0.2396
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/RingMod/cmaj_Ring_Mod_Demo.js

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

2 changes: 1 addition & 1 deletion assets/example_patches/STunedBar6/cmaj_STunedBar6.js

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

2 changes: 1 addition & 1 deletion assets/example_patches/Tremolo/cmaj_Tremolo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'Tremolo.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2395
// This file was auto-generated by the Cmajor toolkit v1.0.2396
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/ZitaReverb/cmaj_Zita_Reverb.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'ZitaReverb.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2395
// This file was auto-generated by the Cmajor toolkit v1.0.2396
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down

0 comments on commit ecb2ee9

Please sign in to comment.