Fr0stbyteR / jspatcher

a Visual Programming Language (VPL) in Max/PureData style
https://fr0stbyter.github.io/jspatcher/dist/
143 stars 8 forks source link

runtime mode #16

Open andreirt opened 2 years ago

andreirt commented 2 years ago

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

Fr0stbyteR commented 2 years ago

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