Fixup initial wasm mini welcome patch, remove old PoC

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-02-24 22:54:31 +01:00
parent 78e2b8af59
commit c568a695c8
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
4 changed files with 37 additions and 2321 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,5 @@
{ {
"version": "2.1.2", "version": "2.1.1",
"unsaved": true,
"zoom": 1.0, "zoom": 1.0,
"modules": [ "modules": [
{ {
@ -9,15 +8,15 @@
"model": "TextEditor", "model": "TextEditor",
"version": "2.0", "version": "2.0",
"params": [], "params": [],
"leftModuleId": 799138358763949, "leftModuleId": 1202678850202654,
"data": { "data": {
"filepath": "", "filepath": "",
"lang": "None", "lang": "None",
"etext": "Welcome to Cardinal!\n\nThis is the Web/Wasm variant\nIt has 2 audio outputs, enabled by default.\nUse Engine menu to enable input and/or MIDI.\n\nA basic VCO + ADSR + VCA is the default patch\n\n", "etext": "Welcome to Cardinal!\n\nThis is the mini variant\nIt has 2 audio ports, 5 CV ports, plus MIDI\n\nThe most relevant modules for host\nintegration are in this default patch\n\nA basic VCO + ADSR + VCA is\nthe default patch\n\nHave fun!\n\n",
"width": 23 "width": 19
}, },
"pos": [ "pos": [
49, 58,
0 0
] ]
}, },
@ -151,7 +150,7 @@
} }
], ],
"leftModuleId": 4828178296911509, "leftModuleId": 4828178296911509,
"rightModuleId": 799138358763949, "rightModuleId": 4,
"data": { "data": {
"dcFilter": true "dcFilter": true
}, },
@ -183,26 +182,42 @@
] ]
}, },
{ {
"id": 799138358763949, "id": 4,
"plugin": "Cardinal", "plugin": "Cardinal",
"model": "HostMIDIMap", "model": "HostParameters",
"version": "2.0", "version": "2.0",
"params": [], "params": [],
"leftModuleId": 1, "leftModuleId": 1,
"rightModuleId": 1202678850202654,
"data": {
"smooth": true
},
"pos": [
38,
0
]
},
{
"id": 1202678850202654,
"plugin": "Cardinal",
"model": "HostParametersMap",
"version": "2.0",
"params": [],
"leftModuleId": 4,
"rightModuleId": 8712245256622475, "rightModuleId": 8712245256622475,
"data": { "data": {
"maps": [ "maps": [
{ {
"cc": -1, "hostParamId": 255,
"inverted": false,
"smooth": true,
"moduleId": -1, "moduleId": -1,
"paramId": 0 "paramId": 0
} }
], ]
"smooth": true,
"channel": 0
}, },
"pos": [ "pos": [
38, 47,
0 0
] ]
} }

View file

@ -87,6 +87,14 @@
# define CARDINAL_TEMPLATE_NAME "init/main.vcv" # define CARDINAL_TEMPLATE_NAME "init/main.vcv"
#endif #endif
#ifdef DISTRHO_OS_WASM
# if CARDINAL_VARIANT_MINI
# define CARDINAL_WASM_WELCOME_TEMPLATE_FILENAME "welcome-wasm-mini.vcv"
# else
# define CARDINAL_WASM_WELCOME_TEMPLATE_FILENAME "welcome-wasm.vcv"
# endif
#endif
namespace rack { namespace rack {
namespace asset { namespace asset {
std::string patchesPath(); std::string patchesPath();

View file

@ -21,14 +21,6 @@
#include <string> #include <string>
#ifdef DISTRHO_OS_WASM
# if CARDINAL_VARIANT_MINI
# define CARDINAL_WASM_WELCOME_TEMPLATE_FILENAME "welcome-wasm-mini.vcv"
# else
# define CARDINAL_WASM_WELCOME_TEMPLATE_FILENAME "welcome-wasm.vcv"
# endif
#endif
extern const std::string CARDINAL_VERSION; extern const std::string CARDINAL_VERSION;
// ----------------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------------