jspatcher icon indicating copy to clipboard operation
jspatcher copied to clipboard

runtime mode

Open andreirt opened this issue 3 years ago • 1 comments

Dear @Fr0stbyteR ,

First of all, thanks for developing this project, it looks great. I am browsing the source code, and trying to figure out how to use JS Patcher in "runtime mode". I would like to a) create and export a patch using the editor; b) run the patch in a web page, without showing the editor. Is that possible?

Best, Andrei

andreirt avatar May 01 '22 21:05 andreirt

Hi @andreirt

Thank you for your interest! Yes we recently developped this feature for this project https://urbansoundtale.com/ you can have a try.

To share your project in runtime mode, you can prepare your project as a zip file and put it somewhere on the web. Then you can just share a link as urbansoundtale does:

https://fr0stbyter.github.io/jspatcher/dist/?projectZip=../../soundcraft/Soundcraft7.zip&file=010.jspat&runtime=1

where projectZip is the URL of your project zip file, file is the patcher that will be open automatically, with runtime=1 There are three URL parameters, separated by & after a ?, the order doesn't matter.

Be careful with the projectZip, if defined, it will overwrite your local project. Make sure that you have saved your local project before using projectZip, or you can test with another browser / in private mode.

Best,

Shihong

Fr0stbyteR avatar May 02 '22 06:05 Fr0stbyteR