Yeah you can, I downloaded command line tools for my OS X (10.8.5) from the Developer Downloads area. However I still got this error after "make":
cc -I"/Applications/Pd-extended.app/Contents/Resources/include/pd" -DPD -DVERSION='"0.0"' -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 -fPIC -I/sw/include -Wall -W -g -ftree-vectorize -ftree-vectorizer-verbose=2 -fast -o "vphasor~.o" -c "vphasor~.c"
clang: error: unknown argument: '-ftree-vectorizer-verbose=2' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [vphasor~.o] Error 1
I'm gonna go ahead and install xCode 5.1 and then try installing command line tools again from there.
Hi all. I'm having trouble testing Pd patches via webPd as instructed in this step-by-step guide .
I've made a patch (using only the available objects) that includes a synth and a "dsp 1" message so that when the patch is loaded a middle C should start sounding. I included this patch in a folder with webPd.js and jquery.js libraries, and followed the example for the index.html file. To mock same origin policy, I used python through the terminal to enable a web server using the "python -m SimpleHTTPServer" command line, and got the following on the terminal:
Serving HTTP on 0.0.0.0 port 8000 ...
Which seems fine, however, whenever I access the link http://localhost:8000/index.html, I got no sound at all despite the fact everything seems ok in the terminal:
188.8.131.52.in-addr.arpa - - [16/Dec/2016 14:39:07] "GET /index.html HTTP/1.1" 200 -
184.108.40.206.in-addr.arpa - - [16/Dec/2016 14:39:08] "GET /js/jquery.js HTTP/1.1" 200 -
220.127.116.11.in-addr.arpa - - [16/Dec/2016 14:39:08] "GET /js/webpd-latest.min.js HTTP/1.1" 200 -
18.104.22.168.in-addr.arpa - - [16/Dec/2016 14:39:08] "GET /patches/myPatch.pd HTTP/1.1" 200 -
I tried as well running things locally in Firefox by changing the "security.fileuri.strict_origin_policy" to false. I'm using Firefix 48.0.2.
I wonder if I'm missing something very obvious but I've checked the index.html and it includes the Pd.start(), and so the patch should start sounding when the url is loaded (shouldn't it?). Also, I think the problem lives in the way I'm avoiding the same origin policy since b2renger webPd examples (which run online) also won't run locally on my machine.
Any hints on what I'm doing wrong? Here's my patch myProject.zip
Have you checked the [readsf] help? I think you need to specify a path to a soundfile for each playback... but I'm not sure!
For what you say, I think you'll be better of using [soundfiler] + [tabplay~]...
[tabplay~] actually receives the bang message you're looking for.
Hi Alexandro, and thanks for your advice. I tried what you suggested and initially got this error message:
/bin/sh: cc: command not found
make: *** [vphasor~.o] Error 127
I deleted the folder, unzipped and re-do your instructions and still got the same.
Should I end up with a .pd_darwin file?
Yeah, I mean, will I have to know xCode for this?
I like very much patching but have none experience with code export or compiling stuff...
my OSX is 10.8.5.
do you know any web references that could guide anybody through this process? I definitely wanna dive into this, especially if it is usable for libpd as well (I mean, compiling this objects and then using them with libpd).