Closed qlambert-pro closed 1 year ago
Hello @qlambert-pro !
Have you tried to compile by specifying appTemplate
as output ? This compiles your patch and generates a fully working html page with instructions on how to implement interaction with your patch in the code.
The command goes like this : webpd -i yourPatch.pd -o someFolder -f appTemplate
If you still fail to get sound playing, please send me the patch, tell me what you intend to do and I'll have a look ! The library is still alpha, it is possible that there would be a bug !
I managed to play sounds!
I don't understand how the fetch
call works though. I am trying to use puredata as a sound system for a small video game published on gitlab pages and I am concerned that it won't be supported there.
I will try it tomorrow and see if it works.
@qlambert-pro fetch
is standard browser API, so it will work, no problem. You just need to publish all the files (html, wasm and js) at the right place, or modify the url that is passed to the fetch
accordingly ;)
You were right, it worked! Thank you very much for your help!
Glad it worked! Don't hesitate if you have any question! And don't hesitate to share your work once it's done.
Hi, first I want to specify that I am very new to both pure data and of course WebPd.
I am trying to interact with a simple patch I have written from an static html page, but it seems like I am misunderstanding how to do that. Here are the steps I followed:
<script type="text/javascript" src="bin/test.js"></script>
inletCaller
function intest.js
on the assumption that one of them would represent one of the bangs in my patch that triggers a sound.inletCaller_n_* (msg_bang()
onclickI would expect one of them to produce a sound but nothing happens.
Can you explain what I am missing?