Closed batchku closed 7 years ago
Are the online examples working in the same browsers?
Do you running the python server in the right folder ?
"GET /dist/webpd-latest.js HTTP/1.1" 404 -
Thanks for your quick response Seb. I was able to get the setup running with your quick instructions; I have this html:
<!doctype HTML>
<html>
<head>
<script src="js/jquery.js"></script>
<script src="js/webpd-latest.js"></script>
<script>
var patch
$.get('patches/myPatch.pd', function(patchStr) {
patch = Pd.loadPatch(patchStr)
Pd.start()
})
</script>
</head>
<body></body>
</html>
Put the WebPd.js
and thejquery.js
in a folder called js
and my patch my patches
, called myPatch.pd
. Makes sound!
Am I correct in thinking that the browser can also render the patch diagram for me? Something special i need to do to make that happen?
Yes! You need to use that library : https://github.com/sebpiq/pd-fileutils
You can see how I use to render a patch it in the examples : https://github.com/sebpiq/WebPd/blob/master/examples/assets/examples.js
Hello, I'm trying to run the examples, using a python http server, but can't get anything going. I'm testing with:
I see errors like this in the terminal:
Is anyone succeeding in getting the examples to work?