Skip to content

Commit

Permalink
Docs update 1.0.2637
Browse files Browse the repository at this point in the history
  • Loading branch information
cesaref committed Sep 19, 2024
1 parent 675ac1c commit 663ac12
Show file tree
Hide file tree
Showing 45 changed files with 179 additions and 59 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.2636
// This file was auto-generated by the Cmajor toolkit v1.0.2637
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,13 @@ export class AudioWorkletPatchConnection extends PatchConnection
}
else
{
this.rootResourcePath = window.location.href;
const getBaseUrl = (relativeURL) =>
{
const baseURL = relativeURL.href.substring(0, relativeURL.href.lastIndexOf('/'));
return baseURL;
};

this.rootResourcePath = getBaseUrl(new URL('.', import.meta.url));

if (! this.rootResourcePath.endsWith ("/"))
this.rootResourcePath += "/../";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class GenericPatchView extends HTMLElement
/** @private */
getHTML()
{
const baseUrl = import.meta.url;

return `
<style>
* {
Expand Down Expand Up @@ -144,9 +146,9 @@ class GenericPatchView extends HTMLElement
margin-left: 0.3rem;
margin-right: 0.3rem;
background-color: var(--foreground);
mask: url(cmaj_api/assets/cmajor-logo.svg);
mask: url(${baseUrl}/../assets/cmajor-logo.svg);
mask-repeat: no-repeat;
-webkit-mask: url(cmaj_api/assets/cmajor-logo.svg);
-webkit-mask: url(${baseUrl}/../assets/cmajor-logo.svg);
-webkit-mask-repeat: no-repeat;
min-width: 6.25rem;
}
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.2636
// This file was auto-generated by the Cmajor toolkit v1.0.2637
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,13 @@ export class AudioWorkletPatchConnection extends PatchConnection
}
else
{
this.rootResourcePath = window.location.href;
const getBaseUrl = (relativeURL) =>
{
const baseURL = relativeURL.href.substring(0, relativeURL.href.lastIndexOf('/'));
return baseURL;
};

this.rootResourcePath = getBaseUrl(new URL('.', import.meta.url));

if (! this.rootResourcePath.endsWith ("/"))
this.rootResourcePath += "/../";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class GenericPatchView extends HTMLElement
/** @private */
getHTML()
{
const baseUrl = import.meta.url;

return `
<style>
* {
Expand Down Expand Up @@ -144,9 +146,9 @@ class GenericPatchView extends HTMLElement
margin-left: 0.3rem;
margin-right: 0.3rem;
background-color: var(--foreground);
mask: url(cmaj_api/assets/cmajor-logo.svg);
mask: url(${baseUrl}/../assets/cmajor-logo.svg);
mask-repeat: no-repeat;
-webkit-mask: url(cmaj_api/assets/cmajor-logo.svg);
-webkit-mask: url(${baseUrl}/../assets/cmajor-logo.svg);
-webkit-mask-repeat: no-repeat;
min-width: 6.25rem;
}
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,13 @@ export class AudioWorkletPatchConnection extends PatchConnection
}
else
{
this.rootResourcePath = window.location.href;
const getBaseUrl = (relativeURL) =>
{
const baseURL = relativeURL.href.substring(0, relativeURL.href.lastIndexOf('/'));
return baseURL;
};

this.rootResourcePath = getBaseUrl(new URL('.', import.meta.url));

if (! this.rootResourcePath.endsWith ("/"))
this.rootResourcePath += "/../";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class GenericPatchView extends HTMLElement
/** @private */
getHTML()
{
const baseUrl = import.meta.url;

return `
<style>
* {
Expand Down Expand Up @@ -144,9 +146,9 @@ class GenericPatchView extends HTMLElement
margin-left: 0.3rem;
margin-right: 0.3rem;
background-color: var(--foreground);
mask: url(cmaj_api/assets/cmajor-logo.svg);
mask: url(${baseUrl}/../assets/cmajor-logo.svg);
mask-repeat: no-repeat;
-webkit-mask: url(cmaj_api/assets/cmajor-logo.svg);
-webkit-mask: url(${baseUrl}/../assets/cmajor-logo.svg);
-webkit-mask-repeat: no-repeat;
min-width: 6.25rem;
}
Expand Down
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.

Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,13 @@ export class AudioWorkletPatchConnection extends PatchConnection
}
else
{
this.rootResourcePath = window.location.href;
const getBaseUrl = (relativeURL) =>
{
const baseURL = relativeURL.href.substring(0, relativeURL.href.lastIndexOf('/'));
return baseURL;
};

this.rootResourcePath = getBaseUrl(new URL('.', import.meta.url));

if (! this.rootResourcePath.endsWith ("/"))
this.rootResourcePath += "/../";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class GenericPatchView extends HTMLElement
/** @private */
getHTML()
{
const baseUrl = import.meta.url;

return `
<style>
* {
Expand Down Expand Up @@ -144,9 +146,9 @@ class GenericPatchView extends HTMLElement
margin-left: 0.3rem;
margin-right: 0.3rem;
background-color: var(--foreground);
mask: url(cmaj_api/assets/cmajor-logo.svg);
mask: url(${baseUrl}/../assets/cmajor-logo.svg);
mask-repeat: no-repeat;
-webkit-mask: url(cmaj_api/assets/cmajor-logo.svg);
-webkit-mask: url(${baseUrl}/../assets/cmajor-logo.svg);
-webkit-mask-repeat: no-repeat;
min-width: 6.25rem;
}
Expand Down
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.2636
// This file was auto-generated by the Cmajor toolkit v1.0.2637
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,13 @@ export class AudioWorkletPatchConnection extends PatchConnection
}
else
{
this.rootResourcePath = window.location.href;
const getBaseUrl = (relativeURL) =>
{
const baseURL = relativeURL.href.substring(0, relativeURL.href.lastIndexOf('/'));
return baseURL;
};

this.rootResourcePath = getBaseUrl(new URL('.', import.meta.url));

if (! this.rootResourcePath.endsWith ("/"))
this.rootResourcePath += "/../";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class GenericPatchView extends HTMLElement
/** @private */
getHTML()
{
const baseUrl = import.meta.url;

return `
<style>
* {
Expand Down Expand Up @@ -144,9 +146,9 @@ class GenericPatchView extends HTMLElement
margin-left: 0.3rem;
margin-right: 0.3rem;
background-color: var(--foreground);
mask: url(cmaj_api/assets/cmajor-logo.svg);
mask: url(${baseUrl}/../assets/cmajor-logo.svg);
mask-repeat: no-repeat;
-webkit-mask: url(cmaj_api/assets/cmajor-logo.svg);
-webkit-mask: url(${baseUrl}/../assets/cmajor-logo.svg);
-webkit-mask-repeat: no-repeat;
min-width: 6.25rem;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/Piano/cmaj_Piano.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 'Piano.cmajorpatch'.
//
// This file was auto-generated by the Cmajor toolkit v1.0.2636
// This file was auto-generated by the Cmajor toolkit v1.0.2637
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,13 @@ export class AudioWorkletPatchConnection extends PatchConnection
}
else
{
this.rootResourcePath = window.location.href;
const getBaseUrl = (relativeURL) =>
{
const baseURL = relativeURL.href.substring(0, relativeURL.href.lastIndexOf('/'));
return baseURL;
};

this.rootResourcePath = getBaseUrl(new URL('.', import.meta.url));

if (! this.rootResourcePath.endsWith ("/"))
this.rootResourcePath += "/../";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class GenericPatchView extends HTMLElement
/** @private */
getHTML()
{
const baseUrl = import.meta.url;

return `
<style>
* {
Expand Down Expand Up @@ -144,9 +146,9 @@ class GenericPatchView extends HTMLElement
margin-left: 0.3rem;
margin-right: 0.3rem;
background-color: var(--foreground);
mask: url(cmaj_api/assets/cmajor-logo.svg);
mask: url(${baseUrl}/../assets/cmajor-logo.svg);
mask-repeat: no-repeat;
-webkit-mask: url(cmaj_api/assets/cmajor-logo.svg);
-webkit-mask: url(${baseUrl}/../assets/cmajor-logo.svg);
-webkit-mask-repeat: no-repeat;
min-width: 6.25rem;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,13 @@ export class AudioWorkletPatchConnection extends PatchConnection
}
else
{
this.rootResourcePath = window.location.href;
const getBaseUrl = (relativeURL) =>
{
const baseURL = relativeURL.href.substring(0, relativeURL.href.lastIndexOf('/'));
return baseURL;
};

this.rootResourcePath = getBaseUrl(new URL('.', import.meta.url));

if (! this.rootResourcePath.endsWith ("/"))
this.rootResourcePath += "/../";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class GenericPatchView extends HTMLElement
/** @private */
getHTML()
{
const baseUrl = import.meta.url;

return `
<style>
* {
Expand Down Expand Up @@ -144,9 +146,9 @@ class GenericPatchView extends HTMLElement
margin-left: 0.3rem;
margin-right: 0.3rem;
background-color: var(--foreground);
mask: url(cmaj_api/assets/cmajor-logo.svg);
mask: url(${baseUrl}/../assets/cmajor-logo.svg);
mask-repeat: no-repeat;
-webkit-mask: url(cmaj_api/assets/cmajor-logo.svg);
-webkit-mask: url(${baseUrl}/../assets/cmajor-logo.svg);
-webkit-mask-repeat: no-repeat;
min-width: 6.25rem;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/PirkleFilters/cmaj_vafilters.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/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.2636
// This file was auto-generated by the Cmajor toolkit v1.0.2637
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,13 @@ export class AudioWorkletPatchConnection extends PatchConnection
}
else
{
this.rootResourcePath = window.location.href;
const getBaseUrl = (relativeURL) =>
{
const baseURL = relativeURL.href.substring(0, relativeURL.href.lastIndexOf('/'));
return baseURL;
};

this.rootResourcePath = getBaseUrl(new URL('.', import.meta.url));

if (! this.rootResourcePath.endsWith ("/"))
this.rootResourcePath += "/../";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class GenericPatchView extends HTMLElement
/** @private */
getHTML()
{
const baseUrl = import.meta.url;

return `
<style>
* {
Expand Down Expand Up @@ -144,9 +146,9 @@ class GenericPatchView extends HTMLElement
margin-left: 0.3rem;
margin-right: 0.3rem;
background-color: var(--foreground);
mask: url(cmaj_api/assets/cmajor-logo.svg);
mask: url(${baseUrl}/../assets/cmajor-logo.svg);
mask-repeat: no-repeat;
-webkit-mask: url(cmaj_api/assets/cmajor-logo.svg);
-webkit-mask: url(${baseUrl}/../assets/cmajor-logo.svg);
-webkit-mask-repeat: no-repeat;
min-width: 6.25rem;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/example_patches/Replicant/cmaj_Replicant.js

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

Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,13 @@ export class AudioWorkletPatchConnection extends PatchConnection
}
else
{
this.rootResourcePath = window.location.href;
const getBaseUrl = (relativeURL) =>
{
const baseURL = relativeURL.href.substring(0, relativeURL.href.lastIndexOf('/'));
return baseURL;
};

this.rootResourcePath = getBaseUrl(new URL('.', import.meta.url));

if (! this.rootResourcePath.endsWith ("/"))
this.rootResourcePath += "/../";
Expand Down
Loading

0 comments on commit 663ac12

Please sign in to comment.