Browse Source

Fixup initial wasm mini welcome patch, remove old PoC

Signed-off-by: falkTX <falktx@falktx.com>
tags/23.02
falkTX 2 years ago
parent
commit
c568a695c8
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 37 additions and 2321 deletions
  1. +0
    -2299
      patches/mini/JTB_-_Proof-Of-Concept.vcv
  2. +29
    -14
      patches/welcome-wasm-mini.vcv
  3. +8
    -0
      src/CardinalCommon.cpp
  4. +0
    -8
      src/CardinalCommon.hpp

+ 0
- 2299
patches/mini/JTB_-_Proof-Of-Concept.vcv
File diff suppressed because it is too large
View File


+ 29
- 14
patches/welcome-wasm-mini.vcv View File

@@ -1,6 +1,5 @@
{ {
"version": "2.1.2",
"unsaved": true,
"version": "2.1.1",
"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",
"width": 23
"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": 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
] ]
} }


+ 8
- 0
src/CardinalCommon.cpp 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();


+ 0
- 8
src/CardinalCommon.hpp 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;


// ----------------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------------


Loading…
Cancel
Save